Skip to content
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

Testing for Android not response code: 200 as expect #308

Closed
stanhe opened this issue Mar 20, 2024 · 2 comments
Closed

Testing for Android not response code: 200 as expect #308

stanhe opened this issue Mar 20, 2024 · 2 comments
Labels

Comments

@stanhe
Copy link

stanhe commented Mar 20, 2024

Describe the bug
my flutter project Initializing the SDK,when i finished,and Testing for Android, there has no request and response as mentioned in the doc.

To Reproduce
Steps to reproduce the behavior:

  1. finish all the step of initializing the SDK with flutter guide
  2. create the deep link and send to my email
  3. uninstall my android app on the phone
  4. click the email ,jump to play stroe, then install my app with Android Studio debug mode
  5. open my app, and check the logcat output

Expected behavior
as mentioned, show the right logcat info as Testing for Android doc show

Screenshots
image
my logcat:
image

Smartphone (please complete the following information):

  • Device: Google Pixel4
  • OS: Android 13

Additional context
i put "appsflyerSdk!.startSDK();" in my logic code,that's say i do this on my MAIN page
sometimes kill and restart my application it works,en... i just debug it half day ago.

Copy link

👋 Hi @stanhe 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 [email protected].
When submitting the ticket, please specify:

  • ✅ your AppsFlyer sign-up (account) email
  • ✅ app ID
  • ✅ production steps
  • ✅ logs
  • ✅ code snippets
  • ✅ and any additional relevant information.

@stanhe
Copy link
Author

stanhe commented Mar 21, 2024

i fixed it by split initSdk() and startSdk() to diffrent place.
initSdk() may take some time, so do not call initSdk() and startSdk() in one method.
bad code:

 static initSdk() {
    .....
    appsflyerSdk = AppsflyerSdk(options);
    appsflyerSdk!.initSdk(
        registerConversionDataCallback: true,
        registerOnAppOpenAttributionCallback: true,
        registerOnDeepLinkingCallback: true);
     appsflyerSdk!.startSDK();
}

good code:

static AppsflyerSdk? appsflyerSdk;
static initSdk() {
     .....
    appsflyerSdk = AppsflyerSdk(options);
    appsflyerSdk!.initSdk(
        registerConversionDataCallback: true,
        registerOnAppOpenAttributionCallback: true,
        registerOnDeepLinkingCallback: true);
}
static startSdk() {
    appsflyerSdk?.startSDK();
    HiLog.d('appsflyerSdk.startSdk');
  }

@stanhe stanhe closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants