appsflyer-android-app
appsflyer-android-app copied to clipboard
Blank Notification Issue
Hi
As per documentation we can track uninstall number with the help of Appsfyer by adding below line of code inside onNewToken method of firebase service class: AppsFlyerLib.getInstance().updateServerUninstallToken(getApplicationContext(), token);
But we got issue with this code, this code created blank notification .
Here is my firebase service file public class FirebaseService extends FirebaseMessagingService implements NetworkInterface{ private static final String TAG = "firebaseService"; private APIRequests apiRequests;
/**
* Called if InstanceID token is updated. This may occur if the security of
* the previous token had been compromised. Note that this is called when the InstanceID token
* is initially generated so this is where you would retrieve the token.
*/
@Override
public void onNewToken(String token) {
Log.d(TAG, "Refreshed token: " + token);
AppsFlyerLib.getInstance().updateServerUninstallToken(getApplicationContext(), token);
// sendFirebaseTokenToServer(token);
}
: : : }
https://dev.appsflyer.com/hc/docs/uninstall-measurement-android#overriding-fcms-onmessagereceived