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?