This app demonstrates the basic functionality of AppsFlyer's OneLink deep-linking solution. The app will be able to register it in AppsFlyer's dashboard, create real OneLink link and 'test-drive' them.
You can read more in our Developer Hub for Android here.
-
Android version >= 29
-
AppsFlyer SDK versions >= 5.4.1
- Clone the repository
- Change the package to your own package name. This is the package name that will be used AppsFlyer's dashboard.
- Run the app, preferebly on a real device, as emulators has a few issues.
‼️ Important This app runs by default with a devkey of a demo account. If you would like to see the app's data in the AppsFlyer dashboard, you need to create a demo app in your AppsFlyer account and follow the instructions below.
- Get your AppsFlyer Dev Key using these instructions
- Change the constant
afDevKey
and the package name in the filejava/simple_deep_link_pass_data/app/src/main/java/com/appsflyer/onelink/appsflyeronelinkbasicapp/AppsFlyerConstants.java
:
package YOUR_PACKAGE_NAME;
public class AppsFlyerConstants {
static final String afDevKey = "XXXXXXXXXXXXX";
}
- Do not push this change above to a public repo!
- Ask your marketer to create some OneLink links and start running fruit campaigns 🍎