You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Hi, I am using code-push for an ionic application. I noticed that sometimes some images are not rendering when an update package has download but app not restart. When restart it, then everything is fine.
This is my check update code:
checkUpdate(){if(this.platform.is('ios')||this.platform.is('android')){constdownloadProgress=(progress)=>{console.debug(`Downloaded ${progress.receivedBytes} of ${progress.totalBytes}`);if(!ConfigService.isProdEnv){if(progress.receivedBytes===progress.totalBytes){this.hudService.getAlert('更新成功','新版本更新成功,请关闭应用并重新打开使用新版本.该提示只会在测试期间出现,请勿依赖。',[{text: '确定',handler: ()=>{}}]).present();}}}this.codePush.sync({},downloadProgress).subscribe((syncStatus)=>console.log(syncStatus));}}
Do you have any idea what could be the problem? I tried various things as a workaround but so far nothing helped.
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Hello @gulullu, thank you for your question. Although I'm not sure that this is the same problem (and the issue was initially created for react app, not a cordova one) but anyway - do you have a chance to look for this thread to see if this could be useful for you.
Hi, I am using code-push for an ionic application. I noticed that sometimes some images are not rendering when an update package has download but app not restart. When restart it, then everything is fine.
This is my check update code:
Do you have any idea what could be the problem? I tried various things as a workaround but so far nothing helped.
Thanks a lot.
The text was updated successfully, but these errors were encountered: