appsflyer-android-app icon indicating copy to clipboard operation
appsflyer-android-app copied to clipboard

Blank Notification Issue

Open ummerakbar45 opened this issue 7 years ago • 1 comments

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);

}

: : : }

ummerakbar45 avatar Nov 08 '18 06:11 ummerakbar45

https://dev.appsflyer.com/hc/docs/uninstall-measurement-android#overriding-fcms-onmessagereceived

AlexeyGodyaev avatar Aug 24 '22 07:08 AlexeyGodyaev