hansemannn / titanium-firebase-cloud-messaging

Use the Firebase Cloud Messaging SDK in Axway Titanium 🚀 Edit
Other
43 stars 31 forks source link

Example got some probs. #151

Closed zenjoe closed 10 months ago

zenjoe commented 10 months ago

ISSUE 1

if (OS_IOS) { const FirebaseCore = require('firebase.core'); fc.configure(); } fc is not declared - change to if (OS_IOS) { const FirebaseCore = require('firebase.core'); FirebaseCore.configure(); }

ISSUE 2

Ti.Network.registerForPushNotifications({ success: function () { if (!!fcm) { console.log('New token', fcm.fcmToken); } },

fcm is not declared .. changes to Ti.Network.registerForPushNotifications({ success: function () { if (!!FirebaseCloudMessaging) { console.log('New token', FirebaseCloudMessaging.fcmToken); } },

m1ga commented 10 months ago

Thanks for that. It's fixed. Please make sure the issue is a bit more readable next time :wink: the formatting is a bit messed up

zenjoe commented 10 months ago

Yeah sorry - was just about to clean it up :)

Joe Kniesek