Answer the question
In order to leave comments, you need to log in
How to send push notifications to a mobile application on an event?
Good evening!
You need to do the following: on a specific event, send notifications to users on mobile devices, both androids and iOs. I googled, but I didn’t understand the clear process, and several questions also appeared:
1. Is it correct that a mobile developer should first send me a device token? And what does he use to do it?
2. What service should I use to send notifications? Googled APNS for Apple and GCM for Android, is this correct?
3. How to track the event? And is it necessary at all? Or just in the code, after one function has completed, call the distribution function?
4. How to make a notification on the site itself? Thinking between using sockets and Ajax. What do you advise?
The main problem is push notifications for mobile. I have never done it, so my head is a complete mess. I ask for advice or links to resources where everything is described step by step.
And yes, the server application itself is on Laravel 4 + Apache
Thank you!
Answer the question
In order to leave comments, you need to log in
in fact, everything is just
sockets, you don’t need ajax, google sends pushes (gcm can also be used for ios)
if simplifying the
test server and client, you can substitute your d...
habrahabr.ru/post/161305
https://github .com/davibennun/laravel-push-notification
https://developers.google.com/cloud-messaging/
1)
a) The OS "registers" the application on the APNS\GCM\MPNS servers and receives the Device Token.
b) The application receives this Device Token
and must transfer it to your server (for its further use)
Device Token is your Push
You can also use an intermediate service to check the relevance of the Device Token (since the application could be reinstalled)
2) appsfire.com
https://www.pushwoosh.com/
3) It's not entirely clear where the event occurs. If the event is on the site, it is logical to bind the Dev Token to the User and pull it.
4) Alas, I can’t tell
You can use PushAll.ru - it will allow you to send notifications to the browser to mobile devices (Android, soon iOS) and even to telegrams. Moreover, the user himself decides where it is more convenient for him to receive notifications, can view the history of all received notifications, search for them, etc.
Subscription conversions for some channels are over 80%. That is, users willingly use this method of receiving notifications. And more than 50% of people receive alerts on computers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question