Ionic Deploy update works great on iOS simulator...but not on actual device :(

Hi everyone!

I’m loving the potential of Ionic Deploy! However I am having an issue with it.

I am able to successfully have my app update when I deploy new changes to production…but only when I run the app in the iOS simulator.

When I attempt to make an update on my phone, the logs show that the update is found in the system, is downloaded and extracted…but it does not reload to the latest update after the extraction on my physical device.

Any ideas on what that may be? I’d love to get this feature up and running!

I can attach the logs if someone believes that may help.

Thanks!

Logan

1 Like

Logs always help. Also the code you use to trigger the update…

Hi thanks for responding!

When I run this code:

var deploy = new Ionic.Deploy();
deploy.extract().then(function() {
deploy.load();
}, function(error) {
// called when an error occurs
}, function(deployExtractionProgress) {
// this is a progress callback, so it will be called a lot
// deployExtractionProgress will be an Integer representing the current
// completion percentage.
});

I get these logs:

2015-11-04 14:55:58.127 InternationalOrange[41886:2173441] Ionic Deploy: init
2015-11-04 14:55:58.128 InternationalOrange[41886:2176301] Versions: (
“3 | 569316d6833211e5adf256f6b04c3655”,
“4 | c02fecaa834511e5a6b556f6b04c3655”,
“5 | 6bb0cb3a834611e58b38aea466b63ca6”,
“6 | b4bcef9e834511e5983fe217c1c0ab4a”
)
2015-11-04 14:55:58.128 InternationalOrange[41886:2176301] version_uuid: 569316d6833211e5adf256f6b04c3655, uuid: 6bb0cb3a834611e58b38aea466b63ca6
2015-11-04 14:55:58.128 InternationalOrange[41886:2176301] version_uuid: c02fecaa834511e5a6b556f6b04c3655, uuid: 6bb0cb3a834611e58b38aea466b63ca6
2015-11-04 14:55:58.128 InternationalOrange[41886:2176301] version_uuid: 6bb0cb3a834611e58b38aea466b63ca6, uuid: 6bb0cb3a834611e58b38aea466b63ca6
2015-11-04 14:55:58.128 InternationalOrange[41886:2176301] updating version label
2015-11-04 14:55:58.131 InternationalOrange[41886:2173441] uuid is: 6bb0cb3a834611e58b38aea466b63ca6
2015-11-04 14:55:58.131 InternationalOrange[41886:2173441] ignore version: NOTHING_TO_IGNORE

What’s strange is when I run this on the iOS9 simulator everything works perfectly. However this doesn’t work on an actual device.

Any thoughts?

Thanks!

Logan

Is this log of a successful or a unsuccessful attempt?

First thing I would do is to add more logging, especially in the “progress” callbacks. By using that you can learn more what actually happens. Also output any errors in the error callbacks - that’s what they are for :wink:

Hi! Thanks for the help!!

I just realized I sent the wrong everything :frowning: !

So the code I’m running looks like this:

var deploy = new Ionic.Deploy();
deploy.update().then(function(deployResult) {
  // deployResult will be true when successfull and
  // false otherwise 
  if (deployResult == "true"){
  deploy.load();
  }
  
}, function(deployUpdateError) {
  // fired if we're unable to check for updates or if any 
  // errors have occured.
}, function(deployProgress) {
  // this is a progress callback, so it will be called a lot
  // deployProgress will be an Integer representing the current
  // completion percentage.
});

The logs I’m getting on both devices look like what’s below. What’s so strange is that the update reflects perfectly on the simulator but not at all on the actual iPhone.

Hope the following gives you some ideas:

iPhone:

2015-11-02 14:22:18.810 InternationalOrange[28042:1288168] Apache Cordova native platform version 3.8.0 is starting.

2015-11-02 14:22:18.811 InternationalOrange[28042:1288168] Multi-tasking -> Device: YES, App: YES

2015-11-02 14:22:18.820 InternationalOrange[28042:1288168] Unlimited access to network resources

2015-11-02 14:22:18.895 InternationalOrange[28042:1288168] Using a WKWebView
a
2015-11-02 14:22:19.047 InternationalOrange[28042:1288168] [CDVTimer][splashscreen] 31.572044ms

2015-11-02 14:22:19.067 InternationalOrange[28042:1288168] [CDVTimer][statusbar] 19.140005ms

2015-11-02 14:22:19.067 InternationalOrange[28042:1288168] [CDVTimer][keyboard] 0.218034ms

2015-11-02 14:22:19.068 InternationalOrange[28042:1288168] [CDVTimer][localnotification] 0.229001ms

2015-11-02 14:22:19.068 InternationalOrange[28042:1288168] [CDVTimer][localnotification] 0.009954ms

2015-11-02 14:22:19.069 InternationalOrange[28042:1288168] VERSION LABEL: 0.0.1:1446448749:82b5833681af11e5a40292f168bdde09

2015-11-02 14:22:19.069 InternationalOrange[28042:1288168] updating version label

2015-11-02 14:22:19.071 InternationalOrange[28042:1288168] [CDVTimer][ionicdeploy] 2.686977ms

2015-11-02 14:22:19.071 InternationalOrange[28042:1288168] [CDVTimer][TotalPluginStartup] 55.158973ms

[DEBUG] Did open IPv4 listening socket 6

[DEBUG] Did open IPv6 listening socket 7

[INFO] GCDWebServer started on port 12344 and reachable at http://localhost:12344/

2015-11-02 14:22:19.084 InternationalOrange[28042:1288168] Started http daemon: http://localhost:12344/ 

2015-11-02 14:22:21.076 InternationalOrange[28042:1288206] [DOM] registerDelegateCallbackId()

2015-11-02 14:22:21.076 InternationalOrange[28042:1288224] Registering delegate callback ID: LocationManager457377533

2015-11-02 14:22:21.108 InternationalOrange[28042:1288168] didChangeAuthorizationStatus

2015-11-02 14:22:21.109 InternationalOrange[28042:1288168] didChangeAuthorizationStatus: 3 => AuthorizationStatusAuthorized

2015-11-02 14:22:21.109 InternationalOrange[28042:1288168] Converted locationManager:didChangeAuthorizationStatus: into didChangeAuthorizationStatus

2015-11-02 14:22:21.111 InternationalOrange[28042:1288203] [DOM] _onDelegateCallback() null

2015-11-02 14:22:21.112 InternationalOrange[28042:1288168] Ionic Deploy: init

2015-11-02 14:22:21.113 InternationalOrange[28042:1288168] Yay!

2015-11-02 14:22:21.147 InternationalOrange[28042:1288168] Ionic Core: plugins are ready

2015-11-02 14:22:21.148 InternationalOrange[28042:1288168] THREAD WARNING: ['Console'] took '34.296143' ms. Plugin should use a background thread.

2015-11-02 14:22:21.166 InternationalOrange[28042:1288168] THREAD WARNING: ['UniversalAnalytics'] took '15.569336' ms. Plugin should use a background thread.

2015-11-02 14:22:21.170 InternationalOrange[28042:1288206] peripheralManagerDidUpdateState: PeripheralManagerStatePoweredOn

2015-11-02 14:22:21.171 InternationalOrange[28042:1288206] Converted peripheralManagerDidUpdateState: into peripheralManagerDidUpdateState

2015-11-02 14:22:21.170 InternationalOrange[28042:1288168] peripheralManagerDidUpdateState() state: PeripheralManagerStatePoweredOn

2015-11-02 14:22:21.174 InternationalOrange[28042:1288225] [DOM] _mapDelegateCallback() found eventType didChangeAuthorizationStatus

2015-11-02 14:22:21.175 InternationalOrange[28042:1288206] [DOM] _onDelegateCallback() {"status":"AuthorizationStatusAuthorized","eventType":"didChangeAuthorizationStatus"}

2015-11-02 14:22:21.176 InternationalOrange[28042:1288224] [DOM] DEFAULT didChangeAuthorizationStatus()

2015-11-02 14:22:21.180 InternationalOrange[28042:1288206] [DOM] _onDelegateCallback() {"state":"PeripheralManagerStatePoweredOn","eventType":"peripheralManagerDidUpdateState"}

2015-11-02 14:22:21.181 InternationalOrange[28042:1288206] [DOM] _mapDelegateCallback() found eventType peripheralManagerDidUpdateState

2015-11-02 14:22:21.181 InternationalOrange[28042:1288224] [DOM] DEFAULT peripheralManagerDidUpdateState()

2015-11-02 14:22:21.183 InternationalOrange[28042:1288168] isEnabled: false

2015-11-02 14:22:21.647 InternationalOrange[28042:1288203] version is: 0.0.1

2015-11-02 14:22:21.647 InternationalOrange[28042:1288203] uuid is: 

2015-11-02 14:22:21.647 InternationalOrange[28042:1288203] channel is: production

2015-11-02 14:22:21.647 InternationalOrange[28042:1288203] In Finally

2015-11-02 14:22:21.647 InternationalOrange[28042:1288203] JSON Error: (null)

2015-11-02 14:22:21.647 InternationalOrange[28042:1288203] Response: (null)

2015-11-02 14:22:21.647 InternationalOrange[28042:1288203] compatible: True

2015-11-02 14:22:21.647 InternationalOrange[28042:1288203] available: True

2015-11-02 14:22:21.647 InternationalOrange[28042:1288203] update uuid: 82b5833681af11e5a40292f168bdde09

2015-11-02 14:22:21.648 InternationalOrange[28042:1288203] update is false

2015-11-02 14:23:09.077 InternationalOrange[28042:1288168] Ionic Deploy: no updates available

2015-11-02 14:23:09.525 InternationalOrange[28042:1288168] Ionic Deploy: init

2015-11-02 14:23:09.536 InternationalOrange[28042:1288168] isEnabled: true

2015-11-02 14:23:09.536 InternationalOrange[28042:1288168] Bluetooth enabled

2015-11-02 14:23:09.850 InternationalOrange[28042:1288670] version is: 0.0.1

2015-11-02 14:23:09.851 InternationalOrange[28042:1288670] uuid is: 

2015-11-02 14:23:09.851 InternationalOrange[28042:1288670] channel is: production

2015-11-02 14:23:09.851 InternationalOrange[28042:1288670] In Finally

2015-11-02 14:23:09.851 InternationalOrange[28042:1288670] JSON Error: (null)

2015-11-02 14:23:09.851 InternationalOrange[28042:1288670] Response: (null)

2015-11-02 14:23:09.852 InternationalOrange[28042:1288670] compatible: True

2015-11-02 14:23:09.852 InternationalOrange[28042:1288670] available: True

2015-11-02 14:23:09.852 InternationalOrange[28042:1288670] update uuid: 82b5833681af11e5a40292f168bdde09

2015-11-02 14:23:09.852 InternationalOrange[28042:1288670] update is false

2015-11-02 14:23:09.856 InternationalOrange[28042:1288168] Ionic Deploy: no updates available

2015-11-02 14:24:55.188 InternationalOrange[28042:1288168] One!!

2015-11-02 14:24:55.340 InternationalOrange[28042:1288168] Ionic Deploy: init

2015-11-02 14:24:55.350 InternationalOrange[28042:1288168] isEnabled: true

2015-11-02 14:24:55.352 InternationalOrange[28042:1288168] Bluetooth enabled

2015-11-02 14:24:55.940 InternationalOrange[28042:1289348] version is: 0.0.1

2015-11-02 14:24:55.940 InternationalOrange[28042:1289348] uuid is: 

2015-11-02 14:24:55.940 InternationalOrange[28042:1289348] channel is: production

2015-11-02 14:24:55.941 InternationalOrange[28042:1289348] In Finally

2015-11-02 14:24:55.941 InternationalOrange[28042:1289348] JSON Error: (null)

2015-11-02 14:24:55.941 InternationalOrange[28042:1289348] Response: (null)

2015-11-02 14:24:55.941 InternationalOrange[28042:1289348] compatible: True

2015-11-02 14:24:55.942 InternationalOrange[28042:1289348] available: True

2015-11-02 14:24:55.942 InternationalOrange[28042:1289348] update uuid: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:24:55.949 InternationalOrange[28042:1289348] update is true

2015-11-02 14:24:55.953 InternationalOrange[28042:1288168] Ionic Deploy: an update is available

2015-11-02 14:24:55.957 InternationalOrange[28042:1289348] Upstream UUID: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:24:55.959 InternationalOrange[28042:1289348] Versions: (

    "7|9f8025ac81aa11e5a2e092f168bdde09",

    "8|cadc708c81ac11e5a6da92f168bdde09",

    "9|7ad8102c81ad11e599a49aa01da7ecef",

    "10|82b5833681af11e5a40292f168bdde09"

)

2015-11-02 14:24:55.959 InternationalOrange[28042:1289348] version_uuid: 9f8025ac81aa11e5a2e092f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:24:55.959 InternationalOrange[28042:1289348] version_uuid: cadc708c81ac11e5a6da92f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:24:55.960 InternationalOrange[28042:1289348] version_uuid: 7ad8102c81ad11e599a49aa01da7ecef, uuid: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:24:55.961 InternationalOrange[28042:1289348] version_uuid: 82b5833681af11e5a40292f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:24:55.961 InternationalOrange[28042:1289348] update is: {

    url = "https://ionic-apps.s3.amazonaws.com/noT1D-bdXEPZDspwlNizOwuK3umzkP1y7iUL4wx1YM0A8o3NJjH0qdWJ6NK486GTbAo5fzB-DXVl1dxSUfOzX8mQ.zip?Signature=QIZ9ZInagA375XYmpFYUQYbmogQ%3D&Expires=1446503215&AWSAccessKeyId=AKIAJNVFCZ37MVYOD34A";

    uuid = 814fd83881b011e5bb81ba2a83e8cee0;

}

2015-11-02 14:24:55.962 InternationalOrange[28042:1289348] download url is: https://ionic-apps.s3.amazonaws.com/noT1D-bdXEPZDspwlNizOwuK3umzkP1y7iUL4wx1YM0A8o3NJjH0qdWJ6NK486GTbAo5fzB-DXVl1dxSUfOzX8mQ.zip?Signature=QIZ9ZInagA375XYmpFYUQYbmogQ%3D&Expires=1446503215&AWSAccessKeyId=AKIAJNVFCZ37MVYOD34A

2015-11-02 14:24:55.964 InternationalOrange[28042:1289348] Queueing Download...

2015-11-02 14:24:56.684 InternationalOrange[28042:1288168] Download Progress: 0%

2015-11-02 14:25:02.626 InternationalOrange[28042:1288168] Download Progress: 100%

2015-11-02 14:25:02.730 InternationalOrange[28042:1288168] UUID is:  and upstream_uuid is: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:25:02.731 InternationalOrange[28042:1288168] Download Finished...

2015-11-02 14:25:02.941 InternationalOrange[28042:1288168] Ionic Deploy: download complete

2015-11-02 14:25:02.943 InternationalOrange[28042:1289375] Versions: (

    "7|9f8025ac81aa11e5a2e092f168bdde09",

    "8|cadc708c81ac11e5a6da92f168bdde09",

    "9|7ad8102c81ad11e599a49aa01da7ecef",

    "10|82b5833681af11e5a40292f168bdde09"

)

2015-11-02 14:25:02.943 InternationalOrange[28042:1289375] version_uuid: 9f8025ac81aa11e5a2e092f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:25:02.943 InternationalOrange[28042:1289375] version_uuid: cadc708c81ac11e5a6da92f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:25:02.943 InternationalOrange[28042:1289375] version_uuid: 7ad8102c81ad11e599a49aa01da7ecef, uuid: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:25:02.943 InternationalOrange[28042:1289375] version_uuid: 82b5833681af11e5a40292f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:25:02.943 InternationalOrange[28042:1289375] Path for zip file: /var/mobile/Containers/Data/Application/8B06690D-296D-4302-86A0-7DA49E56708C/Library/Application Support/www.zip

2015-11-02 14:25:02.944 InternationalOrange[28042:1289375] Unzipping...

2015-11-02 14:25:02.945 InternationalOrange[28042:1289375] Zip Extraction: 0%

2015-11-02 14:25:04.829 InternationalOrange[28042:1289375] Zip Extraction: 100%

2015-11-02 14:25:04.941 InternationalOrange[28042:1289375] Removed Version 9f8025ac81aa11e5a2e092f168bdde09 success? 1

2015-11-02 14:25:04.941 InternationalOrange[28042:1289375] Version Count: 4

2015-11-02 14:25:04.942 InternationalOrange[28042:1289375] Excluding /var/mobile/Containers/Data/Application/8B06690D-296D-4302-86A0-7DA49E56708C/Library/Application Support/814fd83881b011e5bb81ba2a83e8cee0 from backup

2015-11-02 14:25:04.943 InternationalOrange[28042:1289375] Unzipped...

2015-11-02 14:25:04.943 InternationalOrange[28042:1289375] Removing www.zip 1

2015-11-02 14:25:05.041 InternationalOrange[28042:1288168] uuid is: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:25:05.042 InternationalOrange[28042:1288168] ignore version: 82b5833681af11e5a40292f168bdde09

2015-11-02 14:25:05.042 InternationalOrange[28042:1289375] Redirecting to: file:/var/mobile/Containers/Data/Application/8B06690D-296D-4302-86A0-7DA49E56708C/Library/Application%20Support/814fd83881b011e5bb81ba2a83e8cee0/index.html?cordova_js_bootstrap_resource=/var/mobile/Containers/Bundle/Application/FFFC69A7-BFA8-4F06-998E-19A4773DBA3D/InternationalOrange.app/www/cordova.js

2015-11-02 14:25:35.131 InternationalOrange[28042:1288168] One!!

2015-11-02 14:25:35.328 InternationalOrange[28042:1288168] Ionic Deploy: init

2015-11-02 14:25:35.343 InternationalOrange[28042:1288168] isEnabled: true

2015-11-02 14:25:35.344 InternationalOrange[28042:1288168] Bluetooth enabled

2015-11-02 14:25:35.699 InternationalOrange[28042:1289611] version is: 0.0.1

2015-11-02 14:25:35.699 InternationalOrange[28042:1289611] uuid is: 814fd83881b011e5bb81ba2a83e8cee0

2015-11-02 14:25:35.699 InternationalOrange[28042:1289611] channel is: production

2015-11-02 14:25:35.700 InternationalOrange[28042:1289611] In Finally

2015-11-02 14:25:35.700 InternationalOrange[28042:1289611] JSON Error: (null)

2015-11-02 14:25:35.700 InternationalOrange[28042:1289611] Response: (null)

2015-11-02 14:25:35.700 InternationalOrange[28042:1289611] compatible: True

2015-11-02 14:25:35.700 InternationalOrange[28042:1289611] available: True

2015-11-02 14:25:35.700 InternationalOrange[28042:1289611] update is false

2015-11-02 14:25:35.702 InternationalOrange[28042:1288168] Ionic Deploy: no updates available

Simulator:

2015-11-02 14:29:33.011 InternationalOrange[41472:407561] Apache Cordova native platform version 3.8.0 is starting.
2015-11-02 14:29:33.011 InternationalOrange[41472:407561] Multi-tasking -> Device: YES, App: YES
2015-11-02 14:29:33.013 InternationalOrange[41472:407561] Unlimited access to network resources
2015-11-02 14:29:33.047 InternationalOrange[41472:407561] Using a WKWebView
2015-11-02 14:29:33.152 InternationalOrange[41472:407561] [CDVTimer][splashscreen] 22.709966ms
2015-11-02 14:29:33.157 InternationalOrange[41472:407561] [CDVTimer][statusbar] 5.074978ms
2015-11-02 14:29:33.157 InternationalOrange[41472:407561] [CDVTimer][keyboard] 0.111997ms
2015-11-02 14:29:33.158 InternationalOrange[41472:407561] [CDVTimer][localnotification] 0.095963ms
2015-11-02 14:29:33.158 InternationalOrange[41472:407561] [CDVTimer][localnotification] 0.005960ms
2015-11-02 14:29:33.159 InternationalOrange[41472:407561] VERSION LABEL: 0.0.1:1446448749:cadc708c81ac11e5a6da92f168bdde09
2015-11-02 14:29:33.159 InternationalOrange[41472:407561] updating version label
2015-11-02 14:29:33.160 InternationalOrange[41472:407561] [CDVTimer][ionicdeploy] 2.034962ms
2015-11-02 14:29:33.160 InternationalOrange[41472:407561] [CDVTimer][TotalPluginStartup] 31.180024ms
[DEBUG] Did open IPv4 listening socket 8
[DEBUG] Did open IPv6 listening socket 9
[INFO] GCDWebServer started on port 12344 and reachable at http://localhost:12344/
2015-11-02 14:29:33.166 InternationalOrange[41472:407561] Started http daemon: http://localhost:12344/ 
2015-11-02 14:29:33.760 InternationalOrange[41472:407749] [DOM] registerDelegateCallbackId()
2015-11-02 14:29:33.760 InternationalOrange[41472:407561] peripheralManagerDidUpdateState() state: PeripheralManagerStateUnsupported
2015-11-02 14:29:33.760 InternationalOrange[41472:407747] peripheralManagerDidUpdateState: PeripheralManagerStateUnsupported
2015-11-02 14:29:33.761 InternationalOrange[41472:407747] Converted peripheralManagerDidUpdateState: into peripheralManagerDidUpdateState
2015-11-02 14:29:33.761 InternationalOrange[41472:407749] Registering delegate callback ID: LocationManager1877225924
2015-11-02 14:29:33.761 InternationalOrange[41472:407747] Invalid callback id received by sendPluginResult
2015-11-02 14:29:33.763 InternationalOrange[41472:407561] didChangeAuthorizationStatus
2015-11-02 14:29:33.764 InternationalOrange[41472:407561] didChangeAuthorizationStatus: 3 => AuthorizationStatusAuthorized
2015-11-02 14:29:33.764 InternationalOrange[41472:407561] Converted locationManager:didChangeAuthorizationStatus: into didChangeAuthorizationStatus
2015-11-02 14:29:33.766 InternationalOrange[41472:407747] [DOM] _onDelegateCallback() null
2015-11-02 14:29:33.772 InternationalOrange[41472:407725] [DOM] _onDelegateCallback() {"eventType":"didChangeAuthorizationStatus","status":"AuthorizationStatusAuthorized"}
2015-11-02 14:29:33.772 InternationalOrange[41472:407747] [DOM] _mapDelegateCallback() found eventType didChangeAuthorizationStatus
2015-11-02 14:29:33.772 InternationalOrange[41472:407749] [DOM] DEFAULT didChangeAuthorizationStatus()
2015-11-02 14:29:33.782 InternationalOrange[41472:407561] Ionic Core: plugins are ready
2015-11-02 14:29:33.783 InternationalOrange[41472:407749] version is: 0.0.1
2015-11-02 14:29:33.783 InternationalOrange[41472:407749] uuid is: 
2015-11-02 14:29:33.784 InternationalOrange[41472:407749] channel is: production
2015-11-02 14:29:33.784 InternationalOrange[41472:407749] In Finally
2015-11-02 14:29:33.784 InternationalOrange[41472:407749] JSON Error: (null)
2015-11-02 14:29:33.784 InternationalOrange[41472:407749] Response: (null)
2015-11-02 14:29:33.784 InternationalOrange[41472:407749] unable to check for updates
2015-11-02 14:29:33.794 InternationalOrange[41472:407561] Ionic Deploy: no updates available
2015-11-02 14:29:33.796 InternationalOrange[41472:407561] isEnabled: false
2015-11-02 14:29:36.233 InternationalOrange[41472:407561] Yay!
2015-11-02 14:29:38.858 InternationalOrange[41472:407561] Ionic Deploy: init
2015-11-02 14:29:38.881 InternationalOrange[41472:407561] isEnabled: false
2015-11-02 14:29:39.673 InternationalOrange[41472:407747] version is: 0.0.1
2015-11-02 14:29:39.673 InternationalOrange[41472:407747] uuid is: 
2015-11-02 14:29:39.673 InternationalOrange[41472:407747] channel is: production
2015-11-02 14:29:39.674 InternationalOrange[41472:407747] In Finally
2015-11-02 14:29:39.674 InternationalOrange[41472:407747] JSON Error: (null)
2015-11-02 14:29:39.674 InternationalOrange[41472:407747] Response: (null)
2015-11-02 14:29:39.674 InternationalOrange[41472:407747] compatible: True
2015-11-02 14:29:39.675 InternationalOrange[41472:407747] available: True
2015-11-02 14:29:39.675 InternationalOrange[41472:407747] update uuid: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:39.676 InternationalOrange[41472:407747] update is true
2015-11-02 14:29:41.308 InternationalOrange[41472:407561] Ionic Deploy: an update is available
2015-11-02 14:29:41.310 InternationalOrange[41472:407746] Upstream UUID: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:41.310 InternationalOrange[41472:407746] Versions: (
    "3|a297e69881a611e5a3ae9aa01da7ecef",
    "4|9f8025ac81aa11e5a2e092f168bdde09",
    "5|7ddc599281ab11e5a40292f168bdde09",
    "6|cadc708c81ac11e5a6da92f168bdde09"
)
2015-11-02 14:29:41.310 InternationalOrange[41472:407746] version_uuid: a297e69881a611e5a3ae9aa01da7ecef, uuid: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:41.310 InternationalOrange[41472:407746] version_uuid: 9f8025ac81aa11e5a2e092f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:41.311 InternationalOrange[41472:407746] version_uuid: 7ddc599281ab11e5a40292f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:41.311 InternationalOrange[41472:407746] version_uuid: cadc708c81ac11e5a6da92f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:41.311 InternationalOrange[41472:407746] update is: {
    url = "https://ionic-apps.s3.amazonaws.com/noT1D-bdXEPZDspwlNizOwuK3umzkP1y7iUL4wx1YM0A8o3NJjH0qdWJ6NK486GTbAo5fzB-DXVl1dxSUfOzX8mQ.zip?Signature=s7rJJa20biHFaCVLX0Zztvilv2w%3D&Expires=1446503499&AWSAccessKeyId=AKIAJNVFCZ37MVYOD34A";
    uuid = 814fd83881b011e5bb81ba2a83e8cee0;
}
2015-11-02 14:29:41.311 InternationalOrange[41472:407746] download url is: https://ionic-apps.s3.amazonaws.com/noT1D-bdXEPZDspwlNizOwuK3umzkP1y7iUL4wx1YM0A8o3NJjH0qdWJ6NK486GTbAo5fzB-DXVl1dxSUfOzX8mQ.zip?Signature=s7rJJa20biHFaCVLX0Zztvilv2w%3D&Expires=1446503499&AWSAccessKeyId=AKIAJNVFCZ37MVYOD34A
2015-11-02 14:29:41.312 InternationalOrange[41472:407746] Queueing Download...
2015-11-02 14:29:41.810 InternationalOrange[41472:407561] Download Progress:0%
2015-11-02 14:29:44.193 InternationalOrange[41472:407561] Download Progress: 100%
2015-11-02 14:29:44.247 InternationalOrange[41472:407561] UUID is:  and upstream_uuid is: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:44.248 InternationalOrange[41472:407561] Download Finished...
2015-11-02 14:29:44.251 InternationalOrange[41472:407561] Ionic Deploy: download complete
2015-11-02 14:29:44.252 InternationalOrange[41472:407747] Versions: (
    "3|a297e69881a611e5a3ae9aa01da7ecef",
    "4|9f8025ac81aa11e5a2e092f168bdde09",
    "5|7ddc599281ab11e5a40292f168bdde09",
    "6|cadc708c81ac11e5a6da92f168bdde09"
)
2015-11-02 14:29:44.252 InternationalOrange[41472:407747] version_uuid: a297e69881a611e5a3ae9aa01da7ecef, uuid: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:44.252 InternationalOrange[41472:407747] version_uuid: 9f8025ac81aa11e5a2e092f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:44.252 InternationalOrange[41472:407747] version_uuid: 7ddc599281ab11e5a40292f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:44.252 InternationalOrange[41472:407747] version_uuid: cadc708c81ac11e5a6da92f168bdde09, uuid: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:44.252 InternationalOrange[41472:407747] Path for zip file: /Users/macuser/Library/Developer/CoreSimulator/Devices/24AD66B3-5E4E-4EB3-B412-3D897F40FA37/data/Containers/Data/Application/140CA414-6BD0-4A4E-87AB-7C8E8727F890/Library/Application Support/www.zip
2015-11-02 14:29:44.278 InternationalOrange[41472:407747] Unzipping...
2015-11-02 14:29:44.283 InternationalOrange[41472:407747] Zip Extraction: 0%
2015-11-02 14:29:44.911 InternationalOrange[41472:407747] Zip Extraction: 100%
2015-11-02 14:29:44.912 InternationalOrange[41472:407561] uuid is: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:44.912 InternationalOrange[41472:407561] ignore version: cadc708c81ac11e5a6da92f168bdde09
2015-11-02 14:29:44.967 InternationalOrange[41472:407747] Removed Version a297e69881a611e5a3ae9aa01da7ecef success? 1
2015-11-02 14:29:44.967 InternationalOrange[41472:407747] Version Count: 4
2015-11-02 14:29:44.968 InternationalOrange[41472:407747] Excluding /Users/macuser/Library/Developer/CoreSimulator/Devices/24AD66B3-5E4E-4EB3-B412-3D897F40FA37/data/Containers/Data/Application/140CA414-6BD0-4A4E-87AB-7C8E8727F890/Library/Application Support/814fd83881b011e5bb81ba2a83e8cee0 from backup
2015-11-02 14:29:44.969 InternationalOrange[41472:407747] Unzipped...
2015-11-02 14:29:44.969 InternationalOrange[41472:407747] Removing www.zip 1
2015-11-02 14:29:44.969 InternationalOrange[41472:407747] Redirecting to: file:/Users/macuser/Library/Developer/CoreSimulator/Devices/24AD66B3-5E4E-4EB3-B412-3D897F40FA37/data/Containers/Data/Application/140CA414-6BD0-4A4E-87AB-7C8E8727F890/Library/Application%20Support/814fd83881b011e5bb81ba2a83e8cee0/index.html?cordova_js_bootstrap_resource=/Users/macuser/Library/Developer/CoreSimulator/Devices/24AD66B3-5E4E-4EB3-B412-3D897F40FA37/data/Containers/Bundle/Application/6A6249DE-0538-4A7E-86D6-FA3357F244AB/InternationalOrange.app/www/cordova.js
2015-11-02 14:29:45.194 InternationalOrange[41472:407747] [DOM] registerDelegateCallbackId()
2015-11-02 14:29:45.194 InternationalOrange[41472:407746] Registering delegate callback ID: LocationManager1193680388
2015-11-02 14:29:45.197 InternationalOrange[41472:407746] [DOM] _onDelegateCallback() null
2015-11-02 14:29:45.206 InternationalOrange[41472:407561] Ionic Core: plugins are ready
2015-11-02 14:29:45.208 InternationalOrange[41472:407561] isEnabled: false
2015-11-02 14:29:45.411 InternationalOrange[41472:407746] version is: 0.0.1
2015-11-02 14:29:45.411 InternationalOrange[41472:407746] uuid is: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:45.412 InternationalOrange[41472:407746] channel is: production
2015-11-02 14:29:45.412 InternationalOrange[41472:407746] In Finally
2015-11-02 14:29:45.412 InternationalOrange[41472:407746] JSON Error: (null)
2015-11-02 14:29:45.412 InternationalOrange[41472:407746] Response: (null)
2015-11-02 14:29:45.412 InternationalOrange[41472:407746] compatible: True
2015-11-02 14:29:45.412 InternationalOrange[41472:407746] available: True
2015-11-02 14:29:45.413 InternationalOrange[41472:407746] update is false
2015-11-02 14:29:48.680 InternationalOrange[41472:407561] Ionic Deploy: no updates available
2015-11-02 14:29:48.702 InternationalOrange[41472:407561] Yay!
2015-11-02 14:29:51.307 InternationalOrange[41472:407561] Ionic Deploy: init
2015-11-02 14:29:51.331 InternationalOrange[41472:407561] isEnabled: false
2015-11-02 14:29:51.518 InternationalOrange[41472:407693] version is: 0.0.1
2015-11-02 14:29:51.518 InternationalOrange[41472:407693] uuid is: 814fd83881b011e5bb81ba2a83e8cee0
2015-11-02 14:29:51.518 InternationalOrange[41472:407693] channel is: production
2015-11-02 14:29:51.519 InternationalOrange[41472:407693] In Finally
2015-11-02 14:29:51.519 InternationalOrange[41472:407693] JSON Error: (null)
2015-11-02 14:29:51.519 InternationalOrange[41472:407693] Response: (null)
2015-11-02 14:29:51.519 InternationalOrange[41472:407693] compatible: True
2015-11-02 14:29:51.520 InternationalOrange[41472:407693] available: True
2015-11-02 14:29:51.520 InternationalOrange[41472:407693] update is false
2015-11-02 14:29:52.761 InternationalOrange[41472:407561] Ionic Deploy: no updates available

Thanks again for your help!

Logan

Best have a look at the current code examples again, the don’t match your code:

Maybe this already solves your problems…

Hi!

I was using the code I found here:

Is this still right?

Thanks!

But what’s so strange is that the code works perfectly…but for some reason only in the simulator. When the code loads on my phone, everything works in the log…the app just doesn’t refresh and show the update.