Skip to content

Instantly share code, notes, and snippets.

@hgale
Created April 27, 2018 00:25
Show Gist options
  • Save hgale/3dc608046686f19177fce324285ddba2 to your computer and use it in GitHub Desktop.
Save hgale/3dc608046686f19177fce324285ddba2 to your computer and use it in GitHub Desktop.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d(TAG,"Not there yes");
try {
String firebaseDeviceToken = FirebaseInstanceId.getInstance().getToken();
Log.d(TAG,firebaseDeviceToken);
} catch (Exception e) {
Log.d(TAG,e.getMessage());
}
//FirebaseInstanceId.getInstance().getToken()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment