Closed alireza-dhp closed 1 month 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:
On the Android platform, messages are received after granting permission.
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.