2
0
mirror of synced 2025-01-12 15:14:39 +00:00

Merge pull request #957 from matttti/patch-1

fix cancelAlarm on android
This commit is contained in:
Chris Bianca 2018-04-10 15:45:04 +02:00 committed by GitHub
commit 6edb37b0ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,7 @@ public class RNFirebaseNotificationManager {
}
private void cancelAlarm(String notificationId) {
Intent notificationIntent = new Intent(context, RNFirebaseNotificationManager.class);
Intent notificationIntent = new Intent(context, RNFirebaseNotificationReceiver.class);
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, notificationId.hashCode(), notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
alarmManager.cancel(pendingIntent);
}