AppsFlyerSDK / appsflyer-capacitor-plugin

AppsFlyer SDK plugin for Capacitor
MIT License
13 stars 22 forks source link

Having difficulty with deferred (unified) deep linking on Simulators #106

Closed kpturner closed 9 months ago

kpturner commented 9 months ago

Report

Plugin Version

ℹ 6.12.1

On what Platform are you having the issue?

ℹ iOS and Android

What did you do?

ℹ Followed the installation instructions and those for unified deep-linking

What did you expect to happen?

ℹ I expected to be able to follow the SDK Test procedure for deferred deep-linking and it to work as expected

What happened instead?

ℹ I start the test and am given a QR code which I execute on the iSO simulator I then drag/drop the app onto the device Return to the test which tells me to click a button and then open the app - which I do The test just hangs waiting for a response (presumably from the app) but nothing materialises

Please provide any other relevant information.


It is very difficult to diagnose why this is not working as expected. Ordinary deep-linking seems to be working fine. The install/setup instructions for this SDK don't seem to require me to make any changes to the AppDelegate.swift file in the iOS project so I have not. However I have seen in the AppsFlyer docs a need to do this:

func applicationDidBecomeActive(_application: UIApplication) {
  // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
  AppsFlyerLib.shared().start() 
}

Is that required or not? Or does the SDK take care of that for you?

With Android it is even harder to test, because Capacitor deploys the app and runs it straight away. There does not seem to be a way to run the OneLink, then install manually, then later open the app. Is there a recommended way to achieve this and test deferred/unified deep linking?

github-actions[bot] commented 9 months ago

👋 Hi @kpturner and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

kpturner commented 9 months ago

support@appsflyer.com are already aware of this issue - but this question was specifically to do with this SDK in particular.

kpturner commented 9 months ago

I think I have resolved this by completely avoiding using capacitor to build the app and deploy it. I can build the app in xCode and drag and drop it from products to install it at the correct point in the test. Similarly I can build and deploy separately in Android Studio.