Hello,
I published an iOS (14.1+) app on the App Store. At present time it is free for download (see the link on my profile). It's mainly for people using public transportation.
I would like to create the companion watch app.
I am just starting to work on it but the code is already done, I just have to put it together.
The main issue seems to be that the WKWebView functionality the iOS app has to display a special list, is not available WatchOS, so the watch app cannot be created.
Is that true, or just I did not understand?
XCode is complaining about the WebKit not being available when building for the WatchOS simulator.
I could use a normal list but the user experience would be different.
I cannot find relevant information anywhere.
I am developing with SwiftUI and I used the WKWebView inside a UIViewRepresentable on iOS.
Please can anyone tell me something on this subject?
Thanks in advance
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello,
I would like to have some fringe information about ioS Safari App extensions.
My need is passing some HTML to the iOS Safari browser so a new tab or window is opened and the HTML rendered (and its Javascript executed, if any).
Being that this is not possible directly, and said that I need that the HTML is handled by Safari and not by a WKWebView or by a SFSafariViewController inside my app,
I thought about using an app extension.
This seems to be cumbersome, especially for the reaasons described here:
https://www.wildfire-corp.com/blog/to-apple-your-new-mobile-safari-extensions-are-great-can-opting-in-be-made-easier
I do not know if something has changed or will change, I did not dive in the extension development yet.
My idea is creating an extension with access to only a special domain, like html.myapp
The url would be https://html.myapp/37h238rd83dt2d2tr8fai33cf
When my app wants to open an url like that, Safari should open a window and start the extension, right?
open(url,options:options,completionHandler:handler)
The url contains a sort of query parameter that is a long string (bas64?) representing the entire HTML code, or a sort of unique ID.
The script has to display the HTML after extracting it from the url, or read some shared data between the app and the extension based on the ID.
After this point no other interaction is needed between the app and the app extension.
I would like to know if the Safari browser in fact can open the new window just on behalf of a special url like the above mentioned one, that is,
an url that does not point to a real web page, being that the domain is somehow "fake", although authorised from the Info.plist file.
The domain is just for enabling Safari to receive the entire url with HTML string or the unique ID.
So would the iOS Safari browser open the window, start the script and then display the HTML?
And would all this be allowed by the submission review process?
Thanks in advance,
Regards
PS
I know that it was better that Apple allows to pass securely some HTML from a registered iOS app to Safari, instead of this workaround, even with special info.plist keys, certificates or something like that.
I found this link
https://forums.developer.apple.com/community/distribution/testflight
In another thread about finding TestFlight codes.
The link above is not going to help me to find that forum, it does not exist.
I am looking for some eager people to preview my app.
I can invite a certain number of people to test or just preview my app (please have a look at https://app.airport.community/app/recvJ7w97YTBKvv64 to contact me)
Otherwise, where is the TestFlight forum?
Regards
Hello,
I need to understand if this is feasible.
I need to open a local HTML file placed in the temporary folder of an iOS Swift app in Safari, from the app itself.
At present time I know it is possible to open an Url in Safari, but I am asking about
1- using the file:/// scheme (like Android does)
2- providing directly the HTML text
I have this specific need not to use the WKWebView because I want that the user can exploit features like saving credentials, caching and so on.
I do not know if the WKWebView is able to provide this kind of features, and I do not want to have this kind of features directly in my app for security concerns.
Also other workarounds or solutions are welcome.
Thanks in advance
Hello,
I am studying a possible scenario.
Let's say I create an App Clip that features a WKWebView.
The WKWebView hosts a sort of webapp that uses local storage and IndexDB.
When the complete app is installed, are the data persisted so the WKWebView of the complete app finds them as it was reading them before?
Are the data transferred by the operating system to a new location but still accessed the same way by the WKWebView (Or even the location is the same because it is the WKWebView special storage)? Or are they wiped out?
Thank you in advance
Best regards