-
Notifications
You must be signed in to change notification settings - Fork 13
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
Comments
Hmm, does FlickType work normally in my app “Notes for Apple Watch” on the same device? |
Hi Kosta!
Thank you for responding!
I think your FlickType module is really neat!
Sorry to bother you with these problems, but I appreciate it very much!
So yes, your notes app seems to work.
I have several issues, possibly all inter-related.
Here is the symptom flow in the device:
I tap a button to present the FlickType-modified input controller
That action presents the Apple view which includes the “Suggestions: FlickType Keyboard
If I tap the Flicktype, I get the query: Download FlickType or have it
I tap have it
I get the FlickType keyboard.
I type an ICAO 4 char string. Apple forces spelling suggestions not the desired string
I hit done, and I get the NSURL SESSION error, and on the device I get “URL Failed to load “ this URL can viewed on your iPhone.
Only option is to hit Dismiss which returns to FlickType keyboard, endlessly.
Oddly, if I choose Apple Scribble and enter a string, the input controller returns nil
Any thoughts about how to debug this ?
Best,
Ira
…Sent from my iPhone
On Oct 15, 2021, at 12:18 PM, Kosta Eleftheriou ***@***.***> wrote:
Hmm, does FlickType work normally in my app “Notes for Apple Watch” on the same device?
https://apps.apple.com/us/app/id1453148171
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
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 Hope this helps, let me know if you have any other questions! |
I fixed the scribble issue, It was a stupid completion handler bug on my part.
The rest remains the same.
… On Oct 15, 2021, at 5:05 PM, Ira Rampil ***@***.***> wrote:
Hi Kosta!
Thank you for responding!
I think your FlickType module is really neat!
Sorry to bother you with these problems, but I appreciate it very much!
So yes, your notes app seems to work.
I have several issues, possibly all inter-related.
Here is the symptom flow in the device:
I tap a button to present the FlickType-modified input controller
That action presents the Apple view which includes the “Suggestions: FlickType Keyboard
If I tap the Flicktype, I get the query: Download FlickType or have it
I tap have it
I get the FlickType keyboard.
I type an ICAO 4 char string. Apple forces spelling suggestions not the desired string
I hit done, and I get the NSURL SESSION error, and on the device I get “URL Failed to load “ this URL can viewed on your iPhone.
Only option is to hit Dismiss which returns to FlickType keyboard, endlessly.
Oddly, if I choose Apple Scribble and enter a string, the input controller returns nil
Any thoughts about how to debug this ?
Best,
Ira
Sent from my iPhone
> On Oct 15, 2021, at 12:18 PM, Kosta Eleftheriou ***@***.***> wrote:
>
>
>
> Hmm, does FlickType work normally in my app “Notes for Apple Watch” on the same device?
>
> https://apps.apple.com/us/app/id1453148171 <https://apps.apple.com/us/app/id1453148171>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADMHVBF6P6FCR7OPMYVSMN3UHBH6FANCNFSM5GCI6FDA>.
>
|
Interestingly, On Sim, when presented with the Download from Apple or Have it dialog,
and I choose Download I get a similar error but on an Apple URL
2021-10-15 17:34:06.482407-0400 LocalMetar WatchKit Extension[82837:1584608] [default] Failed to open URL https://apps.apple.com/us/app/flicktype-keyboard/id1359485719: Error Domain=NSPOSIXErrorDomain Code=45 "Operation not supported" UserInfo={_LSLine=519, _LSFunction=_LSOpenOperationPerform}
2021-10-15 17:34:06.482971-0400 LocalMetar WatchKit Extension[82837:1584608] [default] -[SPApplicationDelegate extensionConnection:openSystemURL:]_block_invoke:2157: Attempting to open url https://apps.apple.com/us/app/flicktype-keyboard/id1359485719 with scheme https failed: Error Domain=NSPOSIXErrorDomain Code=45 "Operation not supported" UserInfo={_LSLine=519, _LSFunction=_LSOpenOperationPerform}
On real watch
This doesn’t happen, instead, it goes to the store and I get to the store for Flicktype - Watch Keyboard (Open)
Tap Open and I get the watch keyboard but with a SEND at the top Right, not the expected DONE. It seems locked into Messenger.
In my entitlements in WatchKit Extension, my Associated Domains are:
Item 0: applinks:aviametrix.com
My domain is Aviametrix.com
Anyway, the apple-app-site-association file is
{
"applinks": {
"details": [
{
"appIDs": [ “CxxxxxxxxH.com.Aviametrix.LocalMetarW.watchkit.extension" ],
"components": [
{
"/": "/flicktype/*",
"comment": "Matches any URL whose path starts with /flicktype/"
}
]
}
]
}
}
… On Oct 15, 2021, at 5:21 PM, Kosta Eleftheriou ***@***.***> wrote:
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!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADMHVBH6DVVZYTRRGFZH5NDUHCLMJANCNFSM5GCI6FDA>.
|
Hi Kosta,
I apologize for continuing to bother you with this, but I think I have made some progress yet continue to have a problem.
First, I had a error in my appID in the Associated file it is now:
{
"applinks": {
"details": [
{
"appIDs": [ “C…...H.com.Aviametrix.LocalMetarW.watchkitapp.watchkitextension" ],
"components": [
{
"/": "/flicktype/*",
"comment": "Matches any URL whose path starts with /flicktype/"
}
]
}
]
}
}
The failed Session now points to your site:
2021-10-17 11:13:21.998158-0400 LocalMetar WatchKit Extension[334:16671] [default] Failed to open URL
https://flicktype.com/type/?token=656176401.928089&returnURL= <https://flicktype.com/type/?token=656176401.928089&returnURL=> https://www.aviametrix.com/flicktype/&startingText=:
Error Domain=NSPOSIXErrorDomain Code=45 "Operation not supported" UserInfo={_LSFunction=_LSOpenOperationPerform, _LSLine=519}
2021-10-17 11:13:21.999509-0400 LocalMetar WatchKit Extension[334:16671] [default] -[SPApplicationDelegate extensionConnection:openSystemURL:]_block_invoke:2157: Attempting to open url https://flicktype.com/type/?token=656176401.928089&returnURL=https://www.aviametrix.com/flicktype/&startingText= with scheme https failed: Error Domain=NSPOSIXErrorDomain Code=45 "Operation not supported" UserInfo={_LSFunction=_LSOpenOperationPerform, _LSLine=519}
When I manually open the URL: https://www.flicktype.com/type/?token=656176401.928089&returnURL=https://www.aviametrix.com/flicktype/ <https://www.flicktype.com/type/?token=656176401.928089&returnURL=https://www.aviametrix.com/flicktype/>
I get your web page with a 404
Any thoughts??
… On Oct 15, 2021, at 5:21 PM, Kosta Eleftheriou ***@***.***> wrote:
Ut 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!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADMHVBH6DVVZYTRRGFZH5NDUHCLMJANCNFSM5GCI6FDA>.
|
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
Let me know if you are still having issues. |
Hi Kosta!
Thanks for the reply!!
Yes, from my note today, that was all on the actual Series 5 watch.
I know the sim is limited in Comms, I have run into that limitation several times.
What I did to check the failed URL was used the Network debugger in Safari to see what became of the that URL.
When I open Flicktype from the Suggestions on the Watch,
I get the the choice dialog
If I choose download, it downloads Flicktype and Open takes it to Messenger
If I chose have it already, it goes straight to the Flicktype Keyboard, I enter a string, hit DONE, and it goes straight to
“URL Failed to Load” Alert with NO error message in the Xcode Debugger console.
Any Thoughts?
… On Oct 17, 2021, at 12:09 PM, Kosta Eleftheriou ***@***.***> wrote:
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:
your app switches to FlickType via the openURL/association I have configured on my side
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADMHVBBUA6LYVDEJV3M7APDUHLYLRANCNFSM5GCI6FDA>.
|
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
The text was updated successfully, but these errors were encountered: