I have to clear specific notification from notification tray in both android and ios i'm working on

I want to clear received notification from the notification tray after the OnNotificationReceived event fires, I am using older version of CrossFirebasePushNotification, so I can not use CrossFirebasePushNotification.Remove function there.
Kindly if anybody has any solution then do let me know
Thanks

Answers

  • JarvanJarvan Member, Xamarin Team Xamurai

    Try to use CrossLocalNotifications.Current.Unsubscribe

    CrossFirebasePushNotification.Current.Unsubscribe(" ");
    
  • MohammadUsmaniMohammadUsmani PKMember ✭✭

    @yelinzh said:
    Try to use CrossLocalNotifications.Current.Unsubscribe

    CrossFirebasePushNotification.Current.Unsubscribe(" ");
    

    Did this, but notification in the tray was still there.

  • JarvanJarvan Member, Xamarin Team Xamurai

    Why not try to update the NuGet package?

  • MohammadUsmaniMohammadUsmani PKMember ✭✭

    Can not update the package, due the nature of the project

  • JarvanJarvan Member, Xamarin Team Xamurai

    However, the old version seems have no method to remove notifications.

  • MohammadUsmaniMohammadUsmani PKMember ✭✭

    seems like, should do some thing else.

Sign In or Register to comment.