Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
514 stars 197 forks source link

Does this package still work for native push notifications on Android? #332

Closed occasl closed 6 years ago

occasl commented 6 years ago

I've used this package in the past when Android was GCM, but now they switched to FCM and my developer was telling me it will only work for in-app messaging, meaning the app would have to be in the foreground to receive a push notification. That isn't push notifications the way I see it. Can you please advise?

laa99 commented 6 years ago

Yeah I tried using this package and I was wondering if this package is still being maintained. :/

occasl commented 6 years ago

We switched to FCM and got it working with the latest version of this package. Can't say to what extent this package is maintained, but it works fine for us given current mobile environments.

hridayeshgupta commented 6 years ago

@occasl i just started using it and couldn't get notification working on meteor app on android. I am not getting token callback, and don't know(cant find in documentation) what function would trigger asking permission for notif on android then trigger token callback. can you share relevant code sample for this for latest version? Thanks Interestingly global object PushNotification when checking in console, probably some dependency issue?

UPDATE: removing node_modules, .meteor/local, ~/.cordova and rebuilding fixed the problem. Got to know that now on android no need to ask permission to send push notification.