Force application to register to Google Cloud Messaging without having to reinstall the app
Is your feature request related to a problem? Please describe.
After uninstalling / reinstalling microG all the existing app in the telephone does not reregister to GCN. therefore no more notifications. The only way I found to force the application to register is either deinstall/reinstall either clear data and reconfigure the app. the process of reinstalling and configuring 300 applications is very long and painfull .
Describe the solution you'd like Is there a way to force registration of existing application once microg is installed ? there is a toggle button "Confirm new apps", I was wondering if we could maybe add a button " register existing apps" and then you choose the app that is installed on the telephone ?
Additional context Add any other context or screenshots about the feature request here.
If you have root you can run this command:
find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -delete
It will delete the gms data from all apps causing them to re-register (other app data are left intact).
I have Huawei p40pro and pura70 ultra :( no root , no bootloader unlock
It is the app that request the registration to microG, not the opposite, so microG can't do anything. It is the app developer that must take care of this case.
resetting app data usually does the trick.
resetting app data usually does the trick.
We already know this works but you will also lost all the data of the app you reset.
If you have root you can run this command:
find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -deleteIt will delete the gms data from all apps causing them to re-register (other app data are left intact).
should i use Termux or what? i have the same problem and if it's not too much trouble for you, tell me more
should i use Termux or what? i have the same problem and if it's not too much trouble for you, tell me more
From the device you can also use Termux:
su
find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -delete
From the pc:
adb root
adb shell
find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -delete
Maybe we could add a button in the app that automate the reset process ?
Get BlueMail for Android
On Dec 7, 2024, 15:00, at 15:00, ale5000 @.***> wrote:
should i use Termux or what? i have the same problem and if it's not too much trouble for you, tell me more
From the device you can also use Termux:
su find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -deleteFrom the pc:
adb root adb shell find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -delete-- Reply to this email directly or view it on GitHub: https://github.com/microg/GmsCore/issues/2661#issuecomment-2525169484 You are receiving this because you authored the thread.
Message ID: @.***>
This thing require root, an app can't do it. It is unlikely that microG will be changed to use root just for this.
It would be better if the option was in the ROM itself since the same thing can be useful also for the real Google Play Services.
If you have root you can run this command:
find /data/data/*/shared_prefs -name 'com.google.android.gms.*.xml' -deleteIt will delete the gms data from all apps causing them to re-register (other app data are left intact).
It is better to have this in MicroG Wiki (e.g. FAQ). Thanks a lot!