kopia lustrzana https://github.com/ryukoposting/Signal-Android
Do a normal message fetch in FcmReceiveService#onDeleteMessages()
rodzic
bbbccccf47
commit
701e43c13d
|
@ -20,7 +20,7 @@ public class FcmReceiveService extends FirebaseMessagingService {
|
|||
|
||||
@Override
|
||||
public void onMessageReceived(RemoteMessage remoteMessage) {
|
||||
Log.i(TAG, "FCM message... Delay: " + (System.currentTimeMillis() - remoteMessage.getSentTime()));
|
||||
Log.i(TAG, "onMessageReceived() ID: " + remoteMessage.getMessageId() + ", Delay: " + (System.currentTimeMillis() - remoteMessage.getSentTime()));
|
||||
|
||||
String challenge = remoteMessage.getData().get("challenge");
|
||||
if (challenge != null) {
|
||||
|
@ -30,6 +30,12 @@ public class FcmReceiveService extends FirebaseMessagingService {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDeletedMessages() {
|
||||
Log.w(TAG, "onDeleteMessages() -- Messages may have been dropped. Doing a normal message fetch.");
|
||||
handleReceivedNotification(ApplicationDependencies.getApplication());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNewToken(String token) {
|
||||
Log.i(TAG, "onNewToken()");
|
||||
|
|
Ładowanie…
Reference in New Issue