Steps to reproduce -
1. Create a new app.
2. Run it on iOS 14 device (not simulator) with live view enabled (appc run -p iOS -T device --liveview)
3. It will show a prompt to ask user's permission and fail (screenshot attached).
What to fix -
1. Make change to show more contextual message instead of default generic message in prompt.
2. While waiting for user's permission, request get immediately failed. Make changes so that request can wait until user's permission is available.
Reason -
In iOS 14, Apple has made changes to access local network. It shows a prompt to ask user's permission. More detail can be found in WWDC video
https://developer.apple.com/videos/play/wwdc2020/10110/.
[~vijaysingh], I'm planning to update my macbook to catalina tonight so I can try tackle this later this week, do you have an indication of what the changes here might be? Based off my understanding of the linked ticket it could be as simple as adding
waitsForConnectivity: true
to the HTTP request in liveview? Then potentially try to figure out if liveview can somehow stuff in the plist entry to add context as to why it's needed? (not feeling hopeful about that)[~eharris] Yes,
should work. LiveView is used by developers not by app users, I think documenting the behavior should be fine for prompt message.
PR to get liveview working: https://github.com/appcelerator/liveview/pull/185 We could probably improve the flow of when there's a connection error but I think it's best to get a working liveview in asap
titanium_mobile PR: https://github.com/appcelerator/titanium_mobile/pull/11976
FR Passed. Waiting for Jenkins build
*Closing ticket*. Fix verified in SDK version
9.2.0.v20200908050955
, and9.3.0.v20200908051946
. *Test and other information can be found at:* https://github.com/appcelerator/liveview/pull/185 https://github.com/appcelerator/titanium_mobile/pull/11976