MORE-Platform / more-app-multiplatform

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

Participant on iOS Platform Not Receiving Push Notifications #250

Closed alireza-dhp closed 1 month ago

alireza-dhp commented 2 months ago

A participant in a running study who is not receiving push message notifications on the iOS platform. Despite the participant granting the necessary permission for push notifications on her device, it appears that notifications are not being received. Upon investigation, it was observed that there is no corresponding record in the "push_notifications_token" table for this participant. Consequently, it seems that notifications are not being sent when there is no record present. PushNotificationService.java: https://github.com/MORE-Platform/more-studymanager-backend/blob/redlink-staging/studymanager/src/main/java/io/redlink/more/studymanager/service/PushNotificationService.java#L43

The participant has already completed 5 days of the study, and it is crucial to ensure that she receives notifications for the remaining days to maintain study integrity and participant engagement. I kindly request insights and assistance in addressing this issue promptly to ensure that the participant receives the necessary notifications for the remaining days of the study.

alireza-dhp commented 2 months ago

Dear @andresgruber,

I've reproduced this issue on the iOS platform when denying push message notification permission on the login page, then later accepting it on the settings page.

Steps to reproduce:

  1. Install the app from the Apple Store (version 3.0.13).
  2. Enter a participant token from any random study that sends push message notifications.
  3. Tap on the "Don't Allow" button when asked for push notification permission.
  4. Go to settings and grant the necessary permission for push notifications.
  5. No messages are received.

On the Android platform, messages are received after granting permission.