element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
Apache License 2.0
3.32k stars 705 forks source link

Push Notifications Not Working After Changing Android Package Name #8902

Open nadeemkhan opened 1 week ago

nadeemkhan commented 1 week ago

Steps to reproduce

Changed Android package name from com.oldpackage.app to com.getsafenow.app. Updated Firebase configuration with a new google-services.json file. Configured Synapse to use Sygnal as the push gateway:

push: gateway: "http://127.0.0.1:5000/_matrix/push/v1/notify" Restarted Synapse and Sygnal services. Verified that Sygnal is correctly configured and running on port 5000.

Outcome

Push notifications are no longer received on the Android app after the package name change.

Your phone model

OnePlus 10R

Operating system version

Android 13

Application version and app store

Element v1.6.12

Homeserver

https://spydefense.org

Will you send logs?

Yes

Are you willing to provide a PR?

Yes

msulmanzig commented 2 days ago

hi am facing same issue. but i think it is due to the change of the Cloud Messaging API (Legacy). kindly connect me at whatsapp at (+923355219298) so we can try to understand this issue together and resolve it. and kindly send me your sygnal configurations also.

msulmanzig commented 2 days ago

@nadeemkhan check my ticket also https://github.com/element-hq/element-android/issues/8910

toshanmugaraj commented 1 day ago

You have to setup new FCM configuration with the updated package name