Fomahaut
Fomahaut

Reputation: 1212

Cordova always reinstall app when using `run --device` cli

When I using cordova run android --device, Cordova always uninstall app before install the new one. I want "update" my app, not "reinstall" it because that would wipe all the data. How can I do that?

Cordova: 6.0.0
Cordova-android: 5.1.0

Upvotes: 3

Views: 240

Answers (1)

Fomahaut
Fomahaut

Reputation: 1212

Finally found the issue.

Due to the change in CB-9557, the application is ALWAYS uninstalled before being installed.

The solution merged but not in Cordova-android 5.1.0(the last release at this time). So we need update the files in platform/android/cordova/lib/ manually.

Upvotes: 2

Related Questions