Skip to content

Commit 286fd08

Browse files
authored
Merge pull request #152 from hansemannn/readmeFixes
fix readme example issues
2 parents c771f62 + d262735 commit 286fd08

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ The propery `lastData` will contain the data part when you send a notification p
326326
```js
327327
if (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
432432
if (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) {

0 commit comments

Comments
 (0)