We have moved to a new Sailfish OS Forum. Please start new discussions there.
8

microG and FCM

asked 2019-09-18 18:51:33 +0200

UweLabs gravatar image

updated 2019-09-18 20:35:27 +0200

rozgwi gravatar image

(XA2, SFOS 3.1.0.11, microG 0.2.8.17785)

Searching the internet for "microG and FCM" there you can find sites that say microG supports FCM. I'm not sure if this is right.
If e.g. you activatate logging in Threema (4.1) and then in Threema settings reregistering for FCM the log says:

WARN FcmRegistrationIntentService: Failed to get FCM token from Firebase: SERVICE_NOT_AVAILABLE

Is here in the community someone who can bring some light into this matter?
Best regards, Uwe.

edit retag flag offensive close delete

Comments

Is it really true that nobody knows about this topic? (Not even someone from Jolla?) Best regards, Uwe.

UweLabs ( 2019-09-21 20:28:18 +0200 )edit

Seems so. After investigating microG's cloud messaging status for several days my feeling is that the "last message" time stamps of the apps show anything but the reality. It seems Android apps try to register FCM (maybe even successfully) but then they eventually fall back to polling when some errors occur. At least most apps get notifications despite microG showing no current status. So I would also really like to know if activating cloud messaging is worth at all... This is Andoid 4.4 in my case, Aliendalvik on Xperia X.

ziellos ( 2019-09-22 21:05:19 +0200 )edit

Vielen Dank ziellos für die Antwort. "Ziellos" scheinen auch die Notifications zu sein... You were "investigating microG's cloud messaging status for several days". How do you do this? Is there a log for microG? The mystery is, that sometimes notifictions are working, but most of the time they are not. Probably it is worth to describe this problem directly to the Jolla support... I'm a bit surprising that this topic is not more intensively discussed in this community... Best regards und viele Grüße, Uwe.

UweLabs ( 2019-09-23 16:17:36 +0200 )edit

I simply observed the "last message" timestamps from time to time. With some apps the timestamps seem to match more or less, while with others they don't. That means, all apps get notifications in my case, but they are not logged in microG. So I suppose these apps get their notifications by bypassing cloud messaging (polling).

If that is true, and most apps hold their own connection anyway, activating cloud messaging doesn't make much sense.

ziellos ( 2019-09-23 17:15:49 +0200 )edit

on my Xperia XA2 also FCM does not work at all. E.g. it does not work as well in Threema on my system. But as far as I know it works on some systems. I don't know the difference.

fridl ( 2019-09-24 19:27:43 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2019-12-23 21:58:02 +0200

tux-o-mat gravatar image

According to the this topic on github FCM is supported.

Now it works for me. I first tried to register the device manually, according to this comment. (I installed an Android dialer for this). I do not know if this step was necessary. In any case this alone did not help.

When I then went to microG Settings --> Add Google Account --> SIGN IN and pretended to add an account (adding one was not necessary), everything worked as it should and the apps could register again.

edit flag offensive delete publish link more

Comments

Which Dialer App do you use?

caesium ( 2019-12-24 13:41:08 +0200 )edit

Dialer2 via F-Droid and "Dialer, Telefon & Anrufsperre durch Simpler" from Simpler Apps Inc via Aurora Store.

tux-o-mat ( 2019-12-24 14:40:01 +0200 )edit
Login/Signup to Answer

Question tools

Follow
10 followers

Stats

Asked: 2019-09-18 18:51:33 +0200

Seen: 1,524 times

Last updated: Dec 23 '19