Hot Code Push not working

Hello,

I am trying to get Hot Code push for iOS up and running.
I have builded my app the following way:

METEOR_CORDOVA_COMPAT_VERSION_IOS=version_4_2_9 meteor build ../ --server https://domain.de:443

Then I uploaded the .tar.gz to the Server and installed everything.

I uploaded my App to TestFlight and everything was working.
So I changed the design of one button and testest it locally to verify the design changed.

Afterwards I builded it and uploaded it, the following way: METEOR_CORDOVA_COMPAT_VERSION_IOS=version_4_2_9 meteor build ../ --server https://domain.de:443

It updated the Button on the web but not for Cordova.

My Cordova Plugins:
cordova-custom-config@2.0.3
cordova-plugin-device@1.1.6
cordova-plugin-splashscreen@4.1.0
cordova-plugin-statusbar@2.4.2
cordova-plugin-wkwebview-engine@1.1.3
phonegap-plugin-push@1.5.2

Meteor Version:
1.7.0.3

Building and Programming:
Mac OS X - High Sierra

I hope I added all relevant information.

Thanks for your Help.
Fabian

Any luck? What version of xcode are you using? Do you find that it has hot code push during development?

Hello Thanks for your Answer,

I’m using the current version of xCode. I have build the app for production directly because otherwise push notification aren’t working.

Any ideas how to debug that issue?

Hello, you can see logs from Meteor about HCP in the XCode console.

Can you paste the logs here?

They are like

And why do you need this env var METEOR_CORDOVA_COMPAT_VERSION_IOS?

ok. thanks. I will give that a try.

I thought I need the METEOR_CORDOVA_COMPAT_VERSION_IOS String if I rebuild my server package that the older iOS App is still compatible.
I have tried it without and still it doesn’t work.

UPDATE:

