AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
142 stars 111 forks source link

Uri custom scheme deeplink value is null (only for IOS) #243

Open jeff-odopass opened 1 year ago

jeff-odopass commented 1 year ago

When a deeplink like mycustomscheme://whatever_you_want is fired on IOS, it correctly opens the app. However, the payload of the clickEvent does not contains the link like for universal links, only the query parameters (where it is working as expected on Android).

Examples:

On Android the payload is correct:

{
  "link": "mycustomscheme://whatever?param=value",
  "param": "value",
  "is_deferred": false,
}

I have to use these types of schemes to redirect users to a specific content in my app when a push notification is clicked. If I use Onelink deeplinks (like https://company.onelink.me/...) my notification opens safari, which then redirect to the App Store. (Once again it is working as expected on Android for such links, it redirects directly to the app to the specified content).

Thanks for your help !

appsflyer_sdk version ``` 6.8.2 ```
flutter doctor -v ``` [✓] Flutter (Channel stable, 3.3.8, on macOS 12.6 21G115 darwin-x64, locale en-GB) • Flutter version 3.3.8 on channel stable at /Users/jean-francois/Documents/workspace/Flutter/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 52b3dc25f6 (2 weeks ago), 2022-11-09 12:09:26 +0800 • Engine revision 857bd6b74c • Dart version 2.18.4 • DevTools version 2.15.0 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Users/jean-francois/Library/Android/sdk • Platform android-33, build-tools 30.0.3 • ANDROID_HOME = /Users/jean-francois/Library/Android/sdk • Java binary at: /Users/jean-francois/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 14.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14B47b • CocoaPods version 1.11.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.2) • Android Studio at /Users/jean-francois/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) [✓] Android Studio (version 2020.3) • Android Studio at /Users/jean-francois/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/203.7678000/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165) [✓] VS Code (version 1.72.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.52.0 [✓] Connected device (4 available) • AC2003 (mobile) • b7b8f122 • android-arm64 • Android 12 (API 31) • iPhone de Jean-François (mobile) • 00008030-0019711C3E28802E • ios • iOS 16.0 20A362 • macOS (desktop) • macos • darwin-x64 • macOS 12.6 21G115 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.110 [✓] HTTP Host Availability • All required HTTP hosts are available • No issues found! ```
jeff-odopass commented 1 year ago

Any update on this ? Still facing issues

swiftymf commented 1 year ago

Any update on this ? Still facing issues

Are you still having issues?

I was having something similar and switched to using onAppOpenAttribution instead of onDeepLinking, but you also have to make sure that you don't set registerOnDeepLinkingCallback to true otherwise it won't use onDeepLinking. It does mention this in the docs, but I overlooked it and it seems like a lot of other people are too.

jeff-odopass commented 1 year ago

Any update on this ? Still facing issues

Are you still having issues?

I was having something similar and switched to using onAppOpenAttribution instead of onDeepLinking, but you also have to make sure that you don't set registerOnDeepLinkingCallback to true otherwise it won't use onDeepLinking. It does mention this in the docs, but I overlooked it and it seems like a lot of other people are too.

I’m not facing this issue since I stopped using AppsFlyer and replaced it by one of its competitors which works way better, for cheaper.

baiama commented 1 year ago

Any update on this ? Still facing issues