Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank Notification Issue #4

Open
ummerakbar45 opened this issue Nov 8, 2018 · 1 comment
Open

Blank Notification Issue #4

ummerakbar45 opened this issue Nov 8, 2018 · 1 comment

Comments

@ummerakbar45
Copy link

ummerakbar45 commented Nov 8, 2018

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

}

:
:
:
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants