MORE-Platform / more-app-multiplatform

The mobile application for the MORE platform.
https://more-health.at
Other
6 stars 1 forks source link

Notification Issue after change the Study Endpoint! #190

Closed alireza-dhp closed 12 months ago

alireza-dhp commented 1 year ago

When attempting to compile and run the "MORE" app on my local machine using Android Studio Giraffe | 2022.3.1 Patch 1, I encountered an issue related to push notifications. The problem arises when I configure the study endpoint to use our instance at "https://data.more-health.at/api/v1."

To test whether the issue is specific to the endpoint, I changed the endpoint configuration to "https://data.platform-test.more.redlink.io/api/v1."

When using the "https://data.platform-test.more.redlink.io/api/v1" endpoint, the push notifications function correctly, and I receive them as expected!

I expected the push notification messages to work correctly when the app is configured with the "https://data.more-health.at/api/v1" endpoint as well.

alireza-dhp commented 12 months ago

To solve this, Firebase JSON Key Setup needs to be palced on the docker compose file on the production server. Detailed documentation can be found here: https://github.com/MORE-Platform/more-deployment-docker/tree/dhp-addons#firebase-json-key-setup