-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deep Link Conflict with AppLinks and Delegate Swizzling on iOS #30
Comments
Hello @ctykaya, Could you please try instead of the "MobileMessagingPluginApplicationDelegate.install()" call the MobileMesssaging SDK methods similar to this:
|
Hello @riskpp Issue: When a push notification contains a deeplink field and the user taps the notification when app is killed, the app does not receive or handle the deep link on iOS . However, on iOS 15, the exact same implementation works as expected — the app launches or resumes and correctly navigates to the deep link destination. Additionally, certain events (such as notification tap callbacks) are not triggered on iOS 18, while they work as expected on iOS 15. Could you please look into this issue or provide guidance on handling deep links, notification events properly on iOS 18? Thank you in advance!
Here is the delegate file:
|
@riskpp Hello, could we kindly ask for your assistance? We are waiting to resolve this issue in order to go live. Thanks in advance. |
Issue Summary:
Deep links processed by the app_links Flutter package are not being received by the Flutter application when the Infobip Mobile Messaging SDK is initialized on iOS. This issue appears to be related to the SDK's delegate swizzling and potential timing conflicts.
Detailed Description:
We are experiencing a problem with deep links not being captured by our Flutter application when using the Infobip Mobile Messaging SDK on iOS. We are using the app_links Flutter package to handle deep links.
The problem manifests as follows:
Deep Link Processing:
Deep links are correctly received by the native iOS side of the application, as confirmed by logging within the AppDelegate's didFinishLaunchingWithOptions method.
However, the uriLinkStream listener in our Flutter code, which should capture these deep links, is not being triggered.
Suspected Cause:
We believe the issue is related to the Infobip Mobile Messaging SDK's delegate swizzling, which occurs during its initialization via MobileMessagingPluginApplicationDelegate.install().
Even when we ensure the app_links logic runs before the SDK's initialization in didFinishLaunchingWithOptions, the deep link is not propagated to Flutter.
It is suspected that the delegate swizzling is causing timing issues, or that the applinks package is losing the original application delegate, before the flutter side can read the deep link.
Environment:
Steps to Reproduce:
Setup:
Create a Flutter project with the Infobip Mobile Messaging SDK and the app_links package.
Configure deep linking for your app.
Add the following code to your AppDelegate.swift:
main.dart
We would greatly appreciate your assistance in resolving this issue. Please let us know if you require any further information.
The text was updated successfully, but these errors were encountered: