What are Web Push Notifications?
Web Push Notifications are clickable messages sent to users' devices- mobile, tablet, and desktop. The notifications will be sent only to subscribed users. Once users subscribe for the web push, they will start receiving notifications. It's not necessary for users to be on the website to receive web push. Web push notifications serve the purpose of bringing users back to the website.
How do Web Push Notifications work?
When users visit your website, they receive opt-in notification requesting their permission to receive notifications in future. When they click 'Allow', they are added to the list, and at the backend, the browser id gets automatically captured.
Once a visitor becomes a subscriber, you may start sending web push notifications based on the browser id. When web push notification is served to the user, the user sees the notification, clicks on it, and is redirected to the landing page.
Which all browsers support Web Push Notifications?
Currently, all major browsers such as Chrome, Mozilla Firefox, Opera, and Safari support web push notification technology.
Do Web Push Notification work in incognito mode?
No, web push notifications don't work in incognito mode.
How long do Cookies last?
Cookies last for a maximum lifetime. When a web server sends a cookie, it asks your browser to keep that particular cookie till lifetime, so that website visitor won't get web push subscription pop-up repeatedly.
What technology does cmercury use- VAPID or FCM?
cmercury uses FCM technology.
Explain the web push implementation steps for an HTTPS site?
Register on cmercury.com and generate the pixel for your website. Place the pixel in your website header. You may also place the pixel via Google Tag Manager. In addition, place two files – manifest.json, service-worker.js at the root of your website.
Explain the implementation steps of web push for an HTTP site?
Register on cmercury.com and generate the pixel for your website. Place the pixel in your website header. You may also place the pixel via Google Tag Manager.
If my mobile site runs on a sub-domain (m.example.com), how can I implement web push notifications?
If the desktop and mobile site is on the same domain, you can place the pixel on desktop site- it will work on both mobile and desktop. Example: Desktop – www.xyz.com & Mobile – www.m.xyz.com
If the desktop and mobile site is on different domain, then generate different pixel and deploy on mobile site. Example: Desktop – www.xyz.com & Mobile – www.abc.com
Does cmercury JavaScript impact the website page load time?
No, it would not. cmercury JavaScript is optimised to load very fast without affecting your website speed. You can also choose to call the JS after specific delay, once all the data is loaded.
Explain Notification Expiry time. How can I set it for new notifications?
Notification Expiry time, referred to as Time-to-Live (TTL), is a value that allows you to define web push notification’s lifetime. For time-bound messages including count-down sale, flash sale, limited period offers, and breaking news, set notification expiry time in such a way that subscribers don't receive notifications after the specific time period of the sale or offer. You can set this value while creating new web push notification.
Can subscribers receive notifications when the browser is closed?
This varies from browser to browser and depends on how closely the browser interacts with the Operating System.
• Chrome: Subscribers receive notifications even when window is closed. However, to enable this, Chrome needs to run in the background.
• For Firefox on Mac: Users can receive notifications when browser is closed provided browser is still running (indicated by '.' in menu).
• For Firefox on Windows: Users won’t receive notifications when browser is closed as the background process gets killed when window is closed.
• Safari: As Safari interacts with Mac OS very closely, users can receive notifications irrespective of whether the browser is running or not.
Can I migrate my web push subscribers to cmercury?
Yes, you can:
• Ensure that your subscribers have subscribed to your domain directly
• You should have an SSL certificate installed on your website
You don't need to do anything to migrate subscribers. Just sign up on cmercury and activate web push and your previous subscribers will start migrating to cmercury automatically.