We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc5b9a8 commit 4443667Copy full SHA for 4443667
OneSignalSDK/onesignal/src/main/java/com/onesignal/UpgradeReceiver.java
@@ -30,11 +30,17 @@
30
import android.content.BroadcastReceiver;
31
import android.content.Context;
32
import android.content.Intent;
33
+import android.os.Build;
34
35
public class UpgradeReceiver extends BroadcastReceiver {
36
37
@Override
38
public void onReceive(Context context, Intent intent) {
39
+
40
+ // Return early if using Android 7.0 or earlier due to upgrade restore crash (#263)
41
+ if (Build.VERSION.SDK_INT == Build.VERSION_CODES.N)
42
+ return;
43
44
NotificationRestorer.startDelayedRestoreTaskFromReceiver(context);
45
}
46
0 commit comments