GmsCore icon indicating copy to clipboard operation
GmsCore copied to clipboard

Force application to register to Google Cloud Messaging without having to reinstall the app

Open laurentlevi opened this issue 1 year ago • 10 comments

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.

laurentlevi avatar Dec 03 '24 14:12 laurentlevi

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).

ale5000-git avatar Dec 03 '24 15:12 ale5000-git

I have Huawei p40pro and pura70 ultra :( no root , no bootloader unlock

laurentlevi avatar Dec 03 '24 15:12 laurentlevi

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.

ale5000-git avatar Dec 03 '24 15:12 ale5000-git

resetting app data usually does the trick.

ildar avatar Dec 03 '24 16:12 ildar

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.

ale5000-git avatar Dec 03 '24 16:12 ale5000-git

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).

should i use Termux or what? i have the same problem and if it's not too much trouble for you, tell me more

sogood-ood avatar Dec 07 '24 07:12 sogood-ood

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

ale5000-git avatar Dec 07 '24 14:12 ale5000-git

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'
-delete

From 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: @.***>

laurentlevi avatar Dec 07 '24 16:12 laurentlevi

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.

ale5000-git avatar Dec 07 '24 22:12 ale5000-git

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).

It is better to have this in MicroG Wiki (e.g. FAQ). Thanks a lot!

Iey4iej3 avatar Dec 25 '24 19:12 Iey4iej3