I want to send text messages in the app that are links to open other views inside the same app. Like a notification text message which has links to other views in app. So the best way to go about this is to insert the URL scheme myAppName://someQuery?blablabla=123
and that should in turn fire the openURL
command and open that specific view.
What is the best practice to hide the url scheme from the end user. It looks ugly and also don't want to create the possibility where end user can pass in values to the url scheme.
My options:
- Use a weblink, open safari, and then come back to the app. This takes time.
- Use html tags
<a href=myAppName://someQuery?blablabla=123">Test</a>
, but this takes a hit on performance as I need to keep assigning attributed text to the textView, and that is super slow, and buggy.
So far, the best option I have it 2. Just wondering if there are other good ideas out there...
Thanks for the help