AppsFlyerSDK / AdobeAirExtension-AppsFlyer

Adobe Air Extension for AppsFlyer
24 stars 22 forks source link

Uninstall measurement #41

Closed shaymolho closed 2 years ago

shaymolho commented 2 years ago

Report

We would like to implement AppsFlyer uninstall measurement, both in android and iOS. We are using an ANE for firebase FCM - https://github.com/distriqt/ANE-Firebase In android I followed the steps outlined in appsflyer tutorial but i didn't know how to proceed with https://support.appsflyer.com/hc/en-us/articles/360017822118#integrate-fcm-into-the-app

Plugin Version

v6.2.31

On what Platform are you having the issue?

ios and android

shaymolho commented 2 years ago

@af-vs any update on this?

sokoloff06 commented 2 years ago

Hi @shaymolho!

Can you please clarify which step are you struggling with?

In the essence, to make it work in Android, you need to forward device push notification token to AppsFlyer SDK either automatically registering our FirebaseMessagingServiceListener in AndroidManifest OR by passing device token (that you should be able to get from Firebase FCM ANE) via the ActionScript API registerUninstall(deviceToken:String):void of the AppsFlyerInterface

As for the iOS, you can pass the device token (that you would normally get from application(_:didRegisterForRemoteNotificationsWithDeviceToken:) in native code) to the same ActionScript API as for Android. I'm not sure if and how it is possible to get this token using ANE for Firebase FCM on iOS.