Load old version when i deployed apk output

Hi ,
I have an application that developed by ionic.
when I build apk and deploy it on my device, in first run it work ok but when run it again, it load very old version.
how can i fix this problem.
I have this problem in ios version too.

cool, a fall back version included. :wink:
Okay this behaviour I don’t know. What I sometimes have is the same behaviour when I make ionic serve in the browser. I this case I delete browser cache, content of www folder and content of sourcemaps. Maybe this helps, but this behaviour is really strange on building apk. Maybe you should report it.

Best regards, anna-liebt

thank for your answer, when I run by ionic serve or ionic lab i have not any problem. when create apk and deploy on my device this problem happens.

Are you using Ionic Pro Live Deploy?

What is your ionic info output?
What does your package.json look like?

No,I use this link https://ionicframework.com/docs/v1/guide/publishing.html for create apk.
and this is my package.json

“name”: “artarad”,
“version”: “0.0.2”,
“author”: “Mohammad Hassanzadeh”,
“homepage”: “http://artarad.ir/”,
“private”: true,
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build”,
“lint”: “ionic-app-scripts lint”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
“dependencies”: {
@angular/common”: “4.4.4”,
@angular/compiler”: “4.4.4”,
@angular/compiler-cli”: “4.4.4”,
@angular/core”: “4.4.4”,
@angular/forms”: “4.4.4”,
@angular/http”: “4.4.4”,
@angular/platform-browser”: “4.4.4”,
@angular/platform-browser-dynamic”: “4.4.4”,
@ionic-native/base64”: “^4.6.0”,
@ionic-native/camera”: “^4.6.0”,
@ionic-native/core”: “4.3.2”,
@ionic-native/file”: “^4.6.0”,
@ionic-native/file-opener”: “^4.5.3”,
@ionic-native/file-path”: “^4.6.0”,
@ionic-native/file-transfer”: “^4.6.0”,
@ionic-native/network”: “^4.5.3”,
@ionic-native/splash-screen”: “4.3.2”,
@ionic-native/status-bar”: “4.3.2”,
@ionic-native/toast”: “^4.6.0”,
@ionic/storage”: “2.0.1”,
“angular2-odoo-jsonrpc”: “0.0.7”,
“app-scripts”: “0.0.0”,
“com-badrit-base64”: “^0.2.0”,
“cordova-android”: “^7.0.0”,
“cordova-plugin-add-swift-support”: “^1.7.2”,
“cordova-plugin-camera”: “^4.0.2”,
“cordova-plugin-device”: “^1.1.4”,
“cordova-plugin-file”: “^6.0.1”,
“cordova-plugin-file-opener2”: “^2.0.19”,
“cordova-plugin-file-transfer”: “^1.7.1”,
“cordova-plugin-filepath”: “^1.2.0”,
“cordova-plugin-ionic”: “^2.0.4”,
“cordova-plugin-ionic-webview”: “^1.1.16”,
“cordova-plugin-network-information”: “~1.3.4”,
“cordova-plugin-splashscreen”: “^4.0.3”,
“cordova-plugin-statusbar”: “^2.4.1”,
“cordova-plugin-whitelist”: “^1.3.1”,
“cordova-plugin-x-toast”: “^2.6.0”,
“cordova-sqlite-storage”: “^2.1.3”,
“gyp”: “^0.5.0”,
“has-flag”: “^2.0.0”,
“ionic-angular”: “3.8.0”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionic2-rating”: “^1.2.2”,
“ionicons”: “3.0.0”,
“jalali-date”: “^1.0.2”,
“ng2-jalali-date-picker”: “^2.2.4”,
“node-sass”: “^4.5.3”,
“odoo-xmlrpc”: “^1.0.6”,
“rxjs”: “5.4.3”,
“sw-toolbox”: “3.6.0”,
“xmlrpc”: “^1.3.2”,
“zone.js”: “0.8.18”
“devDependencies”: {
@ionic/app-scripts”: “^3.0.1”,
“typescript”: “2.3.4”
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“ionic-plugin-keyboard”: {},
“cordova-plugin-whitelist”: {},
“cordova-plugin-device”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-ionic-webview”: {},
“cordova-plugin-ionic”: {
“APP_ID”: “650a4fdb”,
“CHANNEL_NAME”: “public”,
“UPDATE_METHOD”: “background”,
“UPDATE_API”: “https://api.ionicjs.com”,
“MAX_STORE”: “2”
“cordova-plugin-file”: {},
“cordova-plugin-file-opener2”: {},
“cordova-plugin-network-information”: {},
“cordova-plugin-x-toast”: {},
“cordova-sqlite-storage”: {},
“cordova-plugin-camera”: {},
“cordova-plugin-file-transfer”: {},
“cordova-plugin-filepath”: {},
“cordova-plugin-statusbar”: {},
“com-badrit-base64”: {}
“platforms”: [
“main”: “index.js”,
“license”: “ISC”

So yes, you are using Ionic Pro Live Deploy in your app. You probably uploaded this once a long time ago, and as your app is configured to download the most recent version from there and install it - it overwrites your actual app.

1 Like

yes, i deploy an old version by ionic pro and it load after first run.
how can i delete it?