noticing strange behaviour in safari recently.
I registers a url scheme for the my app, and enter myapp:// into safari.
this launches my app immediately.
than i go back to safari, and enter myapp:// into safari again,
this time it prompts me "Open this page in "myapp"?" Cancel or Open.
my app will launch if I tap on open, and subsequent attempts the same alert shows.
If i try tapping on cancel, my app will not launch. which is expected.
However, if i enter myapp:// into the url bar again, I'm prompted "Cannot Open Page" "Safari cannot open the page because the address is invalid."
this will fail in the same way for all subsequent attempts, until I kill safari and re-start it, or open another tab.
This is the same behaviour with youtube and evernote. my guess is that safari cached the url as an in-valid url when user taps on cancel. Is there official documentation on this behaviour?
observed in iOS 8.1.2 and iOS 6.1.3
Aucun commentaire:
Enregistrer un commentaire