TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
220 stars 49 forks source link

[IOS] Data only message doesn't trigger "NotificationReceived" event #176

Closed mmilkovski closed 1 year ago

mmilkovski commented 1 year ago

For some reason the event doesn't trigger

quick fix on IOS is to add in AppDelegate

[Export("application:didReceiveRemoteNotification:fetchCompletionHandler:")]
    public void DidReceiveRemoteNotification(UIKit.UIApplication application, NSDictionary userInfo, Action<UIKit.UIBackgroundFetchResult> completionHandler)
{
 // consume userInfo dictionary..
}
eshvatskyi commented 1 year ago

Imho, should be added into the implementation