Xamarin.Forms (Android) -> Remote push notifications -> Start IntentService when app is killed

Hy all

We would like to implement Remote push notifications in our Xamarin.Forms application (used for an Android-App) according to this:
https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-xamarin-forms-get-started-push

...our goal is to remote start our IntentService (which operates as a backbround job) from push notifications.

So my question is:

  • Is it possible to start my own IntentService in the Method OnMessage(Context context, Intent intent)? So that my IntentService gets called, when the remote notifications arrives at the Device (even if the app is killed and not running)?

Thanks for your help,
Peter

Answers

  • JulianPasqueJulianPasque USMember ✭✭✭

    i guess this wont work because OnMessage won't get called when the app is killed.

    I start my service in the appliation class.

    Best regards
    Julian

Sign In or Register to comment.