Skip to content

Commit e04a9d6

Browse files
committed
Fixed detection of project number missing from dashboard
* Checking for REMOTE value so the error status will be "Invalid Google Project Number" instead of "Google Play services library error".
1 parent 1f79a22 commit e04a9d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void registerForPush(Context context, String googleProjectNumber, Registe
5656
appContext = context;
5757
registeredHandler = callback;
5858

59-
if (googleProjectNumber == null) {
59+
if (googleProjectNumber == null || googleProjectNumber.equals("REMOTE")) {
6060
OneSignal.Log(OneSignal.LOG_LEVEL.ERROR, "Missing Google Project number!\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.");
6161
registeredHandler.complete(null, -6);
6262
return;

0 commit comments

Comments
 (0)