-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Subscribe to Topics... #79
Comments
Thinking of contributing this functionality I just discovered that this plugin still uses gcm.jar and a API that is deprecated for more than 2 years. I don't think that is even possible to use the new GCMPubSub classes and the topic feature with this old library. Are there any plans to migrate to the new API as referenced here: |
@akreienbring with 1.4.0 release I've gotten rid of the gcm.jar. Paves the wave for subscribing to topics. |
Good to hear.. In the meantime i've contributed to another repo: gonzaloaune/GCMPushPlugin#6 (comment) |
@akreienbring well 1.4.0 is now out and it no longer includes gcm.jar. We are up to date with the latest GCM libraries from Google. PR for topic functionality would be welcome. |
@akreienbring is spot on. This functionality would be an awesome addition to this plugin... in many use cases PubSub style notifications are enough for the app, no need to send the regID. Any progress regarding this? |
Hi, Can anyone please let me know if this is possible or not in the current system and if there is anyway to subscribe to multiple topics. Please let me know. Thanks in advance. |
@sunojvijayan currently not supported, eyeing support for 1.5.0 release. |
Hi all, |
gcm support for ios and supporting topics for ios/android should be top of the list :) |
Yup, this functionality is near the top of my to do list. I'm currently working on some exciting new functionality in order to make testing push much easier. If @akreienbring wants to contribute to this repo I'd be happy as the initial limitations for not supporting topics has been taken care of. |
+1 on topic's enhancement |
I checked in a working Android version to the v1.5.x branch and in progress iOS work is in branch |
I was able to get @akreienbring's code working and send notifications (topic messaging) to my android app using ToothlessGear/node-gcm... I'm stuck @ a point where on clicking the notification I'm not able to open the app... |
Added subscribeToTopics and unsubscribeFromTopics methods... I needed those to subscribe after a user has logged in into my app... and unsubscribe on logout... Used @akreienbring's code and merged some of it... |
#387 |
@cvsakpal all of the Android work is done and it is in v1.5.x branch. Still need to figure out why I can't receive notifications in the issue79 branch. Topic registration on iOS works fine. |
Merged into master but will need to fix reception of topic messages on iOS, see issue #440 |
…os-gcm-topics * commit '3a1eda75f5f6500e1d040b4908970d8127533587': Issue phonegap#79: Subscribe to Topics for iOS Issue phonegap#492: GoogleService failed to initialize Conflicts: docs/INSTALLATION.md
I don't know whether it is a problem with subscribing to topics or with the inability to send Notification to a topic, but I'm not able to receive them on my apple device. |
@Gnaneshwar511 in my case adding the |
As per the below link, in order to manage topic subscriptions on the server we need Instance ID: https://firebase.google.com/docs/cloud-messaging/android/topic-messaging So that we can manage topic subscription/unsubscripton on server by following instructions mentioned here: Does this plugin also provides access to Instance ID? so that it could be passed it to server on registration/subscription? |
This thread has been automatically locked. |
Hello,
It seems that subscribing to topics like explained here
https://developers.google.com/cloud-messaging/topic-messaging
is not implemented.
That would really be a nice enhancement... :-)
The text was updated successfully, but these errors were encountered: