Arunkumar_AK

Results 1 comments of Arunkumar_AK

firebase class file final Intent intent = new Intent("tokenReceiver"); final LocalBroadcastManager broadcastManager = LocalBroadcastManager.getInstance(this); intent.putExtra("token",refreshedToken); broadcastManager.sendBroadcast(intent); storeToken(refreshedToken); //sendRegistrationToServer(refreshedToken); MainActivity LocalBroadcastManager.getInstance(this).registerReceiver(tokenReceiver, new IntentFilter("tokenReceiver")); BroadcastReceiver tokenReceiver = new BroadcastReceiver() { @Override public...