I am attempting to use the new Ionic Pro deploy implementation, using the following code:
window.IonicCordova.deploy.check(appId, channelName, (res: any) => {
if (res && res == 'true') {
window.IonicCordova.deploy.download(appId, () => {
window.IonicCordova.deploy.extract(appId, () => {
window.IonicCordova.deploy.redirect(appId, () => {}, () => {});
}, (e: any) => { });
}, (e: any) => { });
}
}, (e: any) => { });
However, when running on the device, the debug console gives me the following result:
2017-10-26 17:08:48.234957+0100 LogIt-In[42384:895251] version is: 0.0.207
2017-10-26 17:08:48.235243+0100 LogIt-In[42384:895251] uuid is:
2017-10-26 17:08:48.235411+0100 LogIt-In[42384:895251] channel is: preproduction
2017-10-26 17:08:48.235553+0100 LogIt-In[42384:895251] JSON Error: (null)
2017-10-26 17:08:48.235713+0100 LogIt-In[42384:895251] Response: (null)
2017-10-26 17:08:48.236321+0100 LogIt-In[42384:895251] JSON: {
error = {
link = "<null>";
message = "404: Not Found";
type = NotFound;
};
meta = {
"request_id" = "<null>";
status = 404;
version = "2.0.0-sdlc-beta.0";
};
}
2017-10-26 17:08:48.236589+0100 LogIt-In[42384:895251] compatible: False
2017-10-26 17:08:48.236737+0100 LogIt-In[42384:895251] available: False
2017-10-26 17:08:48.236893+0100 LogIt-In[42384:895251] Refusing update due to incompatible binary version
2017-10-26 17:08:48.237017+0100 LogIt-In[42384:895251] update is false
My ionic.io version of the app exists, and is built and ‘deployed’ to the preproduction channel. There are no version restrictions.
Is this 404 error normal functionality? And, what am I doing wrong (or should I be looking for) to have the app update.