dyne / slangroom

Enhance zencode smart contracts with your slang
https://dyne.org/slangroom/
GNU Affero General Public License v3.0
5 stars 1 forks source link

A new plugin to run things on mobile devices #186

Closed puria closed 1 month ago

puria commented 3 months ago

We need to run and open deep links inside mobile devices something like xdg-open.

I want to be able to open something like: credential-issuer://someaction?param1=true&param2=42 and its handled by the OS and should trigger an activity opening (both iOS and Android).

phoebus-84 commented 1 month ago

In a webview you can use the object window.location to trigger the os to opend the deep link, changing location.href. So I would suggest a plugin (or a statement in an existing plugin) that allow some operations on location object or window object. I think this can solve most of the use cases. If this is not enough we can open the url with the default browser and if it has a custom-scheme the OS automatically will propose the apps that handle it.

puria commented 1 month ago

YES! Please implement it! <3