Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14202] LiveView: Field service app doesn't work with LiveView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 3.1.1, Release 3.2.3
Fix Version/s2013 Sprint 16, 2013 Sprint 16 Tooling, Release 3.1.2, Release 3.2.0
ComponentsLiveView
Labelsqe-3.1.1, qe-testadded
ReporterAnshu Mittal
AssigneeUnknown
Created2013-06-13T11:43:52.000+0000
Updated2018-02-28T20:04:00.000+0000

Description

Field service app doesn't work with enabled liveview. Steps to reproduce: 1. Import the field service app to the project explorer. 2. Enable liveview and run the app on iOS simulator. 3. Click 'login' button. 4. An alert is dispalyed with the message,"Would you like to generate a demo user?" 5. Make changes in the code and change the alert message. Save the app. Expected: The changes should reflect in the simulator. Actual: An script Error is observed in console and the app hangs at login button. Error logs are as below: ERROR] : Script Error { [ERROR] : backtrace = "#0 loginClick() at :22"; [ERROR] : line = 10; [ERROR] : message = "'undefined' is not an object (evaluating 'Ti.UI.ActivityIndicatorStyle.DARK')"; [ERROR] : name = TypeError; [ERROR] : sourceId = 200756288; [ERROR] : }

Comments

  1. Olga Romero 2013-06-14

    I was able to reproduce the issue, using: Appcelerator Studio, build: 3.1.1.201306131423 Titanium SDK, build: 3.1.1.v20130613185544 com.appcelerator.titanium.liveview.core_1.0.0.1370907521/node_modules/liveview/hook iPad 6.1 simulator
       [ERROR] :  Script Error {
       [ERROR] :      backtrace = "#0 loginClick() at :22";
       [ERROR] :      line = 10;
       [ERROR] :      message = "'undefined' is not an object (evaluating 'Ti.UI.ActivityIndicatorStyle.DARK')";
       [ERROR] :      name = TypeError;
       [ERROR] :      sourceId = 376042464;
       [ERROR] :  }
       
  2. Michael Xia 2013-07-30

    Here is a trace I see when clicking on the Login button without entering a usernam/password:
       [LiveView] Client connected
       [INFO] :   [object ComAppceleratorApmModule] loaded
       [INFO] :   [object ComSoastaTouchtestModule] loaded
       [INFO] :   [LiveView] Error Evaluating /data/setup.js @ Line: 131
       [ERROR] :  TypeError: 'null' is not an object (evaluating 'Alloy.createWidget')
       [ERROR] :  File: /data/setup.js
       [ERROR] :  Line: 131
       [ERROR] :  SourceId: 342257024
       [ERROR] :  Backtrace:
       [ERROR] :   #0 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/27D57553-41DC-4C4C-8DAB-11A2F6869224/Ti.FieldService.app/app.js:627
       [ERROR] :  #1 () at file://localhost/Users/mxia/Library/Application%20Support/iPhone%20Simulator/6.0/Applications/27D57553-41DC-4C4C-8DAB-11A2F6869224/Ti.FieldService.app/app.js:492
       [ERROR] :  #2 () at :32
       [ERROR] :  Script Error {
       [ERROR] :      backtrace = "#0 () at :0";
       [ERROR] :      line = 33;
       [ERROR] :      message = "'undefined' is not a function (evaluating 'setup.loadData()')";
       [ERROR] :      name = TypeError;
       [ERROR] :      sourceId = 342255008;
       [ERROR] :  }
       
    The configuration is as followed: Appcelerator Studio, build: 3.1.2.201307261628 Titanium SDK 3.1.2.v2013072316031 LiveView 0.1.29 Alloy 1.2.0-alpha OSX 10.8.3 iPad Simulator 6.0
  3. Michael Xia 2013-08-02

    Marking this resolved now we fixed the Field Service app for references to Alloy global variables.
  4. Neha Mittal 2013-12-16

    Verified fix with environment: Appcelerator Studio: 3.2.0.201312151544 SDK: 3.2.0.v20131215211321 alloy: 1.3.0-cr acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr3 titanium-code-processor: 1.1.0-cr2 Mac OSX 10.9 Mavericks Changes are now reflected in simulator when launching Field service app with liveview enabled.
  5. Paras Mishra 2014-04-15

    Issue is reproducible using the following environment: Tested on: Device : Google Nexus 5, Android Version: 4.4.2 SDK: 3.2.3.v20140414150917 LiveView: 1.0.4 CLI version : 3.2.3-alpha3 OS : MAC OSX 10.9.2 Alloy: 1.3.1 ACS: 1.0.14 npm:1.3.2 Appcelerator Studio, build: 3.2.3.201404102002 titanium-code-processor: 1.1.1-alpha XCode : 5.1 Error occurs as [INFO] : [LiveView] Error Evaluating app.js @ Line: undefined [ERROR] : ReferenceError: parts is not defined [ERROR] : File: app.js [ERROR] : Line: undefined [ERROR] : SourceId: undefined [ERROR] : Backtrace: [ERROR] : undefined
  6. Unknown 2014-04-21

    This issue was previously scheduled to be worked on in more than one sprint: * 'Release 3.1.2' (on board '3.1.X Triage') * 'Release 3.0.1/TS 3.0.2' (on board '3.1.0 Triage') * 'iOS/Android' (on board '3.1.0 Planning') * 'Tooling' (on board '3.2.0 Planning') Starting from JIRA Agile 6.3, an issue can only belong to a single future sprint. Read more about this change: http://docs.atlassian.com/agile/docs-0630/Sprint+Marker+Migration This issue is now scheduled for future sprint 'Release 3.1.2' (on board '3.1.X Triage'). If this is incorrect, please update the issue accordingly. This comment was automatically generated by JIRA. If it is no longer relevant, please feel free to delete it.

JSON Source