Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19233] Android: liveview throws error related to cloudPush when changes are made to an android pushnotification app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.4.2
Fix Version/sn/a
ComponentsAndroid, LiveView
Labelsqe-3.5.0
ReporterVisalakshi Chidambaram
AssigneeUnknown
Created2015-01-07T10:41:26.000+0000
Updated2018-02-28T19:54:53.000+0000

Description

This is not a regression as it can be reproduced with titanium sdk 3.4.1 When an android pushnotification app is run with live view, errors indicating that cloudpush module information cannot be found are thrown on the console when the app tries to re-launch with the changes made.However, when the app is run again on the device, it installs and launches successfully with the new changes made. Steps to reproduce: 1. Run the attached app.js (include cloudpush module in tiapp.xml)with Liveview enabled on to a device 2. Make changes in app.js eg: remove one of the commented lines on line 49 or 54 and save 3. Run the app again by clicking 'Run As' and select the device again Actual results: 1. App is launched on device with a button "Register for push notification" o`n the center. 2. the following error is produced in the console and device displays the splashscreen
[ERROR] :  Error: APSCloudPush has not been enabled. Call APSCloud.enable(context, key) to enable.
[ERROR] :  File: app.js
[ERROR] :  Line: undefined
[ERROR] :  SourceId: undefined
[ERROR] :  Backtrace:
[ERROR] :  undefined
[ERROR] :  TiHttpClient: (TiHttpClient-7) [5,125] HTTP Error (org.apache.http.client.HttpResponseException): Not Found
[ERROR] :  TiHttpClient: org.apache.http.client.HttpResponseException: Not Found
[ERROR] :  TiHttpClient: 	at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:275)
[ERROR] :  TiHttpClient: 	at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:219)
[ERROR] :  TiHttpClient: 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:669)
[ERROR] :  TiHttpClient: 	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:649)
[ERROR] :  TiHttpClient: 	at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1334)
[ERROR] :  TiHttpClient: 	at java.lang.Thread.run(Thread.java:841)
3. The app launches successfully. Expected Results: 2. The app should be re-launched with the new changes.

Attachments

FileDateSize
app.js2015-01-07T10:41:26.000+00002128

Comments

  1. Praveen Innamuri 2015-06-04

    This is similar to something you are already working.
  2. Sebastian Klaus 2015-06-23

    iOS shows the same error
       [INFO] :   [LiveView] Error Evaluating app @ Line: 39
       [ERROR] :  SyntaxError: Unexpected identifier 'http'. Expected ';' after var declaration.
       [ERROR] :  File: app
       [ERROR] :  Line: 39
       [ERROR] :  SourceId: <null>
       [ERROR] :  Backtrace:
       [ERROR] :   undefined
       

JSON Source