Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending push notifications in non-native app (web-app)? [closed]

This is my first post on the forum, so please educate me if I got the tag, forum or content wrong.

I am developing an app targeting iPhone and Android, which is a real-time, location based social network. The app will not be deployed through market place/app-store.

From what I understand my only option is to make a web-app (HTML5/JS). All the functionality should be support except for a need to send push notifications to other users.

The options, I have considered are: - Send an email, however this is not very real time. - Send an SMS, however this has some significant costs associated. - Linking to an IM of choice for the user and sending the notification through that IM

As I understanding it all cross-platform frameworks sich as PhoneGab compiles to native and requires to be deployed through the app stores to take advantage of their APIs (correct me if I am wrong).

Any easy work-around for a location based, push notification app framework to be offered outside the app stores?

EDIT: I expect to distribute the app via a web-site.

EDIT: The app service is a dating concept on the slightly sleezy side so I am afraid it will not pass the review gates and thus not be possible to distribute in the stores. Of course I could try using PhoneGap or Titanium and then do the webapp if it doesn't pass.

Thanks for your support!

like image 806
Christoffer Avatar asked Aug 14 '13 18:08

Christoffer


People also ask

Can a web app send push notifications?

Web Push Notifications are messages that are sent by a website or by a web app to your device, making these notifications significantly visible and also easy to respond to.

Does an app need to be open for push notifications?

Push notifications are small, pop-up messages sent to a user's device by a mobile app that appear even when the app isn't open.

Do push notifications work when app is closed iOS?

Apple does not offer a way to handle a notification that arrives when your app is closed (i.e. when the user has fully quit the application or the OS had decided to kill it while it is in the background). If this happens, the only way to handle the notification is to wait until it is opened by the user.

How does push notification work in web app?

Send push messages Normally, this would require sending a subscription from a web page to a backend. The backend would then trigger a push message by making an API call to the endpoint in the subscription. Under Text to Send, add any string you want to send with the push message. Click the Send push message button.


1 Answers

It is possible to build a webapp ("progressive web app" as they're calling them these days) that can send push notifications even after the page has been closed.

These work today in Chrome for Android (and other browsers seem to be implementing support), but there is no support on iOS.

Check out this demo, and this guide explains how to do it: https://developers.google.com/web/fundamentals/engage-and-retain/push-notifications/

like image 157
owencm Avatar answered Oct 21 '22 04:10

owencm