How to run the application in the background when it is closed


#1

I used the background plugin but when the application is closed it does not work anymore I want that if the client activates a service if it closes the application I can notify him after


#2

Do you call this.backgroundMode.enable();

Also what are you using inside the services? if its geolocation you’ll have to use the background geo plugin


#3

What exactly does that mean?


#4

It is a system of appeal I would like that if you take the ticket and you close the application when your turn arrives we notify you


#5

Still very confusing sentence, but you want to notify the user that there is something he should check out in the app? That would be a classic use case for a push notification from the server to the app, or a local notification if it is just timebased.


#6

If my sentence confuses it may be the translation ok short I included local notification I have write a code in the application that checks the server and sends the notification after but if the application stays started it now works I want it to work when the application is closed


#7

If the information is on the server, you can send a messgae FROM the server TO the app using push notifications. If the app is closed the OS will display the push notification, if the app is open you can directly handle the message.


#8

Yes, the difference is that it is the application that checks the server


#9

A post was split to a new topic: How to manage the back button in ionic 2