Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Suppport? #711

Open
Kansattica opened this issue May 24, 2016 · 18 comments
Open

Firebase Suppport? #711

Kansattica opened this issue May 24, 2016 · 18 comments

Comments

@Kansattica
Copy link

Google recently released their new notification engine, Firebase Cloud Messaging. Will PushSharp support it in the near future?

@AdhamAwadhi
Copy link

Will support?

@stewieoO
Copy link

stewieoO commented Jun 6, 2016

Theoretically it's only changing the url and it should work as before, correct?

@stewieoO
Copy link

stewieoO commented Jun 6, 2016

Actually, just call
OverrideUrl()
on the GcmConfiguration. And use this url "https://fcm.googleapis.com/fcm/send".

Worked for me :) # #

@mcvasquez
Copy link

@siegerx3 It doesn't worked for me. Could you post an example, please?

@stewieoO
Copy link

stewieoO commented Jun 20, 2016

@mcvasquez
var gcmConfig = new GcmConfiguration("APIKEY");
gcmConfig.GcmUrl = "https://fcm.googleapis.com/fcm/send";

This is what i'm doing and what is working for me.
I can't tell you tho if your problem comes from somewhere else.

@mcvasquez
Copy link

@siegerx3 I was using config.OverrideUrl("https://fcm.googleapis.com/fcm/send"); as you specified before. It works now using gcmConfig.GcmUrl = "https://fcm.googleapis.com/fcm/send";. Thanks.

@stewieoO
Copy link

@mcvasquez
Yeah sorry about that, i first saw the method and then i saw that you can simply use the property.
Glad it works now tho :)

@hamzauzumcu
Copy link

@siegerx3 Thanks bro you save my day

@menasheu
Copy link

If I use the Firebase console, I can send a notification to my device using the identifiers of the application (senderID, Server Key). If I use Pushsharp with the above changes in the URL and using the same application identifiers, my callback says that the notification was successful but my device does not receive it. Any ideas?

@stewieoO
Copy link

stewieoO commented Aug 6, 2016

@menasheu
Can you show the code how you build your notification?
And to what device are you sending? IOS or Android?

@menasheu
Copy link

menasheu commented Aug 6, 2016

Sorry but I forgot to mention that it is now working fine. I use the code and directives supplied by Google on the client side for Android. Haven't tried yet iOS. For the server side, the above change on the URL just did it. Thanks anyway for inquiring.

@ronaldoperes
Copy link

Hi everyone,
I am using pussharp with GCM, and trying to migrate do FCM.
Do i need to change it in the app?

Just now i am having some strange behaviors, like i send 1 push and the cellphone receive it 3 times... any ideas?

I followed the example of "sieger3x"

Thanks

@naveedahmed1
Copy link

Any update on this?

@stewieoO
Copy link

@naveedahmed1
Do you have any particular problem with using FCM and PushSharp?

@thgreasi
Copy link

thgreasi commented Jan 9, 2017

@siegerx3 I've been struggling with this but can't make the message to reach the device.
The OnNotificationSucceeded is invoked and no error shows up.
The target registrationID seems to be correct, since when using it on the web message composer @ console.firebase.google.com the message shows up.

@thgreasi
Copy link

thgreasi commented Jan 9, 2017

Ok, so it was a mobile dev issue not having a proper Notification handler... So embarrassed, sorry for the extra noise.

@stewieoO
Copy link

@thgreasi
No worries :)

@ElNinjaGaiden
Copy link

ElNinjaGaiden commented Jun 24, 2017

Hello everyone. I'm trying to use PushSharp + Firebase and it seems it works fine but I'm having a hard time trying to try to send the push to a specific topic instead to a single or a group of specific device registrations.

Any idea how can this be done??
Thanks in advance.

EDIT
Ok it works if I set the to values as /topics/<myTopicHere>
Now for some reason I'm not getting any error on the server/pushsharp side but I'm getting notifications on my device.

EDIT 2
It was a problem with the payload I was sending. Nevermind.

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

No branches or pull requests

10 participants