Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

please release a version with FCM support #245

Open
dbyron0 opened this issue Mar 29, 2017 · 15 comments
Open

please release a version with FCM support #245

dbyron0 opened this issue Mar 29, 2017 · 15 comments

Comments

@dbyron0
Copy link

dbyron0 commented Mar 29, 2017

It's been awhile since version 1.0.0 appeared. FCM support has been added since then from what I can tell. Any chance of releasing a version with FCM support?

Thanks much.

-DB

@matzew
Copy link

matzew commented Mar 31, 2017

+1

6 similar comments
@rickmune
Copy link

+1

@vishal98
Copy link

+1

@loheander
Copy link

+1

@lizhecao
Copy link

+1

@lizhecao
Copy link

+1

@ty5491003
Copy link

+1

@rahul-pharande
Copy link

rahul-pharande commented Jun 19, 2018

+1
When can we expect release version with FCM support?

@rahul-pharande
Copy link

@dbyron0 - how you handled this situation in your case? Is there any other library to use, as I don't see this repository actively maintained?

@dbyron0
Copy link
Author

dbyron0 commented Jun 19, 2018

We're using version 1.0.0 and it turns out that it works with FCM just fine.

@rahul-pharande
Copy link

@dbyron0 that's bcz GCM servers still available however those will be discontinued in April 2019 as per Google and every one has to point to FCM servers for push messages.
If you look into 1.0.0 release source you will see code is pointing to GCM url's and not the FCM

@dbyron0
Copy link
Author

dbyron0 commented Jun 20, 2018

Aaah, right you are.

@matzew
Copy link

matzew commented Jun 20, 2018

@dbyron0 @rahul-pharande I've extended the sender, overriding the getConnection method:

See here:
https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push-sender/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/fcm/ConfigurableFCMSender.java

Usage:

...
final ConfigurableFCMSender sender = new ConfigurableFCMSender(this.getGoogleKey());
Result result = sender.sendNoRetry(fcmMessage, fcm_topic);
...

@dbyron0
Copy link
Author

dbyron0 commented Jun 20, 2018

Thanks much for that @matzew.

@rsogo
Copy link

rsogo commented Feb 6, 2019

I update endpoint url in com/google/android/gcm/server/Constants.java.
It works well.

   public static final String GCM_SEND_ENDPOINT = "https://fcm.googleapis.com/fcm/send";

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants