MORE-Platform / more-app-multiplatform

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

Make notifications messages support clickable urls #208

Closed smeddinck closed 4 months ago

smeddinck commented 9 months ago

e.g. with media or app links both in the notification area of the phone os (if possibly) and in the MORE app (certainly)

andresgruber commented 5 months ago

@smeddinck, @alireza-dhp : the proposed feature is not yet specified in a way that one can start implementing it. The following questions may help you to refine the feature:

alireza-dhp commented 5 months ago

Dear @andresgruber,

We suggest enabling clickable URLs in the Notification tab for improved functionality. Upon tapping a push notification,please ensure that it directs users to the Notification tab instead of the Dashboard tab.

  • Will such a message contain title, body and (new) a link as a separate field in the API and in the study manager or would it be sufficient to use the body field and let the app grasp, whether its an uri to deal with? (This would be the most simple approach).

The simplest approach would suffice for now.

  • What validation of the links are requested? Just the protocols http: and app: ?

Validating http(s) links would be sufficient, and the implementation of opening an app (Deep links) may be explored for future development.

  • Is this notification separate from the simple push notification and the action notification, is it a third type of notification?

It's simply an enhancement to the existing simple push notification, providing a clickable URL in the body text.

  • Do you expect a data point for further evaluation, whether a participant has clicked on the notification?

At this stage, participant interaction data isn't necessary.

andresgruber commented 5 months ago

Requirements and Decision (2024/04/10): Simple push notification should open the notification in the notification tab, then the link should active and clickable (http(s) links) only.

ja-fra commented 4 months ago

Enhancing the notification messages shows to be tricky on iOS <15.

After discussing with @janoliver20 we suggest the following approach:

alireza-dhp commented 4 months ago

For iOS <=14, is it possible to copy a portion of the plain text (copy the link)?