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 Cloud Messaging #313

Closed
ale5000-git opened this issue Feb 16, 2017 · 14 comments
Closed

Firebase Cloud Messaging #313

ale5000-git opened this issue Feb 16, 2017 · 14 comments

Comments

@ale5000-git
Copy link
Member

Is this supported? If no, please add it.

Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features

Info are here.

@RMcNeely
Copy link

RMcNeely commented Feb 16, 2017 via email

@mar-v-in
Copy link
Member

FCM shouldn't require changes in GmsCore. On Android, FCM is just a new API around GCM. I don't know how it is realized on other platforms, but that's OT here.

@ale5000-git
Copy link
Member Author

For the new API to appears on Android doesn't it need to be supported in GmsCore?

@jfrederickson
Copy link

@mar-v-in's comment made it sound like FCM doesn't require changes in microG (am I understanding that correctly?) but an application I use that just switched from GCM to FCM is no longer able to register my device.

<yannick> i have a bug report from a nexus 5 device.
<yannick> Have a look to  GCMHelper logs
<yannick> D/GCMHelper: ## getRegistrationToken(): null
<yannick> means that the FCM registration fails.
<yannick> The latest Google play version works only with the official ROMs.
<yannick> MicroG does not seem compliant with FCM.

@mar-v-in
Copy link
Member

@jfrederickson which app is that?

@jfrederickson
Copy link

Riot: https://github.com/vector-im/riot-android

Looks like this is where they switched over to FCM: element-hq/riot-android@15bba9d

mar-v-in added a commit that referenced this issue May 1, 2017
was optional before but is required for firebase iid
- fixes bug with riot dev version reported in #313
- might be related to comment 2 in #322
@tostercx
Copy link

tostercx commented Jul 6, 2018

Have there been any news / workarounds for this? My bank's 2FA (com.smart_id) seems to be half-broken, I think it's due to FCM :<

E FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE

@tostercx
Copy link

tostercx commented Sep 7, 2018

I have no idea what changed but the latest version seems to have fixed it for me!

Probably this? 9e0ee10

@chris42
Copy link

chris42 commented Sep 7, 2018

Please see #439

@farfromrefug
Copy link

I am a developer and was fighting to get my app to work with microg.
I was constantly hit with SERVICE_NOT_AVAILABLE errors.
I then used that code with my app id and google json file and it worked!
So what was different?
I figured it out. It is the version of com.google.firebase:firebase-messaging you use to build your app.
Using 19.0.1 will work with microg. But then updating to 20.1.5, uninstall/build/run and you will get a SERVICE_NOT_AVAILABLE error!

So i would guess that something changed which makes it not work anymore. We need to find what. Now it also means that any app using com.google.firebase:firebase-messaging later that 20.0.0 (which i would guess is the breaking point), wont work at all with microg!

@godfuture
Copy link

So i would guess that something changed which makes it not work anymore. We need to find what. Now it also means that any app using com.google.firebase:firebase-messaging later that 20.0.0 (which i would guess is the breaking point), wont work at all with microg!

Same here. My banking app offered digital cards which is an alternative to Google Pay. But I get issues during registration. I found out that the "firebase messaging id" is missing. Most likely microg is missing latest API elements. Unfortunately I do not know firebase version used in the banking app.

@danielfrankcom
Copy link

Unfortunately the Fastmail app also seems to encounter a similar SERVICE_NOT_AVAILABLE after a fresh microG install.

@emersion
Copy link

emersion commented Mar 7, 2022

Now that 5146559 is merged, maybe this issue can be closed?

@ale5000-git
Copy link
Member Author

Everything should already be fixed on the latest version of microG GmsCore so I close it for now.
Open a new issue if needed.

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

Successfully merging a pull request may close this issue.

10 participants