ConnectyCube / connectycube-flutter-sdk-releases

ConnectyCube Flutter SDK Releases
7 stars 1 forks source link

iOS notification listeners do not get triggered when APNS token is used. #21

Closed aytunch closed 3 years ago

aytunch commented 3 years ago

On iOS device, I upgraded to Firebase Messaging v8.0.0-dev.9 With it, I was able to use getAPNSToken() and successfully send this 64bit hexadecimal to CC. When I send a push notification from CC console and app is on the background, iOS shows the notification banner. My code looks like this:

      FirebaseMessaging.onBackgroundMessage(func);
      FirebaseMessaging.onMessageOpenedApp.listen((message) {
        print("got message");
      });

The onMessageOpenedApp and onBackgroundMessage functions do not get triggered when a notification is sent through CC console while the app is in the background. However onMessageOpenedApp triggers when I send a message from Firebase Cloud Messaging.

aytunch commented 3 years ago

By the way, this issue I opened in Flutterfire might be related to this: https://github.com/FirebaseExtended/flutterfire/issues/4300

TatankaConCube commented 3 years ago

@aytunch thank you for your support))) I liked your question too))) looks like FlutterFire has some problems with their lib.

TatankaConCube commented 3 years ago

No activity for a long time, closing. If the issue still reprodus create a new one with details.