Skip to content

Commit 5ebbd80

Browse files
authored
Merge pull request #600 from OneSignal/gcm_job_fallback_fix
Corrected wakeful service fallback to job call
2 parents 3d81d89 + 7b24783 commit 5ebbd80

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)