PeterStaev / nativescript-azure-mobile-apps

:cloud: NativeScript plugin for working with Microsoft Azure Mobile Apps services
Apache License 2.0
30 stars 10 forks source link

Question: Firebase ID in my settings? #18

Closed philippsander closed 7 years ago

philippsander commented 7 years ago

Why should i use this plugin, when i still need a firebase ID?

PeterStaev commented 7 years ago

Hey @philippsander , this plugin only unifies access for both Android and iOS so you can send push notifications to both platforms. Similarly how you need an Apple push certificate installed in Azure for iOS notification, you need firebase ID and App ID registered with Google and entered on the Azure portal.

philippsander commented 7 years ago

you need firebase ID and App ID registered with Google and entered on the Azure portal.

do you mean the azure portal needs firebase?!

PeterStaev commented 7 years ago

Of course it needs it. Like I said Azure just wraps up iOS and Android push under a same API calls so you can call one API and send to both platforms. In the back it still uses GCM (or now FCM) to send to Android devices and APN to send to iOS devices. Take a look at https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-android-push-notification-google-gcm-get-started

philippsander commented 7 years ago

but GCM is not firebase...

PeterStaev commented 7 years ago

Actually you are wrong, FCM superseded GCM. Take a look at https://developers.google.com/cloud-messaging/

philippsander commented 7 years ago

sorry this is all new for me.

Firebase Cloud Messaging (FCM) is the new version of GCM.

I understood this as: FCM is something different than GCM. it's the new version. you can still use GCM if you want.

philippsander commented 7 years ago

my main question here is: can I use your plugin with GCM?

PeterStaev commented 7 years ago

I haven't tried but I guess it should work.