You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixed bug where notifications would not be displayed if the app was still running in the background unless enableNotificationsWhenActive was set to true.
* Omitting Google Play specific error logging when running on Amazon devices.
@@ -166,14 +176,22 @@ public static void init(Activity context, String googleProjectNumber, String one
166
176
if ("b2f7f966-d8cc-11eg-bed1-df8f05be55ba".equals(oneSignalAppId) || "5eb5a37e-b458-11e3-ac11-000c2940e62c".equals(oneSignalAppId))
167
177
Log(LOG_LEVEL.WARN, "OneSignal Example AppID detected, please update to your app's id found on OneSignal.com");
168
178
169
-
try {
170
-
Double.parseDouble(googleProjectNumber);
171
-
if (googleProjectNumber.length() < 8 || googleProjectNumber.length() > 16)
172
-
thrownewIllegalArgumentException("Google Project number (Sender_ID) should be a 10 to 14 digit number in length.");
173
-
}
174
-
catch (Throwablet) {
175
-
Log(LOG_LEVEL.FATAL, "Google Project number (Sender_ID) format is invalid. Please use the 10 to 14 digit number found in the Google Developer Console for your project.\nExample: '703322744261'\n", t, context);
176
-
currentSubscription = -6;
179
+
if (deviceType == 1) {
180
+
try {
181
+
Double.parseDouble(googleProjectNumber);
182
+
if (googleProjectNumber.length() < 8 || googleProjectNumber.length() > 16)
183
+
thrownewIllegalArgumentException("Google Project number (Sender_ID) should be a 10 to 14 digit number in length.");
184
+
} catch (Throwablet) {
185
+
Log(LOG_LEVEL.FATAL, "Google Project number (Sender_ID) format is invalid. Please use the 10 to 14 digit number found in the Google Developer Console for your project.\nExample: '703322744261'\n", t, context);
0 commit comments