santa icon indicating copy to clipboard operation
santa copied to clipboard

More details on FCM setup

Open ameyah opened this issue 6 years ago • 4 comments

Hello,

I am exploring the FCM feature in Santa. I have a few questions:

  1. As per Santa docs, the fcm_token should be pushed from the sync server. As per my understanding the way FCM works is: client generates the FCM token and sends it to the server which is then used by the server to send FCM messages. I don't have first-hand experience with FCM, so I might be incorrect.

  2. If the fcm_token has to be generated from the server, can anyone point me to an API document for reference?

Thanks so much!

ameyah avatar May 08 '19 16:05 ameyah

I need to look into this, I'll get back to you.

russellhancox avatar May 08 '19 17:05 russellhancox

Checking in if you got a chance to look @russellhancox ?

ameyah avatar May 13 '19 17:05 ameyah

Sorry, I've been trying to find out how you can use this but don't have anything good to report yet. It seems that the particular FCM API we used when we implemented this is not publicly supported and switching to one of the other APIs is not a simple undertaking as they work quite differently. Hence Upvote was released with all of the FCM support removed.

It looks like the simplest option is to switch to using FCM's APNS API but that would mean having to re-sign all releases of Santa so that you'd be able to use your own APNS certificate, I think, so it's not an approach I'm particularly keen on. I'm investigating whether there's another FCM API we can switch to that wouldn't involve such re-engineering.

russellhancox avatar May 28 '19 20:05 russellhancox

Appreciate the update @russellhancox :)

ameyah avatar May 28 '19 20:05 ameyah

Marking this as closed since it's almost 4 years old. Please feel free to reopen.

pmarkowsky avatar Apr 21 '23 16:04 pmarkowsky