I have pasted the code at http://docs.ionic.io/v1.0/docs/deploy-updating-apps into my app. I regularly do
ionic upload from the CLI whenever I have made some decent additions to my app.
However, every time I install and launch my app,
$ionicDeploy.check() returns true and starts downloading whichever code is latest on the ionic deploy servers. Even if the code I’m launching is more recent. This started to happen even before I clicked Deploy on any of my uploads at apps.ionic.io.
I would love to use ionicDeploy but I don’t want my users to get an update download running when they first launch the app. Should I be comparing versions somehow? Or should I not upload code at all unless I want to deploy it to users immediately?
I can see the following in my console during app launch:
In Finally JSON Error: (null) Returing? Response: (null) UUID: e1fcd5c6e00ec6a11e5af0cdcde7652e8a66a0 OUR_UUID: (null) Updates Available: true Is first?: 0 DEBUG DEPLOY: true Upstream UUID: e1fcd5c6e00ec6a11e5af0cdcde7652e8a66a0 Versions: () In Finally JSON Error: (null) Returing? Queueing Download... Download Progress: 0%
Looking into what the ionicDeploy plug-in does, it seems to compare its own stored UUID for the app version to what the update services gives back as latest. However on first launch there is no stored UUID.
Should I be storing the baseline version UUID in my app project before building so that the current version isn’t being ‘updated’ to on first launch?