How to I make a button link to a URLScheme for iOS?

Super new to this, so need some help. I want my button to have a link to an iOS URLScheme using the data in my URL Route, such as “myappscheme://dataInput?data” But when I try this, I get an error saying its not a supported link type? Here’s my router page code code:

const data = wixLocation.path;
const output2 = "bigscoreekeep://matchDataKey?" + data;

$w.onReady(function () {
    $w('#button1').link = output2;
});

The reason this is important is I’m passing a really long piece of data into my app through these URL schemes, so when you’d want to share your data with a friend the link would look like “bigscorekeep://matchDataKey?theData” except “theData” would be a ton of numbers and text which would then get decoded by the app when it’s opened through that link. But the problem with that is it’s super long and looks bad in texts. My solution was to instead of sending a huge URLScheme link like that, send a website link that includes all the data instead, because apps like iMessage will shorten it to not show the entire link to the user, opting to just show like “user.wixsite.com/” in the message. This solution seems to work well too, I can get all the data from a url route and everything. But when I go to set the link of a button back to my app, it says that the URL type isn’t supported? Specifically,

Wix code SDK error: The link property that is passed to the link method cannot be set to the value "bigscoreekeep://matchDataKey?" as this is not a supported link type.

How do I fix or bypass this?

wixlocation.path returns an array of strings.
Type the output2 value in the Browser bar to test first.

Oh well my iOS app will be generating the links to my site so it’s only ever expecting 1 string which is why it works, as in the link it generates is correct. The issue is that it generates a link to a URLScheme, which looks something like this:

bigscorekeep://matchDataKey?thenRightHereWouldBeThatDataFromTheURL.

But the problem with that is that Wix keeps saying it’s not a supported link type, presumably because it doesn’t start with https://. But I need to bypass this, since as far as I can tell it’s not even a normal requirement in JS and is just an artificial requirement done by Wix but it’s one that makes the site useless for what I need.

I used a Text Element, appending to the html element property. This is the Intent.
Take care with html because u need to close the element
Console a .html and insert the
in the middle using href to your link.

I have tried this using the text element and html as well, and it still complains. I am not using a device specific url scheme in my case, but simply trying to trigger a download of a “data:image/png;base64,datahere” URI that has been generated by the qrcode npm. Seems nearly impossible unfortunately.