Notification in Phonegap Although the application does not work

I am working on an application with PhoneGap on Android, where the user will receive messages every time, and then bring them to one of the pages of the application. I looked through several possibilities, but did not find an easy way to do this. Can I use the built-in notification in the Phonegap API for this?

I found some good ways to make push notifications like thisw: http://www.pushwoosh.com/programming-push-notification/android-push-notification-for-phonegap/ , but I want the notification to come from the application itself with time-specific built-in timer.

Thanks!

+6
source share
1 answer

In any case, you cannot, not in Phonegap. If the user leaves the application using the Home button, the code still works (until it is killed, when the memory becomes low). But if the user exists with the return key, the application dies. See Here: Creating an Android Service Using Phonegap? (You have a phone call application, even if it is closed)

+2
source

Source: https://habr.com/ru/post/916173/


All Articles