MORE-Platform / more-app-multiplatform

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

Push notifications are not received randomly. #256

Closed alireza-dhp closed 4 months ago

alireza-dhp commented 4 months ago

Here is feedback from a participant:

Another participant informed me, that she randomly does not receive push-notifications. Unfortunately, I couldn't find out whether it was an issue of not receiving the push-notification, or whether the push notification was sent but disappeared when unlocking/using the phone.

She uses a Huawei P10 lite (Version 12.0.0)

Apart from checking the backend logs for sending push notifications, is there a way on the app side to ensure that the participants receive the push notifications?

Originally posted by @alireza-dhp in #251

The study config file is enclosed. study_config_8.json

alireza-dhp commented 4 months ago

Dear @andresgruber

To simulate the bug where notifications in the notification center (NC) are missed on both platforms, follow these steps:

It seems that all push notification messages are missed in the NC after a study is paused until the app is opened for the first time.

andresgruber commented 4 months ago

Hi @alireza-dhp - thank you, finally we can reproduce this case. We suggest to not deleting the notifications in case of a study update. This will solve this case. The only downside would be, a participant might have an notification in his tab which is not more functional e.g. because a corresponding target observation has been removed during pausing the study.

alireza-dhp commented 4 months ago

Hi @andresgruber,

I don’t think this would be a suitable workaround, as the previous action notifications could result in filling out an unrelated observation after updating a study.

andresgruber commented 4 months ago

Then this edge-case of loosing a notification cannot be solved, because the moment you open the app (not before) it gets the new study configuration and all notifications before this moment will be removed as you request.

alireza-dhp commented 4 months ago

Regarding our discussion at 4th sprint closing meeting, it would be acceptable to keep notifications when a study is updated, as previous action notifications with unrelated observations would no longer serve their function due to being unobservable for participants.