2018-08-09 15:28:48.670542+0200 ChurchCloud[27100:3056330] Apache Cordova native platform version 4.5.3 is starting.
2018-08-09 15:28:48.671063+0200 ChurchCloud[27100:3056330] Multi-tasking -> Device: YES, App: YES
2018-08-09 15:28:48.675740+0200 ChurchCloud[27100:3056330] 

Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/documentation/data-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file
2018-08-09 15:28:48.816250+0200 ChurchCloud[27100:3056330] CDVWKWebViewEngine will reload WKWebView if required on resume
2018-08-09 15:28:48.816386+0200 ChurchCloud[27100:3056330] Using WKWebView
2018-08-09 15:28:48.816869+0200 ChurchCloud[27100:3056330] [CDVTimer][console] 0.064969ms
2018-08-09 15:28:48.817087+0200 ChurchCloud[27100:3056330] [CDVTimer][handleopenurl] 0.067949ms
2018-08-09 15:28:48.818749+0200 ChurchCloud[27100:3056330] [CDVTimer][intentandnavigationfilter] 1.552939ms
2018-08-09 15:28:48.818914+0200 ChurchCloud[27100:3056330] [CDVTimer][gesturehandler] 0.048041ms
2018-08-09 15:28:48.857587+0200 ChurchCloud[27100:3056330] Serving asset bundle version: 7381dad62f25edea82019993b4535a8b17fb09d1
[INFO] GCDWebServer started on port 12400 and reachable at http://localhost:12400/
2018-08-09 15:28:48.861767+0200 ChurchCloud[27100:3056330] [CDVTimer][webapplocalserver] 42.751908ms
2018-08-09 15:28:48.868647+0200 ChurchCloud[27100:3056330] [CDVTimer][statusbar] 6.744981ms
2018-08-09 15:28:48.889224+0200 ChurchCloud[27100:3056330] WARNING: The splashscreen image named LaunchStoryboard was not found
2018-08-09 15:28:48.889372+0200 ChurchCloud[27100:3056330] [CDVTimer][splashscreen] 20.612001ms
2018-08-09 15:28:48.889511+0200 ChurchCloud[27100:3056330] [CDVTimer][TotalPluginStartup] 72.759986ms
2018-08-09 15:28:48.890657+0200 ChurchCloud[27100:3056330] WARNING: The splashscreen image named LaunchStoryboard was not found
2018-08-09 15:28:48.890972+0200 ChurchCloud[27100:3056330] WARNING: The splashscreen image named LaunchStoryboard was not found
2018-08-09 15:28:48.923068+0200 ChurchCloud[27100:3056330] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2018-08-09 15:28:48.924455+0200 ChurchCloud[27100:3056330] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service
2018-08-09 15:28:48.928118+0200 ChurchCloud[27100:3056330] active
2018-08-09 15:28:48.928335+0200 ChurchCloud[27100:3056330] PushPlugin skip clear badge
2018-08-09 15:28:49.953284+0200 ChurchCloud[27100:3056330] WARNING: The splashscreen image named LaunchStoryboard was not found
2018-08-09 15:28:49.984212+0200 ChurchCloud[27100:3056330] Printed only in mobile Cordova apps
2018-08-09 15:28:49.984440+0200 ChurchCloud[27100:3056330] Push.Configure: [object Object]
2018-08-09 15:28:50.106119+0200 ChurchCloud[27100:3056617] Push Plugin register called
2018-08-09 15:28:50.106292+0200 ChurchCloud[27100:3056617] PushPlugin.register: setting badge to true
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication setApplicationIconBadgeNumber:]
PID: 27100, TID: 3056617, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 21
Backtrace:
4   ChurchCloud                         0x00000001032e849e __19-[PushPlugin init:]_block_invoke + 1374
5   libdispatch.dylib                   0x000000010a7ff7ab _dispatch_call_block_and_release + 12
6   libdispatch.dylib                   0x000000010a8007ec _dispatch_client_callout + 8
7   libdispatch.dylib                   0x000000010a805619 _dispatch_queue_override_invoke + 1451
8   libdispatch.dylib                   0x000000010a80c36c _dispatch_root_queue_drain + 664
9   libdispatch.dylib                   0x000000010a80c076 _dispatch_worker_thread3 + 132
10  libsystem_pthread.dylib             0x000000010ad2b169 _pthread_wqthread + 1387
11  libsystem_pthread.dylib             0x000000010ad2abe9 start_wqthread + 13
2018-08-09 15:28:50.108952+0200 ChurchCloud[27100:3056617] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication setApplicationIconBadgeNumber:]
PID: 27100, TID: 3056617, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 21
Backtrace:
4   ChurchCloud                         0x00000001032e849e __19-[PushPlugin init:]_block_invoke + 1374
5   libdispatch.dylib                   0x000000010a7ff7ab _dispatch_call_block_and_release + 12
6   libdispatch.dylib                   0x000000010a8007ec _dispatch_client_callout + 8
7   libdispatch.dylib                   0x000000010a805619 _dispatch_queue_override_invoke + 1451
8   libdispatch.dylib                   0x000000010a80c36c _dispatch_root_queue_drain + 664
9   libdispatch.dylib                   0x000000010a80c076 _dispatch_worker_thread3 + 132
10  libsystem_pthread.dylib             0x000000010ad2b169 _pthread_wqthread + 1387
11  libsystem_pthread.dylib             0x000000010ad2abe9 start_wqthread + 13
2018-08-09 15:28:50.162173+0200 ChurchCloud[27100:3056617] PushPlugin.register: clear badge is set to 1
2018-08-09 15:28:50.162424+0200 ChurchCloud[27100:3056617] PushPlugin.register: better button setup
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication registerUserNotificationSettings:]
PID: 27100, TID: 3056617, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 21
Backtrace:
4   ChurchCloud                         0x00000001032e8dc9 __19-[PushPlugin init:]_block_invoke + 3721
5   libdispatch.dylib                   0x000000010a7ff7ab _dispatch_call_block_and_release + 12
6   libdispatch.dylib                   0x000000010a8007ec _dispatch_client_callout + 8
7   libdispatch.dylib                   0x000000010a805619 _dispatch_queue_override_invoke + 1451
8   libdispatch.dylib                   0x000000010a80c36c _dispatch_root_queue_drain + 664
9   libdispatch.dylib                   0x000000010a80c076 _dispatch_worker_thread3 + 132
10  libsystem_pthread.dylib             0x000000010ad2b169 _pthread_wqthread + 1387
11  libsystem_pthread.dylib             0x000000010ad2abe9 start_wqthread + 13
2018-08-09 15:28:50.162784+0200 ChurchCloud[27100:3056617] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication registerUserNotificationSettings:]
PID: 27100, TID: 3056617, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 21
Backtrace:
4   ChurchCloud                         0x00000001032e8dc9 __19-[PushPlugin init:]_block_invoke + 3721
5   libdispatch.dylib                   0x000000010a7ff7ab _dispatch_call_block_and_release + 12
6   libdispatch.dylib                   0x000000010a8007ec _dispatch_client_callout + 8
7   libdispatch.dylib                   0x000000010a805619 _dispatch_queue_override_invoke + 1451
8   libdispatch.dylib                   0x000000010a80c36c _dispatch_root_queue_drain + 664
9   libdispatch.dylib                   0x000000010a80c076 _dispatch_worker_thread3 + 132
10  libsystem_pthread.dylib             0x000000010ad2b169 _pthread_wqthread + 1387
11  libsystem_pthread.dylib             0x000000010ad2abe9 start_wqthread + 13
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication registerForRemoteNotifications]
PID: 27100, TID: 3056617, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 21
Backtrace:
4   ChurchCloud                         0x00000001032e8e0f __19-[PushPlugin init:]_block_invoke + 3791
5   libdispatch.dylib                   0x000000010a7ff7ab _dispatch_call_block_and_release + 12
6   libdispatch.dylib                   0x000000010a8007ec _dispatch_client_callout + 8
7   libdispatch.dylib                   0x000000010a805619 _dispatch_queue_override_invoke + 1451
8   libdispatch.dylib                   0x000000010a80c36c _dispatch_root_queue_drain + 664
9   libdispatch.dylib                   0x000000010a80c076 _dispatch_worker_thread3 + 132
10  libsystem_pthread.dylib             0x000000010ad2b169 _pthread_wqthread + 1387
11  libsystem_pthread.dylib             0x000000010ad2abe9 start_wqthread + 13
2018-08-09 15:28:50.223846+0200 ChurchCloud[27100:3056617] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication registerForRemoteNotifications]
PID: 27100, TID: 3056617, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 21
Backtrace:
4   ChurchCloud                         0x00000001032e8e0f __19-[PushPlugin init:]_block_invoke + 3791
5   libdispatch.dylib                   0x000000010a7ff7ab _dispatch_call_block_and_release + 12
6   libdispatch.dylib                   0x000000010a8007ec _dispatch_client_callout + 8
7   libdispatch.dylib                   0x000000010a805619 _dispatch_queue_override_invoke + 1451
8   libdispatch.dylib                   0x000000010a80c36c _dispatch_root_queue_drain + 664
9   libdispatch.dylib                   0x000000010a80c076 _dispatch_worker_thread3 + 132
10  libsystem_pthread.dylib             0x000000010ad2b169 _pthread_wqthread + 1387
11  libsystem_pthread.dylib             0x000000010ad2abe9 start_wqthread + 13
2018-08-09 15:28:50.261297+0200 ChurchCloud[27100:3056617] GCM Sender ID (null)
2018-08-09 15:28:50.261412+0200 ChurchCloud[27100:3056617] Using APNS Notification
2018-08-09 15:28:50.271174+0200 ChurchCloud[27100:3056330] Start downloading asset manifest from: manifest.json -- https://app.church-cloud.de:443/__cordova/
2018-08-09 15:28:50.272149+0200 ChurchCloud[27100:3056330] Push Plugin register failed
2018-08-09 15:28:50.369768+0200 ChurchCloud[27100:3056330] Push.Error: Error:  - remote notifications are not supported in the simulator
2018-08-09 15:28:50.370565+0200 ChurchCloud[27100:3056330]  - remote notifications are not supported in the simulator
2018-08-09 15:28:50.436973+0200 ChurchCloud[27100:3056610] Downloaded asset manifest for version: 8fb6ddb99202131183c6f48740183d68dc99a601
2018-08-09 15:28:50.447910+0200 ChurchCloud[27100:3056616] Start downloading assets from bundle with version: 8fb6ddb99202131183c6f48740183d68dc99a601
2018-08-09 15:28:50.848392+0200 ChurchCloud[27100:3056616] [CDVTimer][assetBundleDownload] 400.252938ms
2018-08-09 15:28:50.848712+0200 ChurchCloud[27100:3056618] Finished downloading new asset bundle version: 8fb6ddb99202131183c6f48740183d68dc99a601
2018-08-09 15:28:50.868784+0200 ChurchCloud[27100:3056607] TIC Read Status [2:0x0]: 1:57
2018-08-09 15:28:50.868903+0200 ChurchCloud[27100:3056607] TIC Read Status [2:0x0]: 1:57
2018-08-09 15:28:52.607862+0200 ChurchCloud[27100:3056330] ROOT_URL seems to have changed, new: https://app.church-cloud.de, old: https://app.church-cloud.de:443/
2018-08-09 15:28:52.608710+0200 ChurchCloud[27100:3056330] Serving asset bundle version: 8fb6ddb99202131183c6f48740183d68dc99a601

Something is wrong in Meteor. Android HCP is working, but iOS is not: Hot code push worked on Android, not on iOS