File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
nativeClasses/pushNotification Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 97
97
}
98
98
try {
99
99
(CoreClass as Object ). init ();
100
+ trace ("CoreClass init" )
100
101
if (PushNotificationsClass. isSupported) {
101
102
SaffronLogger. log ("Push Notification supported" )
102
103
if ((PushNotificationsClass as Object ). service . isServiceSupported((ServiceClass as Object ). FCM )) {
104
+ SaffronLogger. log ("FCM supported" )
103
105
var service :* = new ServiceClass((ServiceClass as Object ). FCM , "" );
104
106
service . sandboxMode = true ; // false it in production mode!!!
105
107
service . setNotificationsWhenActive(true );
193
195
}
194
196
if ((PushNotificationsClass as Object ). service . inAppMessaging. isSupported) {
195
197
(PushNotificationsClass as Object ). service . inAppMessaging. addEventListener ((InAppMessagingEventClass as Object ). SELECTED , inappmessaging_selectedHandler);
196
- Alert . show ("InAppMessaging SUPPORTED" )
198
+ SaffronLogger . log ("InAppMessaging SUPPORTED" )
197
199
} else {
198
- Alert . show ("InAppMessaging NOT SUPPORTED" )
200
+ SaffronLogger
767E
. log ("InAppMessaging NOT SUPPORTED" )
199
201
}
200
202
}
201
203
217
219
}
218
220
}
219
221
}
220
-
222
+
221
223
private static function authorisationChangedHandler (e :* ):void {
222
224
requestAuthorisation();
223
225
}
You can’t perform that action at this time.
0 commit comments