Skip to main content

Problem

Common issues with Push notifications, including failed delivery, screen navigation, deep linking, and rich landing, are occurring on iOS devices using Flutter, Objective-C, and MoEngage-iOS-SDK (Versions 7.x.x, 8.x.x, 9.x.x).

Solution

Perform the following steps:
  1. Firebase Proxy:
    • If you are not using Firebase push notifications, then disable the Firebase proxy by adding the FirebaseAppDelegateProxyEnabled key in info.plist with the value Boolean = False/NO.
    • Test the push notification. If successful, no further action is required. Otherwise, follow the steps below.
    • If you are using Firebase push notifications, skip this step and proceed with the following steps.
  2. Disable MoEngage Proxy:
    • Add MoEngageAppDelegateProxyEnabled key in info.plist with the value Boolean = false/NO boolean.png
  3. Override didRegisterForRemoteNotificationsWithDeviceToken Function:
    • Override the didRegisterForRemoteNotificationsWithDeviceToken function of the AppDelegate.m file.
      Objective-C
  4. Override UNUserNotificatoinCenterDelegate Functions:
    • Override the UNUserNotificatoinCenterDelegate functions in the AppDelegate.m file.
      Objective-C