Skip to content

Commit 7b24783

Browse files
committed
Correct wakeful service fallback to job call
1 parent 3cc4c31 commit 7b24783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OneSignalSDK/onesignal/src/main/java/com/onesignal/GcmBroadcastReceiver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private static void startGCMService(Context context, Bundle bundle) {
139139
// If the high priority FCM message failed to add this app to the temporary whitelist
140140
// https://github.com/OneSignal/OneSignal-Android-SDK/issues/498
141141
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
142-
startGCMServiceWithWakefulService(context, bundle);
142+
startGCMServiceWithJobScheduler(context, bundle);
143143
else
144144
throw e;
145145
}

0 commit comments

Comments
 (0)