I know push is a big fat pain but I feel like, by leveraging Firebase, we can avoid at least two or three extra plugin installations by supporting the build-in power of Firebase 3.0. Just want to put on your radar screen support for the new Firebase Cloud Messaging which is essentially rebranded GCM. Maybe we could reuse some GCM integration borrowed from the current NativeScript Push plugin.
Thanks Eddy!
Wow, FCM is a step up from GCM configuration-wise. Certainly considering this!
I know, and the whole cross platform story is super compelling...
Getting somewhere!
Note that iOS certificate hell is still as bad as ever.
Update: iOS 10 had some push / badge issues that delayed my work a bit. I'm just assuming those are pre-beta issues that will be ironed out, so testing this baby with iOS 9 for now and it starts to look super good!
My hands are itching to get to work with this! Any idea when there will be something "releasable"?
Ha, @bfv, you can expect iOS support to land today. I'm doing the final tests and have to document it. You can prepare yourself by going through certificate hell (add the push entitlement to your appid at the iOS developer center, add the push certificates to it, upload those certs to the firebase console, generate and download new provisioning profiles - basically this).
Android support will follow shortly after, but once you've got iOS running that will be a breeze to add.
@bfv go ahead and grab it from github.. not on npm yet. Working on Android support currently.
So amped for this!
I wait a little longer for the Android support. Keep up the good work!
Android support just landed! ๐
Tagging and releasing 3.3.0 right now, see the new docs on how to use it.
Btw, I recommend removing and adding the Android platform since I figured out which bits of the play services libs were really needed on Android (thanks Google for not documenting that) - should help ppl not running into multiDex issues in the future. Don't forget to re-add the two gradle afterwards bits as mentioned in the readme.
Also, I've made wiring Facebook and Cloud messaging as easy as possible for the developer, the only thing that's required is doing this in app.js.
Fantastic, Eddy! ๐๐ป๐๐ป๐๐ป๐๐ป๐๐ป
It works! Thanks!
I am looking for Nativescript Firebase Push Notification demo sample.. Anyone please help ??
firebase.init(
{
iOSEmulatorFlush: true,
onPushTokenReceivedCallback (token){
console.log("Push Token: "+ token);
}
onMessageReceivedCallback: function(message) {
alert(message.title+"");
this.router.navigate(["/main-menu"]);
}
}).then(
(instance) => {
console.log("firebase.init done");
},
(error) => {
console.log("firebase.init error: " + error);
});
How can I send push token to Own backend Server.. ??
@pap5508 You can send the token to the backend by utilising the onPushTokenReceivedCallback callback inside the init method.
onPushTokenReceivedCallback (token){
//send the token to the backend. You might also want to add some additional information such as the user details in case you want to target notifications to the a specific user
}
I'm working on a blogpost about this, please stay tuned and watch for it in the NativeScript blog!
@jlooper : Have u completed your blog..???
@pap5508 working on it for next week, thanks
I am working on firebase push notifications bt I am not able to launch
dialog for asking permission...
Though response from server that Firebase init done.
.
Hope you can guide me that why confirm dialog is not showing..???
Rewards,
Parth
On Feb 7, 2017 16:29, "Jen Looper" notifications@github.com wrote:
@pap5508 https://github.com/pap5508 working on it for next week, thanks
โ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/EddyVerbruggen/nativescript-plugin-firebase/issues/54#issuecomment-278034530,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIGHC7dnqGFP5mi8falkpsgEkkHVLA6Fks5raI3FgaJpZM4I1lI1
.
Firebase Cloud Messaging (FCM) get always prompt though no message is send with nativescript webpack plugin, but work gud without nativescript webpack plugin
Most helpful comment
I'm working on a blogpost about this, please stay tuned and watch for it in the NativeScript blog!