Custom subscribe button - web-push

I would like to customize the subscribe button and add it to my website, how can I do that?
Currently users can subscribe to push notifications using this link:
https://pushpad.xyz/p/3898

You have different options.
Option 1 - Use Pushpad Express with ui=false
I think that the easiest way is to create a button on your website and use the ui=false option as described here:
https://pushpad.xyz/docs/pushpad_express_without_ui
For example create a button with this link on your website:
https://pushpad.xyz/p/YOUR_PROJECT_ID?ui=false
NOTE: I've noticed that you use a legacy version of Pushpad, which unfortunately doesn't support the ui=false option. In order to use the ui=false option you need to create a new sender (and select Pushpad Express) and then create a new project associated to the new sender.
Option 2 - Use Pushpad Pro
Otherwise, if you don't want to redirect the user to a Pushpad subdomain, you can use Pushpad Pro:
https://pushpad.xyz/docs/pushpad_pro_getting_started
Also see the "Button" example on this page: https://pushpad.xyz/docs/javascript_sdk_examples

Related

How should I add multiple buttons using custom payload in the Default Response Tab (Not any other platform)?

My experience with dialog flow is minimal. I want to add clickable button responses that an end-user can select from. I do not want to use any other platform except for Default. I will be implementing this on my website. I have not enabled webhook and fulfillment yet. I just want to write the code to add buttons, test it, and then publish my agent on the website.
I have bad news for you. From the default features the only option you have for implementing it on your website is using Web Demo which does not support rich responses(button, image, etc..). That means if you want to implement a bot with rich response on your website, you will have to enable Fulfillment and use webhook.

How to use Strapi to store user data

I am creating an eCommerce platform using strapi. Strapi only has option for user-email and password.
I want to store user's address, contact details, previous orders etc. Is there a way to do so?
I am using the quickstart template.
Strapi version 3.0.0-beta.17.7 (node v10.16.3)
IMO the best way would be to create a profile model with a one to one relation to the user. You will need to create your own isOwner policy on the findOne, create, update routes however. This way on that user can view/create/update their own profiles.
Off course there is a way to do so!
Go to your admin panel http://localhost:1337/admin
Click on Content Type Builder on your left sidebar
Select User
Click on Add Another Field
And add every field you need for your eCommerce platform!

building chrome extension to read selected words from a web page

I would like to build a chrome extension to allow me select any word from any web page and by clicking a menu item to send it to a service of my company for tracking.
for example, if I am now reading some article on a page, I would like to select a specific word and right click on it, then I would like to make an http request to my service and track this word.
Is it possible to do with chrome extension? can you please link me to a tutorial that can be helpful?
Thanks.
Yes, you can use chrome extension to achieve that.
Refer Official Tutorial for more details.
Per your requirements, you may need:
Select a specific word. window.getSelection()
right click on it. You will need to listen to mousedown, mouseup or contextmenu event, the code looks like
document.addEventListener('contextmenu', function(event){...}, false);
make an http request. You can use XMLHttpRequest to transfer data between client and server.

Ways to integrate app in GMail

Is there any way to integrate an app into GMail (with like a custom button next to the send button which will perform a request to a specific url) without an Firefox / Chrome addon? So an application really integrated in GMail?
I was wondering as I would like to do the following;
Allow a user to click to move a message to a specific (hardcoded) folder
Put the message back at the top of their inbox after a API query (from my app). So the Inbox priority filtering should be managable.
You'll want to take a look at Gmail Gadgets.
Gadgets are custom HTML and JavaScript components that run within an
iframe and can be embedded within various web pages. Gmail includes
support for embedding gadgets within the web interface, creating
content-rich data displays and extending Gmail with additional
functionality.

Can I build an addin for Gmail?

Is there a way I can create an addin for my Gmail account? Is GreaseMonkey the only real way?
I use Gmail for customer service, and I'd like to create a tool that looks up the customer and preps a response to them based upon who it is in my database... instead of looking by hand for the client and typing it out.
You can add gadgets (same as iGoogle and wave) and add them to the side bar in GMail, but you will not have access to the e-mails themselves. You could create small lookup forms and such, though.
I don't see how else you could do it. You won't be able to run your own app on Google's backend, so that leaves the client (with javascript and something like GreaseMonkey) and your server (perhaps communicating with the client via AJAX).

Resources