MORE-Platform / more-app-multiplatform

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

Show an App-Indicator when having unread notifications in the Notification Center #251

Closed ja-fra closed 4 months ago

ja-fra commented 4 months ago

When the participant has unread messages in the notification-center, show an app-indicator on the app-icon (if possible, including the number of unread messages)

alireza-dhp commented 4 months ago

This ticket has been created regarding the following feedback from a participant of a running study (ACTIVE WAITING study):

Feedback from another participant concerning push notifications: push notifications “disappear” as soon as the mobile phone is unlocked, they are not visible anymore, therefore not reminding her to do the survey. The participant suggested whether it would be possible to have a reminder (eg every 15 Min, which could be set individually), or if the open task could be displayed in the icon of the MORE App (similar to unread messages in Signal/WhatsApp/SMS).

The OS version of the user is 17.4.1, using an IPhone 9.3. I attempted to replicate it as well, I encountered the same problem: I use an Iphone 8, iOS Version 16.7.7

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?

janoliver20 commented 4 months ago

The badge is now implemented in both Android and iOS and showing the amount of unread push notifications. Android shows a either a bubble or a badge with the notification count, depending on the launcher. Unfortunately a few Samsung devices, including our test devices, experience a certain bug that increment by one or two too much, if a notification is received while the app is open. If the app is opened and closed again, it will show the correct amount of notifications again in the badge.