skip to Main Content

Hello I am currently running a Flutter app that is using Moengage to send push notifications. Currently, the notification is receiving just fine. But, there is a problem that only occurs in iOS: the notification is not redirecting to specified link when the notification is clicked when the application is currently opened/running in background. Is there any specific configuration that I might have missed? Sorry I am unable to give a piece of code but based on the documentation I don’t think there is much things to be done in the setup after push notifications are received perfectly right?

2

Answers


  1. When a user taps on a Push Notification Banner you will get a call in This method.

    application(_:didReceiveRemoteNotification:)
    

    Check Apple’s documentation for this here Apple’s documentation for this method

    Please do remember to set The UNUserNotificationCenterDelegate to receive a callback.

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        
        // Set UNUserNotificationCenterDelegate
        UNUserNotificationCenter.current().delegate = self
        
        return true
    }
    
    Login or Signup to reply.
  2. To handle push callback, you can follow the documentation mentioned here. If you are facing any issue in getting callback, the issue could be other libraries like Firebase are interfering with method swizzling. In such case, you can implement callback manually following the documentation mentioned here.

    If you are still facing issue, please provide a Minimal, Reproducible Example on what you have tried so far so that we can provide more accurate suggestion.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search