Post

Replies

Boosts

Views

Activity

Detecting the new iOS 14 Local Network Access permissions
Is there any new API for the new Local Network Access permissions? I have an app that uses the local network so users can configure their internet router. Currently when the local network permission appears, it throws a NSURLErrorNotConnectedToInternet The internet connection appears to be offline. which is no help at all. The same happens if the user disables the Local Network Privacy, future requests throw the NSURLErrorNotConnectedToInternet error. NSURLErrorNotConnectedToInternet can obviously be thrown in other situations, so this doesn't help us prompt the user to the issue and I can already foresee many support requests around this. I have submitted bug report FB8448776 Additionally, there seems to be a bug were the local network permissions do not appear in the apps own settings page. Bug report FB8448959
2
0
3.6k
Aug ’20
Safari redirect to base64 encoded html fails on iOS 14
For years i've been able to redirect a webpage to some html content that is hardcoded in base64, either using the mete refresh tag like this: <html> <head> <meta http-equiv="refresh" content="0;url=data:text/html;base64,PCFET0NUWVBFIEhUTUw+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPHRpdGxlPldlPC90aXRsZT4KICAgICAgICA8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD1VVEYtOCIgLz4KICAgIDwvaGVhZD4KICAgIDxib2R5PgogICAgICAgIFRFU1QKICAgICAgICAKICAgIDwvYm9keT4KPC9odG1sPgo="> </head> or using javascript like this: <html> <head> </head> <body> <script> window.location.href = 'data:text/html;base64,PCFET0NUWVBFIEhUTUw+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPHRpdGxlPldlPC90aXRsZT4KICAgICAgICA8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD1VVEYtOCIgLz4KICAgIDwvaGVhZD4KICAgIDxib2R5PgogICAgICAgIFRFU1QKICAgICAgICAKICAgIDwvYm9keT4KPC9odG1sPgo='; </script> </body> The redirect no longer seems to work on iOS 14. I'm hoping this hasn't been changed by design, but I don't think it has as the page renders just fine if I paste the string into the URL bar: data:text/html;base64,PCFET0NUWVBFIEhUTUw+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPHRpdGxlPldlPC90aXRsZT4KICAgICAgICA8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD1VVEYtOCIgLz4KICAgIDwvaGVhZD4KICAgIDxib2R5PgogICAgICAgIFRFU1QKICAgICAgICAKICAgIDwvYm9keT4KPC9odG1sPgo= I have a live app on the App Store that's been running for 7 years that relies heavily on this. Does anyone know of another way to redirect to a base64 encoded webpage?
8
0
6.4k
Jun ’20