NativeScript / playground-feedback

Feedback for NativeScript Playground
Apache License 2.0
16 stars 1 forks source link

Safari not opening playground links properly #153

Open t3hmrman opened 5 years ago

t3hmrman commented 5 years ago

This ticket is to capture a discussion that happened on HN in which a new user ran into a problem following playground links -- I didn't personally run into this issue but figured I'd save some time and file one, hopefully HN user codetrotter (https://news.ycombinator.com/user?id=codetrotter) can fill in more details.

If I had to guess it looks like playground isn't registering the right URL schemes, for Safari at the very least.

Please, provide the details below:

Did you search for the problem in other open issues in this repo?

Yes

Tell us about the problem

Installed the Playground app. When I try to open any of the examples from https://market.nativescript.org/?tab=samples&framework=all_frameworks&category=all_samples, Safari says “Safari cannot open the page because the address is invalid”.

For example, https://play.nativescript.org/?template=play-js&id=h9CNcL&v=3542 tries to open nsplay://boot?pKey=pub-c-a303d41e-5c6b-4030-8151-c056278a7944&sKey=sub-c-2d2f1312-4f78-11e7-ab90-02ee2ddab7fe&template=play-js&sessionId=h9CNcL_3542

Running iOS 12.3.1 on an iPhone X.

Did you try it outside of {N} Playground?

Which browser are you using?

Are there any errors/warnings logged in your browser console?

Not sure

Which platform(s) does your issue occur on?

Are there any entries logged in the Device Logs tab?

Please provide the following information shown in the devices tab in the playground:

ctsrc commented 5 years ago

I am the HN user they posted on behalf of. Let me know if I can provide any additional info.

abbo2t commented 5 years ago

I am experiencing the exact same issue - any help would be appreciated!

vtrifonov commented 5 years ago

Do you have NativeScript Preview app installed on your phone? The preview app registers “nsplay” custom scheme. The Playground app is used as a QR scanner app to scan the code from the playground website(if opened not from a mobile device) or ‘tns preview’ command from the CLI.

abbo2t commented 5 years ago

I do have the NativeScript Preview app, yes. When I scan a QR code in Playground, it launches Preview but all I see is the Components list you would see if you launched the app directly from the home screen without a QR code.