Live updates simply not appearing on device

I’ve tried to get some more in depth information using chrome://inspect to see what’s in the console on the device.

I can see this, I imagine this can have an impact on whether the live update stuff will work:

deviceready has not fired after 5 seconds.
capacitor-runtime.js:2181 Channel not fired: onIonicProReady
vendor.js:95897 Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.
(anonymous) @ vendor.js:95897

I also see this error:

Resources$NotFoundException: String resource ID #0x0

Then I stumbled across this post:

If I add this to strings.xml it seems to fix the error above, I will test if this means my updates are applying…

  <string name="ionic_max_versions" >2</string>
  <string name="ionic_update_api">https://api.ionicjs.com</string>
  <string name="ionic_min_background_duration">30</string>

(Why doesn’t ‘ionic deploy add’ do this if this is essential?)

I’m yet to test on ios, wouldn’t be surprised if that needs similar tweaking.

1 Like