So, I'm at a conference, and we ran through a talk on NativeScript. Thought it was super-nifty, and I really enjoyed it. I am not/have not been into mobile dev before.
I found an interesting bug, however. We worked on an app that pulled data from the SpaceX API. The individual view has links to the rocket launches that you can tap on to open them in-browser. Unfortunately, that does not work on my iPhone 5C. The presenter scanned my QR code, and was able to click the links just fine. Anyone seen this before/know a workaround?
Here's the offending code:
HTML:
<Label text="{{ 'Video: ' + launch.links.video_link }}" class="body m-l-20 m-r-20 m-t-20" textWrap="true" (tap)="onLinkTap(launch.links.video_link)">
</Label>
JS:
onLinkTap(link: string): void {
utils.openUrl(link);
}
By default, on iOS, we would need to set
CFBundleURLTypesininfo.plistand provideapplicationHnadleOpenUrldelegate method.And sample implementation of the delegate method
More about the above code here. There is also this community plugin that handles the delegate method for your