4d / 4D-Mobile-App-Server

Open sourced component to install to 4d server as mobile app back end
Other
6 stars 7 forks source link

[android] Upgrade to v1 notification #22

Open e-marchand opened 2 weeks ago

e-marchand commented 2 weeks ago

we use legacy endrpoint "https://fcm.googleapis.com/fcm/send" https://github.com/4d/4D-Mobile-App-Server/blob/main/Project/Sources/Methods/android_sendNotification.4dm#L16

the instruction to upgrade are here https://firebase.google.com/docs/cloud-messaging/migrate-v1

TODO:

e-marchand commented 2 weeks ago

proposition

Si on défini

$pushNotification.auth.project:="your_prj_key"

alors on utilise le nouveau endpoint avec le bon bearer

e-marchand commented 2 weeks ago

doc https://github.com/4d/4D-Mobile-App-Server/blob/main/Documentation/Classes/PushNotification.md#project-key-android-only

e-marchand commented 2 weeks ago

Not tested

e-marchand commented 1 week ago

JSON data changed for this new API

must be tested