We are using and iOS version 17.4.1 and 17.5(beta) , and when are we facing the issue for local network permission in our app.
Success scenario steps:
- Don't allow the local network permission in our App
- Allow it manually in app setting for local network permission(works only in first install of the App)
- We are able to call the API successfully
Error scenario steps:
- Allow the local network permission popup to app when asked for permission
- Call the API successfully
- Uninstall the app and install the same app again and don't allow the local network permission
- API call fail's
- Manually change the local network permission to allow in app settings
- Still the API call fails even if we allow the local network permission
Conclusion : We are getting API error when re-install the app and if it is not allowed local network permission as well as when we allow the local network permission. Looks like caching issue.
Note: Even if uninstall and install multiple time and allow the local network permission from 2nd time onward API keeps on failing , but these scenario work perfectly fine on iOS 16 version and below. Even the existing app stopped working after updating iOS version to 17 and above.
Also we found alternatively when we uninstall the app and restart the device and install it back again it works fine for the first time as a fresh install.
Additionally : We are not calling local network permission explicitly, when the API call is happening this is native popup coming on iOS