Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Xamarin forms's android side push notification issue

tylndnztylndnz Member ✭✭

Hi!
Firstly i am so sorry about my english level.

I created push notification configuration codes everything with this document: https://docs.microsoft.com/tr-tr/azure/notification-hubs/xamarin-notification-hubs-push-notifications-android-gcm

my notifications are going to my phone. but when i close the application. notification not come. in azure side said successfully sended

did i mis something ?

Best Answer

Answers

  • tylndnztylndnz Member ✭✭

    dear @ColeX thanks for answer i have a another question. i created a foreground service and push notification comming when application is not running because of foregorund service
    how i close foreground service's notification ?

  • ColeXColeX Member, Xamarin Team Xamurai
  • tylndnztylndnz Member ✭✭
    edited May 6

    dear @ColeX where i call StopForeground(true); method?
    i try like this. but didn't work (service is stopped)

    StartForeground(SERVICE_RUNNING_NOTIFICATION_ID, notification);
    StopForeground(true);

    and i search but i didn't find
    thank you

Sign In or Register to comment.