adjust / flutter_sdk

This is the Flutter SDK of
MIT License
56 stars 47 forks source link

deeplink navigates to the store but does not perform action when opening the app on iOS #130

Open PauloReiis opened 3 months ago

PauloReiis commented 3 months ago

Good morning guys,

I have a question/problem with the adjustment...

Scenario:

I received a deeplink that should open a screen in the XPTO application, but I don't have this application installed.

Because I don't have the app installed, I am directed to the Apple store, after installation and login, the deeplink action is not performing.

However, if I already have the app installed and click on the deeplink, everything works fine.

NOTE: on Android everything works without problems.

Has anyone experienced this or know how to resolve it?

uerceg commented 3 months ago

Hi @PauloReiis,

Not sure if I got the problem right, but from what I am reading from your issue description, it seems to me as if deferred deep link seems not to be arriving to your iOS app after you install it after being redirected to the App Store.

Can you try these steps to double check if you are seeing deferred deep link being delivered to your app after you test this scenario locally?

Rohit-joshi-apna commented 3 months ago

Hey I'm also facing the same issue but in the playstore. I have already tried it with these steps. The app seems to be running fine when I'm using the deeplink normally but deferred deeplink does not seems to get processed when the app is installed from playstore.

jrb1989 commented 3 months ago

Same here! any solution?

uerceg commented 3 months ago

There should be no difference in how deferred deep linking works, regardless of where you install your app after clicking on the link from - locally or from the store.

Can you share the information about the test tracker URL you are using (feel free to omit any sensitive information from it) and share in here the logs you are getting from the SDK after you perform these steps (again, feel free to omit any sensitive information from the logs)?

PauloReiis commented 2 months ago

Here on IOS, tracking permission was missing in IOS 14.0 or higher.

inside AppDelegate

   override func applicationDidBecomeActive(_ application: UIApplication) {
       if #available(iOS 14, *) {
           ATTrackingManager.requestTrackingAuthorization { status in
               switch status {
                   case .authorized:
                       print("enable tracking")
                   case .denied:
                       print("disable tracking")
                   default:
                       print("disable tracking")
               }
           }
       }
   }

inside info.plist

    <key>NSUserTrackingUsageDescription</key>
    <string>Description.</string>