[TIMOB-16139] LiveView: Closing file/event servers after run mobile web
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-01-09T00:39:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | LiveView |
Labels | liveview, mobileweb |
Reporter | Hazem Khaled |
Assignee | Christian Sullivan |
Created | 2014-01-07T08:39:07.000+0000 |
Updated | 2017-03-20T16:47:56.000+0000 |
Description
*Description:*
I attempted to start an iOS simulator session with liveview then open mobile web, the LiveView serve stop and iOS application get error.
in mobileweb console log
[LiveView] Closing file/event server process id: 32238
in iOS console log
[LiveView] Client connected
[ERROR] : [LiveView] Disconnected from Event Server
[INFO] : [LiveView] Attempting reconnect to Event Server
[ERROR] : Script Error {
[ERROR] : backtrace = "#0 () at file:///Users/hazemkhaled/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/EF83504F-E610-4045-BD32-A78EEB00F02C/traapp.app/app.js:140\n#1 () at file:///Users/hazemkhaled/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/EF83504F-E610-4045-BD32-A78EEB00F02C/traapp.app/app.js:243";
[ERROR] : line = 465;
[ERROR] : message = "[LiveView] Event Server unavailable. Connection Refused @ 192.168.1.4:8324\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.";
[ERROR] : sourceId = 318261344;
[ERROR] : sourceURL = "file:///Users/hazemkhaled/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/EF83504F-E610-4045-BD32-A78EEB00F02C/traapp.app/app.js";
[ERROR] : }
[ERROR] : 2014-01-07 12:22:33.478 traapp[32333:80b] Warning: Attempt to present <TiErrorController: 0x11fb9810> on <TiRootViewController: 0xd429db0> whose view is not in the window hierarchy!
*Steps to reproduce:*
Create a new project with services enabled
Launch a liveview session in iOS simulator via Studio
Run on mobile web (safari)
*Result:* LiveView stopped and iOS give me application error Expected Result: The mobile web working without stop LiveViewAttachments
File | Date | Size |
---|---|---|
iOS Simulator Screen shot Jan 7, 2014, 12.21.10 PM.png | 2014-01-07T08:39:07.000+0000 | 123196 |
LiveView currently doesn't support Mobile Web app, so the fix here should be to not close the running LiveView server when launching Mobile Web app.
I would say this is invalid since liveview should stop running when the app is built with out the --liveview flag.
Christian, So you mean if i run this command ti build --platform=ios --liveview then run this one ti build --platform=mobileweb --liveview iOS liveview will not stop? unfortunately liveview stopped again
Thanks
Closing ticket as invalid.