AppsFlyer Integration Documentation
See original GitHub issueI’m currently trying to implement AppsFlyer into our bubblewrap TWA. I’ve noticed that @andreban added a commit to support the AppsFlyer SDK https://github.com/GoogleChromeLabs/bubblewrap/pull/278/files#diff-4db0ae3cf5a497bda3407532f94f2c474cb553f8e4d6161add886361991a25a9R24 but I can’t find any documentation on how to use it
Following the documentation on Appsflyer https://support.appsflyer.com/hc/en-us/articles/360002330178-Using-AppsFlyer-with-TWA-and-PWA#inapp-events-with-twa-getting-the-appsflyer-id hasn’t gotten me far
Steps I’ve completed:
- Add
appsFlyerId
/dev key tofeatures
list:
"features": {
"appsFlyer": {
"appsFlyerId": "xxx"
}
},
- Add jitpack maven url to the top level
build.gradle
file
repositories {
google()
jcenter()
// For AppsFlyer https://support.appsflyer.com/hc/en-us/articles/360002330178-Using-AppsFlyer-with-TWA-and-PWA#inapp-events-with-twa-getting-the-appsflyer-id
maven { url 'https://www.jitpack.io' }
}
- Added custom-tabs-client implementation to
app/build.gradle
- can no longer build, fails with 502
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
// AppsFlyer https://support.appsflyer.com/hc/en-us/articles/360002330178-Using-AppsFlyer-with-TWA-and-PWA#inapp-events-with-twa-getting-the-appsflyer-id
implementation 'com.github.GoogleChrome.custom-tabs-client:customtabs:91b4a1270b'
implementation 'com.google.androidbrowserhelper:androidbrowserhelper:2.2.0'
}
- Attempted to add
customtabs
imports toapp/build.gradle
- can no longer build, import fails
// AppsFlyer imports https://support.appsflyer.com/hc/en-us/articles/360002330178-Using-AppsFlyer-with-TWA-and-PWA#inapp-events-with-twa-getting-the-appsflyer-id
import android.support.customtabs.CustomTabsClient;
import android.support.customtabs.CustomTabsIntent;
import android.support.customtabs.CustomTabsServiceConnection;
import android.support.customtabs.CustomTabsSession;
import android.support.customtabs.trusted.TrustedWebActivityIntentBuilder;
import static android.support.customtabs.TrustedWebUtils.EXTRA_LAUNCH_AS_TRUSTED_WEB_ACTIVITY
I’m unsure where i should be looking next. I assume i need to bubblewrap build
again but doing so fails with invalid imports. What steps am i missing? How do I use the SDK integration?
If someone could help me out i’d be happy to write up a doc compiling my findings
Thanks in advance
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top GitHub Comments
With Bubblewrap, you only need the first step to enable AppsFlyer feature and set the
appsFlyerId
:The steps in the AppsFlyer docs are for creating the integration manually - and the TWA used in their docs are outdated.
On a side note, we are not heavily promoting this and other features, as they are incompatible with Chrome OS - in that OS, when starting from the home screen, it will not trigger the Android code.
CC @ibrahimkarahan
HI! Did you find a tool for getting install referrer for TWA?