Let the apps open links #174
Closed
taorepoara
started this conversation in
Polls
Replies: 2 comments 1 reply
-
We also could mix the solutions 2 and 3 to create a custom listener that could also be called from an app listener. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@taorepoara This can now be done using a lenra listener in the application. We could create a {
"type": "button",
"text": "Go to Google",
"onPressed": {
"action": "@lenra:link",
"props": {
"link": "google.com"
}
}
} This should be really easy to implement. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@lenra-io/all We shoud add the possibility to the apps to open URLs in a browser or a WebView, but we should secure it by asking the user if he want to continue.
I see many ways to handle it:
To let the user keep the control on it, we will ask him if he want to open the link or not (like Discord does) with many options (specific to the current app):
The first solution is the easiest one, but it adds a component just for that...
The second one let us manage this from more events, adds a behavior not managed yet. We should think first if it could be useful for something else.
The third one let the dev have more control on it (that could be good or not), but add problems (ex: if the user is connected from many devices, do we open it on every devices)
4 votes ·
Beta Was this translation helpful? Give feedback.
All reactions