daphtdazz / WebBLE

iOS WebBluetooth Polyfill
Other
110 stars 38 forks source link

Support App Clip #39

Open DanTheMan827 opened 3 years ago

DanTheMan827 commented 3 years ago

It would be really nice if there was a special URL that could be linked to that would open a web clip version of the app while navigating to the URL given

daphtdazz commented 3 years ago

Sorry, I'm not really sure what you mean. If you're talking about adding web clips to the home screen as described here, then I don't think that's going to be possible as it's not possible to specify a different browser to render those from Safari.

What you can do though is use the webble:// URI scheme to open a page in webble from Safari, so you could have a webpage with this in:

<a href="webble://mydomain.com/webble/path/">Open in WebBLE!</a>

And then clicking on that would cause WebBLE to open at that URL. Might that help?

Will close this shortly unless I hear back.

DanTheMan827 commented 3 years ago

I’m referring to the app clip feature that Apple added.

For example, you could have a special URL that someone could share that goes to a page hosted on your domain, in the app you could have it detect that url and jump into the app… that’s all pretty standard stuff and works fine if they already have the app

But with an App Clip banner on the page you could let someone open the app clip version of the app even if they don’t have it installed, iOS would grab the app clip version and open it directly to the URL as if it were the full app responding to a url assigned to it

These special URLs when shared would pop up the app clip directly upon being tapped asking the user if they want to use it

Here’s some information https://developer.apple.com/app-clips/

if a non-iOS browser went to the link you could have it redirect to the originally shared URL, or if a new version of iOS adds it you could do the same

daphtdazz commented 3 years ago

Ah, thanks that makes sense. Not sure when this might be done but it's on the list now!