-
Notifications
You must be signed in to change notification settings - Fork 118
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
Init Sdk and getting installs #78
Comments
Hey @fedorstepanovv, Please try updating to the latest version and notice the init API change. Thanks! |
Hey, i have changed the version of an appsflyer but still have the same issue. What did you mean, whey said about the init api change? And one more question. Can i init this sdk throught the async function in my init state? Or i need to make it only through future builder? Thanks for your reply |
This is my logcat after i have updated appsflyer to the last version (6.2.0) 02-24 13:18:59.586 31051-31051/com.appsprod.amazing_girls D/AppsFlyer_6.2.0: Install referrer is allowed |
Finally fixed the issue. It was because of my old package version. |
I have successfully connected appsflyer to my app to get clicks and impressions. To get installs, i tried to install referrer to my manifest file. But it doesnt work, i dont have any numbers in my dashboard. I decided that the main problem is that i didnt init sdk.
My code to init appsflyer:
AppsflyerSdk _appsflyerSdk;
final AppsFlyerOptions options = AppsFlyerOptions(
afDevKey: DotEnv().env["DEV_KEY"],
appId: DotEnv().env["APP_ID"],
showDebug: true);
_appsflyerSdk = AppsflyerSdk(options);
_appsflyerSdk.initSdk(registerConversionDataCallback: true, registerOnAppOpenAttributionCallback: true);
I expected my app will build and i am going to test my installs. And for the first time my app has built successfully and i started testing it. I've added devices to test the app as i read in documentation. Anyway i didnt get any numbers in my dashboard. And now when i try to launch my app - i am getting this issue, when debug says:
D/AppsFlyer_6.1.4( 5744): Install referrer is allowed
D/AppsFlyer_6.1.4( 5744): Connecting to Install Referrer Library...
#56 pc 004ce62f /apex/com.android.art/lib/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, char*)+735) (BuildId: 123e60096a46399e6f56e4eb5c70759a)
#57 pc 003f8a8e /apex/com.android.art/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, char*, art::Primitive::Type, art::InvokeType)+2846) (BuildId: 123e60096a46399e6f56e4eb5c70759a)
#58 pc 003e60b9 /apex/com.android.art/lib/libart.so (art::(anonymous namespace)::CheckJNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, char*)+73) (BuildId: 123e60096a46399e6f56e4eb5c70759a)
#59 pc 0008f90e /system/lib/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+62) (BuildId: 588f2cd5873ff4273bb25b25edb82606)
#60 pc 00098c8e /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vectorandroid::String8 const&, bool)+910) (BuildId: 588f2cd5873ff4273bb25b25edb82606)
#61 pc 00003804 /system/bin/app_process32 (main+1588) (BuildId: c5eedbfb6130af84c3db8e121fb1202e)
#62 pc 000522e3 /apex/com.android.runtime/lib/bionic/libc.so (__libc_init+115) (BuildId: a690ed60a8b6a282b41dd991389b5fdb)
Lost connection to device.
Exited (sigterm)
The text was updated successfully, but these errors were encountered: