rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
179 stars 161 forks source link

Service stopped sometimes #62

Closed mariusmuntean closed 7 years ago

mariusmuntean commented 8 years ago

Hi,

When my app is in foreground and I force-stop it (in the app switcher I swipe left/right) the Intent service is sometimes also stoppen and then I don't get anymore push notifications.

Would it be possible to allow the users of the plugin providing custom implementations of the service such that I could detect when the service is stopped and then immediately restart it (based on some logic).

Cheers, Marius

rdelrosario commented 7 years ago

Actually you can use any service, plugin provides one but you can use your on instead. The main thing is that should be started in the Application class.