# Ionic 3 APK update on mobile device not working

**URL:** <https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997>\
**Category:** Ionic Framework\
**Created:** [September 17, 2018, 8:32pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997 "2018-09-17T20:32:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![PierreSchwang](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@PierreSchwang](https://forum.ionicframework.com/u/PierreSchwang)\
**Post date:** [September 17, 2018, 8:32pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997/1 "2018-09-17T20:32:34Z")

</div>

Hello,

I have been using Ionic for a long time and this error did not occur so far.  
I build my APK and install it as usual. If I now want to update the APK on my mobile phone (because the app already exists) it will not install the latest code but some older version.  
I have now found out that I can install the latest version if I uninstall the app first.

My build commands:

```auto
ionic cordova build --release android
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk alias_name
zipalign -v 4 platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk App.apk 

```

If you need any files or other things just ask.

Thank you in advance for your help.  
Pierre

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 18, 2018, 4:58pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997/2 "2018-09-18T16:58:46Z")

</div>

Are you using Ionic Pro stuff? This sounds like it might be downloading an old version somehow.

Post your `ionic info` output please.

---

<div class="post-metadata">

**Author:** ![PierreSchwang](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@PierreSchwang](https://forum.ionicframework.com/u/PierreSchwang)\
**Post date:** [September 18, 2018, 6:03pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997/3 "2018-09-18T18:03:55Z")

</div>

My Ionic Info Output:

```auto
Ionic:

   ionic (Ionic CLI) : 4.1.2 (C:\Users\pierr\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms : not available
   Cordova Plugins : cordova-plugin-ionic 5.0.0, cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.2, (and 7 other plugins)

System:

   NodeJS : v8.11.2 (C:\Program Files\nodejs\node.exe)
   npm : 5.6.0
   OS : Windows 10

```

I found out that the app likes to use old versions even without update / reinstallation. I then have to clear the memory of the app, then it works again. Sounds slightly confusing to me.

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 18, 2018, 7:14pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997/4 "2018-09-18T19:14:19Z")

</div>

> [@PierreSchwang](#):
>
> Cordova Platforms : not available

That is strange. What does `ionic cordova platforms list` return?

Also:

> [@Sujan12](#):
>
> Are you using Ionic Pro stuff? This sounds like it might be downloading an old version somehow.

---

<div class="post-metadata">

**Author:** ![PierreSchwang](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@PierreSchwang](https://forum.ionicframework.com/u/PierreSchwang)\
**Post date:** [September 18, 2018, 7:22pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997/5 "2018-09-18T19:22:11Z")

</div>

```auto
> cordova platform ls
Installed platforms:
  android 7.0.0
Available platforms:
  browser ~5.0.1
  ios ~4.5.4
  osx ~4.0.1
  windows ~5.0.0
  www ^3.12.0

```

And to the other question: I use Ionic pro primarily for monitoring. In between I tested the deployment system (but I didn’t like it). There is still an entry under “Deploy builds”, I don’t know if this is important.

 ![grafik](https://global.discourse-cdn.com/ionicframework/original/3X/c/4/c46c40ac9f7a208927a56ff2fd1db148735816c3.png)

In my folder I removed the remote for Ionic (git) and use only gitlab.  
But I don’t know if this has anything to do with it. if I empty the memory / delete the app and install it it works. I also had the problem a few times today that the app just had the old layout (nothing reinstalled, etc). I had to empty the app’s memory and it worked again (_without_ reinstalling).

If it should help, here is the repo (unfortunately not the best code style, I definitely have to make it tidier): [https://gitlab.com/PierreSchwang/Vertretungsplan-App](https://gitlab.com/PierreSchwang/Vertretungsplan-App) (And yes, I’m German, that’s why much of the frontend is written in German. The variables should be in English :D)

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 18, 2018, 7:49pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997/6 "2018-09-18T19:49:05Z")

</div>

> [@PierreSchwang](#):
>
> android 7.0.0

Your Cordova tooling seems to be out of date, which might be causing all kinds of problems.  
You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here: [How to update Cordova CLI, Platforms and Plugins · ionic.zone](https://ionic.zone/cordova/update)

> [@PierreSchwang](#):
>
> There is still an entry under “Deploy builds”, I don’t know if this is important.

Is this the state you tend to see?

My guess is still somehow [Capacitor SDK Setup - Appflow](https://ionicframework.com/docs/pro/deploy/setup/) is active for you. I don’t know much about it unfortunately.

---

<div class="post-metadata">

**Author:** ![PierreSchwang](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@PierreSchwang](https://forum.ionicframework.com/u/PierreSchwang)\
**Post date:** [September 18, 2018, 8:02pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997/7 "2018-09-18T20:02:48Z")

</div>

> [@Sujan12](#):
>
> Your Cordova tooling seems to be out of date, which might be causing all kinds of problems.  
> You can read about how to figure out the current Cordova versions and how to update CLI, platforms and plugins here: [How to update Cordova CLI, Platforms and Plugins · ionic.zone](https://ionic.zone/cordova/update)

I don’t know, all required versions are available or do I misunderstand something?:

![grafik](https://global.discourse-cdn.com/ionicframework/original/3X/f/6/f6581e58bb8e3693477e128a465df7b587ac3e29.png)

> [@Sujan12](#):
>
> Is this the state you tend to see?
> 
> My guess is still somehow [Capacitor SDK Setup - Appflow](https://ionicframework.com/docs/pro/deploy/setup/) is active for you. I don’t know much about it unfortunately.

In theory, nothing can be deployed once I have completely removed ionic from git. So there is no deploy request for Ionic anymore.

But I somehow don’t think that’s related to that. I have to empty the memory to run / install the app properly…

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 18, 2018, 8:05pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997/8 "2018-09-18T20:05:00Z")

</div>

> [@PierreSchwang](#):
>
> I don’t know, all required versions are available or do I misunderstand something?:

Yes, see the 7.0.0 vs. 7.1.1 on `cordova-android`.

> [@PierreSchwang](#):
>
> In theory, nothing can be deployed once I have completely removed ionic from git.

You removing the `ionic` remote on your local checkout of your repository doesn’t really matter what your app does and what Ionic still has on its servers.

But if you are sure this is not the problem, you will have to keep looking elsewhere. I have no idea.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:16pm UTC](https://forum.ionicframework.com/t/ionic-3-apk-update-on-mobile-device-not-working/141997/9 "2021-07-19T21:16:29Z")

</div>

Closed on July 19, 2021, 9:16pm UTC


