8000 Update DistriqtPushNotification.as · SaffronCode/SaffronCode@d9082b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit d9082b8

Browse files
committed
Update DistriqtPushNotification.as
1 parent 07a196d commit d9082b8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

nativeClasses/pushNotification/DistriqtPushNotification.as

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,11 @@
9797
}
9898
try {
9999
(CoreClass as Object).init();
100+
trace("CoreClass init")
100101
if (PushNotificationsClass.isSupported) {
101102
SaffronLogger.log("Push Notification supported")
102103
if ((PushNotificationsClass as Object).service.isServiceSupported((ServiceClass as Object).FCM)) {
104+
SaffronLogger.log("FCM supported")
103105
var service:* = new ServiceClass((ServiceClass as Object).FCM, "");
104106
service.sandboxMode = true; // false it in production mode!!!
105107
service.setNotificationsWhenActive(true);
@@ -193,9 +195,9 @@
193195
}
194196
if ((PushNotificationsClass as Object).service.inAppMessaging.isSupported) {
195197
(PushNotificationsClass as Object).service.inAppMessaging.addEventListener((InAppMessagingEventClass as Object).SELECTED, inappmessaging_selectedHandler);
196-
Alert.show("InAppMessaging SUPPORTED")
198+
SaffronLogger.log("InAppMessaging SUPPORTED")
197199
} else {
198-
Alert.show("InAppMessaging NOT SUPPORTED")
200+
SaffronLogger 767E .log("InAppMessaging NOT SUPPORTED")
199201
}
200202
}
201203

@@ -217,7 +219,7 @@
217219
}
218220
}
219221
}
220-
222+
221223
private static function authorisationChangedHandler(e:*):void {
222224
requestAuthorisation();
223225
}

0 commit comments

Comments
 (0)
0