How to create a desktop notifications for your web application? - macos

I've tried searching and surprisingly I couldn't find anything on this. I have seen a few web apps that have desktop applications. For instance in gmail you can go into the settings and enable desktop notifications and get an alert even if you don't have the browser open at all. Also, there is an app called "slack" that I have been playing around with and I somehow got desktop notifications enabled. Also, google hangouts gives me notifications every once in a while. I don't know if this is a google chrome thing, or if it is a mac specific thing. Does anyone have any idea how these apps are posting these notifications?
Is it a browser specific thing? A platform specific thing? Did I download some type of desktop app that I have forgotten about that is enabling these apps to do this? Has anyone else created a desktop alert for their web app and how did you do it?

A similar question asked -
Chrome Desktop Notification.
From a front-end standpoint, there is EventSource for this, though you could also use websockets or polling (checking every few minutes/seconds).
Event Source and Server-Sent Events.

Related

How do I publish a app in the chrome web store?

Edit: There's no workaround.
(Sorry if this is a duplicate, I didn't find anything like this, and also sorry if this is a dumb question)
I've been trying to publish a app to the chrome web store, so I paid US$5 to create a account, set it up, set up the extension, saved as draft, and then clicked 'Why can I not publish?', and then I saw "The chrome web store does not allow new apps.", I was thinking, "What? How is there all these apps in the chrome web store?" and I'm still thinking. Does somebody understand how to publish one? or can you not anymore?

Floating widget application on LG webOS Smart TV

I want to write an application in webOS as a widget that will be visible(floating) when other applications are running. Is this possible? I am unable to find any documentation related to this.
I'm not sure about it. I'm never see that behaviour in third party apps, only system apps are able to use 'overlay' feature in alerts and notifications dialogues according to WeOs developer site
http://webostv.developer.lge.com/design/webos-tv-system-ui/notifications/

How mobile Firefox addon can recieve information from it's Desktop version? (if both are logged in)

I want to be able to close tabs on my mobile Firefox, while using Desktop version of Firefox. I thought Tab-sync would make it work, but it doesn't. So now I'm on the quest to fix it with an extension.
I have thought about using sync area of storage (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/sync) but it's not supported on Android.
Do I have to build some external service to send command from Desktop version to that service and then use Mobile Firefox extension to do the polling or there is a better way to utilize fact that I'm logged on both of these devices.
Any ideas please?

No sound for web push in MacOS

Is it even possible to play sounds for web push notifications?
For Chrome I was able to handle notificationDisplay event and manually play sound. However this event is not supported in Safari.
Nothing mentioned in official documentation at https://documentation.onesignal.com/docs/customize-notification-sounds
In Apple's documentation some Push Package was mentioned. However it's not clear where to put sounds.
It does not seem like web push notifications support sound at the moment. If any sounds do play, they would be due to the settings you might have on, for example, your Mac computer when you receive a notification, or your Android phone if it's set to buzz when you receive a notification.
Sound for web push notifications is in development though. For more information, you can follow these links:
Chrome Thread: https://bugs.chromium.org/p/chromium/issues/detail?id=442131
Firefox Thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1105222

Is it possible to get an app to open up when entering a beacon region / within range of a beacon/ibeacon

I'm exploring the end user experience for a beacon prototype but I'm struggling to find any end-user scenarios that involve the app becoming active / opening up on the screen when within range.
I can get the app to send a notification and this is the most likely experience on both Android and iOS but does anyone know if it is possible to get the app to open up?
It's unlikely that I'd want real customers to have their experience interfered with in this way, I think it's ok if the app is already running and is open but not if it's running but not open.
Thanks
On Android this is possible. The reference app for the Android Beacon Library demonstrates how to do exactly this.
On iOS, it is not possible due to OS security restrictions. See here for details. The best you can do is send a local notification to the user when the beacon is detected, then if the user gestures to it, bring up the app.

Resources