Skip to content

Instantly share code, notes, and snippets.

@mitchtabian mitchtabian/
Last active Nov 15, 2017

What would you like to do?
private void sendRegistrationToServer(String token) {
Log.d(TAG, "sendRegistrationToServer: sending token to server: " + token);
DatabaseReference reference = FirebaseDatabase.getInstance().getReference();
private void initFCM(){
String token = FirebaseInstanceId.getInstance().getToken();
Log.d(TAG, "initFCM: token: " + token);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.