Guidelines on how and when to keep the cordon app in the background

I have a Cordga aka Phonegap application that receives emails from a server using BOSH technology. The user will receive IM messages as well as emails from other users. To do this, I need to run the application in the background forever until the user wants to close it. I went through various plugins like https://github.com/katzer/cordova-plugin-background-mode .

And also options such as <preference name="keepRunning" value="true" />

And he looked at the articles on the Apple developer site.

And some plugin says that for an iOS application you need to provide permission to host to run JS in the background.

After going through all of the above, I had a few questions, since I am not a developer and mainly depends on my JS skills and Cordoba plugins (I sincerely thank their authors).

My target platforms are iOS, Android, WP7, WP8, Blackberry.

Below are my questions

  • What is the best way to get JS running in the background so that the user receives mail and messages continuously, as they are very important to the user.

  • Are there any plugins available and accepted by users of the appStore team.

  • Does notification support help in this case? If so, my server has no other integrations so that other servers know what a new message is, how can I overcome it.

  • Does the appStore app reject these background apps?

Please help me, I need answers to these questions, and not just setting the goal of the training.

Thanks.

+6
source share

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


All Articles