@@ -0,0 +1,831 @@
+package com.google.firebase.udacity.friendlychat;%0A%0A/**%0A * Created by kashyap on 19/2/17.%0A */%0A%0Aimport android.util.Log;%0A%0Aimport com.google.firebase.iid.FirebaseInstanceId;%0Aimport com.google.firebase.iid.FirebaseInstanceIdService;%0A%0A/**%0A * @author ton1n8o - antoniocarlos.dev@gmail.com on 6/13/16.%0A */%0Apublic class MyFirebaseInstanceIDService extends FirebaseInstanceIdService %7B%0A%0A    private static String TAG = %22Registration%22;%0A%0A    @Override%0A    public void onTokenRefresh() %7B%0A        // Get updated InstanceID token.%0A        String refreshedToken = FirebaseInstanceId.getInstance().getToken();%0A        Log.d(TAG, %22Refreshed token: %22 + refreshedToken);%0A%0A        // TODO: Implement this method to send any registration to your app's servers.%0A        System.out.println(%22Registration.onTokenRefresh TOKEN: %22 + refreshedToken );%0A    %7D%0A%7D

Add Notification