Closed stanhe closed 3 months ago
👋 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 support@appsflyer.com. When submitting the ticket, please specify:
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');
}
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:
Expected behavior as mentioned, show the right logcat info as Testing for Android doc show
Screenshots
my logcat:
![image](https://github.com/AppsFlyerSDK/appsflyer-flutter-plugin/assets/18304692/41fe0439-b786-4099-a51e-9d80fcd2fb2c)
Smartphone (please complete the following information):
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.