3 ms·
Could they not have created a API browser vendors could implement, and the user can select in the settings app which implementation they want to use for running
by MichaelMug 3y ago
Could they not have created a API browser vendors could implement, and the user can select in the settings app which implementation they want to use for running PWA's? With the default implementation being whatever the user selected for their default browser?
For example Apple has `UIWebView` and `JavaScriptCore`. They could have abstracted the implementation so PWA's run in like a `UIHomeScreenWebAppView` which requires a protocol `IWebView` and `IJavaScriptEngine`.
Implementations could delegate OS integration tasks back to the operating system. For example notifications.
The technical approach and legwork is already done with React Native.
I can appreciate that Apple has put in a lot of thought into this but it seems like they are not following the spirit of the DMA laws. And I can understand why.
- kayodelycaon 3y agoThe issue is isolating each PWA from each other and giving permissions per site, for example, camera. Right now, a single instance of Safari is the only thing enforcing that. If you swapped Safari out for Chrome, that isolation is gone. If one PWA has camera access at the OS level, all of them have it.