question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppsFlyer Integration Documentation

See original GitHub issue

I’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 to features 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 to app/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:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
andrebancommented, Mar 16, 2021

With Bubblewrap, you only need the first step to enable AppsFlyer feature and set the appsFlyerId:

"features": {
    "appsFlyer": {
      "enabled": true,
      "appsFlyerId": "xxx"
    }
  },

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

0reactions
LupusX5commented, Mar 21, 2022

Yeah that’s right - we’re looking for something to fill in the missing gap of install referrer

HI! Did you find a tool for getting install referrer for TWA?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SDK integration overview – Help Center - Support - AppsFlyer
This article describes the process for the SDK V6+ integration and helps advertisers (app owners) and product managers plan the AppsFlyer SDK ......
Read more >
Basic SDK integration guide – Help Center - Support - AppsFlyer
At a glance: Work with your mobile or CTV app developer to integrate and install the SDK into Android or iOS apps. Once...
Read more >
AppsFlyer developer hub
Here you'll find comprehensive guides and documentation to help developers ... and easy integration of AppsFlyer features into your app and marketing stack....
Read more >
Android SDK - AppsFlyer developer hub
AppsFlyer Android SDK guides for developers. ... Getting started with Android SDK. SDK installation SDK integration. Core capabilities.
Read more >
Integrate SDK - AppsFlyer developer hub
Learn how to initialize and start the Android SDK. ... The codes in this document are example implementations. Make sure to change the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found