Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL fetch error #9

Open
224XS opened this issue Oct 15, 2021 · 8 comments
Open

URL fetch error #9

224XS opened this issue Oct 15, 2021 · 8 comments

Comments

@224XS
Copy link

224XS commented Oct 15, 2021

Trying to incorporate FlickTypeKit into a new WatchOS 8 app.
Ive set up the Associated file infrastructure and WatchKit extension entitlement
On the Xcode Sim, I get:
LocalMetar WatchKit Extension[44255:420001] [default] Failed to open URL https://flicktype.com/type/?returnURL=https://myCompany.com/flicktype/&token=655910846.844237&startingText=: Error Domain=NSPOSIXErrorDomain Code=45 "Operation not supported" UserInfo={_LSLine=519, _LSFunction=_LSOpenOperationPerform}

Same happens on real device

@keleftheriou
Copy link
Member

Hmm, does FlickType work normally in my app “Notes for Apple Watch” on the same device?

https://apps.apple.com/us/app/id1453148171

@224XS
Copy link
Author

224XS commented Oct 15, 2021 via email

@keleftheriou
Copy link
Member

No worries, and thank you for the kind words!

It seems that you might have specified an incorrect (placeholder?) return URL. Make sure this is an actual URL, and that you follow all steps described in the README. If you share your actual URL with me, I can also check if the contents of your apple-app-site-association appear correct.

Hope this helps, let me know if you have any other questions!

@224XS
Copy link
Author

224XS commented Oct 15, 2021 via email

@224XS
Copy link
Author

224XS commented Oct 16, 2021 via email

@224XS
Copy link
Author

224XS commented Oct 17, 2021 via email

@keleftheriou
Copy link
Member

Hi Ira,

The simulator will always throw an error, since this type of app switching isn’t supported there for some reason. Please make sure to try this on a real device.

On the 404, this is expected as there’s no content there - the association is merely that, a way for Apple to associate a website with an app. Effectively, FlickTypeKit relies on both: your app being associated with your domain, and FlickType being associated with my domain - so that an openURL for either domain will open the corresponding app instead. When a user requests input from your app:

  1. your app switches to FlickType via the openURL/association I have configured on my side
  2. user types text inside FlickType and hits “Done”, which then switches back to your app via the openURL/association you configure on your side

Let me know if you are still having issues.

@224XS
Copy link
Author

224XS commented Oct 17, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants