FirebasePushNotificationPlugin icon indicating copy to clipboard operation
FirebasePushNotificationPlugin copied to clipboard

[iOS] OnNotificationReceived and OnNotificationOpened never fired

Open stesvis opened this issue 5 years ago • 2 comments

🐛 Bug Report

In iOS I do receive the notification popup, but when I click on it the app is opened correctly (if received in the background), but the OnNotificationReceived and OnNotificationOpened events are never fired. In AppDelegate, after clicking on the notification, DidReceiveRemoteNotification is not fired either. However, the OnTokenRefresh even is exectued correctly.

Am I missing something? I followed all the steps and indeed I do get the notification, but I can't read the details. Note: on Android everything works great.

Expected behavior

OnNotificationReceived and OnNotificationOpened are executed when I tap on the notification popup or while the app is in foreground mode.

Reproduction steps

  1. Send a push notification to iOS

  2. App in foreground

  3. Nothing happens

  4. Send a push notification to iOS

  5. App in background

  6. You get the notification popup/widget

  7. Click on it

  8. The app opens, but the events are not fired, so you can't get the notification details

Screen Shot 2020-12-14 at 4 05 13 PM

Configuration

Version: 3.3.10

Platform:

  • [x] :iphone: iOS 12.4.9
  • [ ] :robot: Android
  • [ ] :checkered_flag: WPF
  • [ ] :earth_americas: UWP
  • [ ] :apple: MacOS
  • [ ] :tv: tvOS
  • [ ] :monkey: Xamarin.Forms

stesvis avatar Dec 14 '20 23:12 stesvis

Same problem here

rubenc57 avatar Apr 12 '21 22:04 rubenc57

is there a solution of this issue ?

smart4energy avatar Feb 02 '22 14:02 smart4energy