-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
How to get push messages to work in work profile/shelter? #764
Comments
Testing app for push notifications also fails for me in the work profile. Device registration seems not possible at some point.
|
Yeah, BTW, also discovered you get exactly the same behaviour/failure if you setup a new user on Android and do everything there. (Likely, because Android's implements for both features is generalized.) |
Actually, discovered #660, which should be about the same issue. The user also mentions a workaround there… |
Youtube has a push notification issue too |
Did you copy microg over? |
It is automatically copied. |
This does already work on my device after setting up microG again in the work profile. I used Island to provision the work profile. This sound more like an installation or ROM specific issue. My setup is a Pixel 3, using the stock ROM + FakeGapps Xposed module, with microG (NanoDroid build) installed in priv-app. |
Correct me if I'm wrong but because microG Core Services is a system app, on Shelter there's no such option as uninstall from the work profile. I've checked it out and the only way would be to clone it again from the main profile. Though not sure if this action will make it work. |
You have the option to disable it, just like in the main profile @miquecg |
I can "freeze" microG (it's the same as disabling) but not uninstall it. You mean cloning over after freezing it? |
@miquecg I'm confused as to what you are trying to accomplish. You can fully disable the app or clear its data from the phone's Settings app. Just look for the app with the work profile (suitcase) icon in the installed apps section. On Android Pie, it is Settings > Apps & notifications > See all (number) apps > microg Services Core (with the suitcase icon) |
That's another way to do it hehe. On Shelter you can "freeze" apps and it's exactly the same as disabling AFAIK. I was meaning to freeze (disable) microG in Work profile. What should I do next? Clone microG from Main to Work profile? Is this going to work having already one clone (disabled) in the Work profile? I don't assume it's going to overwrite it. To me uninstall and disable are different things. Anyway, I should try your suggestion. Thanks! |
@miquecg you just need to Enable/Install microG in the work profile and set it up again as if it is a new phone. The data between the main profile and the work profile is completely separate, so you have to add your account a second time. The key to get all the features working is to turn on device registration and cloud messaging on before you sign into your Google account in the work profile -- this allows microG to do a check-in right at sign-in (bypassing issue #660). Push messages work fine in my work profile after setting it up in this order. |
With microG you actually do not need to sign-in to your Google account at all. That's actually a good thing, so the only setup is indeed enabling device registration etc. As I've already described, I've done all that, it still did not work… |
I don't use any Google account. That's an important difference between your setup and mine. In fact it could be the reason that it's working for you and not for us. |
I have the same problem as a few others seem to be. |
Please all of you try the new version released today to see if the problem still persist. |
The microG F-Droid repo only offers me 0.2.6.13280 (2018-09-27) as the latest version only… |
@rugk just refresh f-droid repos or download new apk here |
There is also the official download page: https://microg.org/download.html |
I uninstalled whole Shelter and set it up again, activated device registration in microG and cloned the push notification tester into the work profile. (AFAIK I don't need to sign-in to a Google account in microG for push notifications.) |
I've done the microG update. After that I've tried to get
Notification tester app still cannot register for push notifications. |
I found that you have to proc the registration... what I do (because I have to uninstall shelter every LineageOS4microG update), has been to:
|
I've found a fix that works for me (bullhead, Shelter, no Google account):
The important part is getting the user ID for the work profile, and then running the secret code broadcast as that user using the |
Hi @duxovni, I appreciate your help but this is not working for me. Maybe there's something slightly different between our setups. Let's try to find out. I've followed this sequence of steps:
But this didn't make any difference for the notifications tester app. Also miroG stills reflects device status as disconnected under GCM settings. |
Huh, interesting. Did you try enabling ADB root access in the phone's developer settings and running |
I don't find anything about 'adb root' on developer settings. There's something related on Security > Trust > Superuser access, that it's about applications on the phone, not adb connection. Trying adb root on shell results on this message: Possible explanation:
|
What ROM are you using? I'm using microG's version of Lineage OS. |
This is weird. I tried this exact approach a bit over two months ago and it didn't work. I thought I'd give it another go and now it works. FYI I'm using the last version of MicroG LOS for Samsung S9 before it became unsupported. I have however installed the latest MicroG from F-Droid (0.2.8.17785-mapbox). Maybe unrelated but installing the latest version of MicroG this way appears to have messed with Location Services :-( |
Finally my problem is solved although in a way I wasn't expecting... I've decided to give it another go but this time I've enabled 'device registration' option. After two tries nothing had changed so I've unchecked the option for 'device registration' and all of the sudden it changed GCM status to 'connected' and I could register apps with no problems. |
Is anyone still having an issue with this? Am willing to help. |
yes. microG under sheltern GCM's Current State : Disconnected. |
I've tried setting this up in shelter, but the GCM messaging not work. "push notification tester" cannot register for listening to push notifications. (When I enable the request to be manually approved, the usual question is not even shown.)
The logcat shows the push notification tester is trying "check token availability" again and again…
I am using https://lineage.microg.org/.
Is there any special setup I need?
Which apps, do I need to clone into the shelter? Do I need to also clone "Services Framework Proxy"?
More details/also reported at https://git.angry.im/PeterCxy/Shelter/issues/26 and bbindreiter/PushNotificationTester_App#7 (as the test app actually crashes.)
Also related to #747.
The text was updated successfully, but these errors were encountered: