intercom_flutter icon indicating copy to clipboard operation
intercom_flutter copied to clipboard

Notifications In iOS Have Unsteady Behavior !

Open Shatha-Naami opened this issue 3 years ago • 3 comments

  • I implement FCM (firebase_messageing) to sent APNSToken for ios platforms and Token for android.

  • As below code :

    • final fcmToken = Platform.isIOS ? await firebaseMessaging.getAPNSToken() : await firebaseMessaging.getToken();
  • In Android Platforms 💯

    • Everything Is FINE, In the foreground when I sent a message from the intercom, the message was shown as bottom ovrlay, and in the background sent as push notifications. 🥳
  • In iOS Platforms 🤕

    • In the background shown as push notifications without any issues, BUT In the foreground there is Unsteady Behavior sometimes show and sometimes Not show.

intercom package version intercom_flutter: ^6.0.0 platform :ios, '13.0'

Shatha-Naami avatar Mar 07 '22 07:03 Shatha-Naami

@Shatha-Naami I believe iOS also will show the bottom banner if the app is in the foreground.

could you please share the reproducible sample? Maybe video recording of the issue will help too. Also please write to Intercom support if you think that the issue is in Intercom iOS SDK.

deepak786 avatar Mar 07 '22 20:03 deepak786

I'm having the same issue, if you have the app opened, it just doesn't receive the push notification, it happens only on iOS for me.

gfb-47 avatar Apr 06 '22 13:04 gfb-47

do you have this parameter IntercomAutoIntegratePushNotifications in info.plist? Make sure this is not added or if present then it must be with the value YES. https://developers.intercom.com/installing-intercom/docs/ios-push-notifications#step-4-handling-intercom-push-notifications

deepak786 avatar Apr 06 '22 13:04 deepak786