Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28091] LiveView: App running on iOS 14 device with live view enabled is failing

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2020-09-10T13:34:08.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.2.0
ComponentsLiveView
Labelsliveview
ReporterVijay Singh
AssigneeEwan Harris
Created2020-08-20T00:23:09.000+0000
Updated2020-09-10T13:34:08.000+0000

Description

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/.

Attachments

FileDateSize
IMG_8258764B3E6C-1.jpeg2020-08-20T00:24:06.000+00002230609

Comments

  1. Ewan Harris 2020-08-25

    [~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)
  2. Vijay Singh 2020-08-25

    [~eharris] Yes,
       waitsForConnectivity: true
       
    should work. LiveView is used by developers not by app users, I think documenting the behavior should be fine for prompt message.
  3. Ewan Harris 2020-08-27

    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
  4. Ewan Harris 2020-08-28

    titanium_mobile PR: https://github.com/appcelerator/titanium_mobile/pull/11976
  5. Satyam Sekhri 2020-08-31

    FR Passed. Waiting for Jenkins build
  6. Samir Mohammed 2020-09-10

    *Closing ticket*. Fix verified in SDK version 9.2.0.v20200908050955, and 9.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

JSON Source