File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ The propery `lastData` will contain the data part when you send a notification p
326326` ` ` js
327327if (OS_IOS ) {
328328 const FirebaseCore = require (' firebase.core' );
329- fc .configure ();
329+ FirebaseCore .configure ();
330330}
331331
332332// Important: The cloud messaging module has to imported after (!) the configure()
@@ -409,8 +409,8 @@ function onToken(e) {
409409 if (OS_ANDROID ) {
410410 Ti .API .info (" New token" , e .fcmToken );
411411 } else {
412- if (fcm != null ) {
413- Ti .API .info (" New token" , fcm .fcmToken );
412+ if (FirebaseCloudMessaging != null ) {
413+ Ti .API .info (" New token" , FirebaseCloudMessaging .fcmToken );
414414 }
415415 }
416416}
@@ -431,7 +431,7 @@ FirebaseCloudMessaging.subscribeToTopic('testTopic');
431431` ` ` js
432432if (OS_IOS ) {
433433 const FirebaseCore = require (' firebase.core' );
434- fc .configure ();
434+ FirebaseCore .configure ();
435435}
436436
437437// Important: The cloud messaging module has to imported after (!) the configure()
@@ -475,8 +475,8 @@ if (OS_ANDROID) {
475475 // Register for push notifications
476476 Ti .Network .registerForPushNotifications ({
477477 success : function () {
478- if (!! fcm ) {
479- console .log (' New token' , fcm .fcmToken );
478+ if (!! FirebaseCloudMessaging ) {
479+ console .log (' New token' , FirebaseCloudMessaging .fcmToken );
480480 }
481481 },
482482 error : function (e ) {
You can’t perform that action at this time.
0 commit comments