2 Replies Latest reply on Dec 4, 2016 5:08 PM by davidluthiers

    Can't update an already published app

    davidluthiers

      Hi, I'm trying to update an app that's already in the app store, I found this thread cant update already published app after phonegap build that spoke about some versions adding an 8 to Android-versionCode and it's useful when upgrading in most recent versions. But my actual problem is about upgrading a 3.7.0 version phonegap application to a 5.2.1 version, which results in the informative message "Application not installed".

      I've tried changing the version and android-versionCode with no different results.

       

      I have extracted the android manifest from my old 3.7.0 published application:

       

      <?xml version="1.0" encoding="utf-8"?>
      <manifest xmlns:"http://schemas.android.com/apk/res/android" android:versionCode="1794" android:versionName="1.1.1" android:windowSoftInputMode="20" android:installLocation="auto" package="mypackage">
          <supports-screens android:anyDensity="true" android:smallScreens="false" android:normalScreens="true" android:largeScreens="false" android:resizeable="true" android:xlargeScreens="false" />
          <uses-permission android:name="android.permission.INTERNET" />
          <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
          <application android:label="@string/app_name" android:icon="@drawable/icon" android:debuggable="false" android:hardwareAccelerated="true">
              <activity android:label="@string/app_name" android:name=".HoffmanApp" android:screenOrientation="unspecified" android:configChanges="locale|keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="0">
                  <intent-filter>
                      <action android:name="android.intent.action.MAIN" />
                      <category android:name="android.intent.category.LAUNCHER" />
                  </intent-filter>
              </activity>
              <receiver android:name="de.appplant.cordova.plugin.localnotification.Receiver" />
              <receiver android:name="de.appplant.cordova.plugin.localnotification.Restore">
                  <intent-filter>
                      <action android:name="android.intent.action.BOOT_COMPLETED" />
                  </intent-filter>
              </receiver>
              <activity android:name="de.appplant.cordova.plugin.localnotification.ReceiverActivity" android:launchMode="singleInstance" />
          </application>
          <uses-sdk android:minSdkVersion="7" />
          <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
          <uses-permission android:name="android.permission.VIBRATE" />
          <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
          <uses-permission android:name="android.permission.RECORD_AUDIO" />
          <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
          <uses-permission android:name="android.permission.READ_PHONE_STATE" />
      </manifest>
      

       

      And this is the new android manifest from the 5.2.1 application:

      <?xml version="1.0" encoding="utf-8"?>
      <manifest xmlns:"http://schemas.android.com/apk/res/android" android:versionCode="1795" android:versionName="2.0.0" android:windowSoftInputMode="20" android:installLocation="internalOnly" package="mypackage" platformBuildVersionCode="23" platformBuildVersionName="6.0-2704002">
          <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="23" />
          <supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:resizeable="true" android:xlargeScreens="true" />
          <uses-permission android:name="android.permission.INTERNET" />
          <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
          <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
          <uses-permission android:name="android.permission.RECORD_AUDIO" />
          <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
          <uses-permission android:name="android.permission.READ_PHONE_STATE" />
          <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
          <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
          <uses-feature android:name="android.hardware.location.gps" />
          <uses-permission android:name="android.permission.VIBRATE" />
          <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
          <uses-feature android:glEsVersion="20000" android:required="true" />
          <uses-feature android:name="android.hardware.location" />
          <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
          <application android:label="@string/app_name" android:icon="@drawable/icon" android:debuggable="true" android:hardwareAccelerated="true">
              <activity android:label="@string/app_name" android:name="mypackage.HoffmanApp" android:screenOrientation="portrait" android:configChanges="locale|keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="0">
                  <intent-filter>
                      <action android:name="android.intent.action.MAIN" />
                      <category android:name="android.intent.category.LAUNCHER" />
                  </intent-filter>
              </activity>
              <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/fb_app_id" />
              <meta-data android:name="com.facebook.sdk.ApplicationName" android:value="@string/fb_app_name" />
              <activity android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:label="@string/fb_app_name" android:name="com.facebook.FacebookActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize" />
              <meta-data android:name="com.google.android.geo.API_KEY" android:value="key" />
              <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
              <receiver android:name="de.appplant.cordova.plugin.localnotification.TriggerReceiver" android:exported="false" />
              <receiver android:name="de.appplant.cordova.plugin.localnotification.ClearReceiver" android:exported="false" />
              <activity android:theme="@*android:style/Theme.NoDisplay" android:name="de.appplant.cordova.plugin.localnotification.ClickActivity" android:exported="false" android:launchMode="singleInstance" />
              <receiver android:name="de.appplant.cordova.plugin.notification.TriggerReceiver" android:exported="false" />
              <receiver android:name="de.appplant.cordova.plugin.notification.ClearReceiver" android:exported="false" />
              <receiver android:name="de.appplant.cordova.plugin.localnotification.RestoreReceiver" android:exported="false">
                  <intent-filter>
                      <action android:name="android.intent.action.BOOT_COMPLETED" />
                  </intent-filter>
              </receiver>
              <activity android:theme="@*android:style/Theme.NoDisplay" android:name="de.appplant.cordova.plugin.notification.ClickActivity" android:exported="false" android:launchMode="singleInstance" />
              <activity android:name="com.facebook.CustomTabActivity" android:exported="true" />
              <activity android:theme="@*android:style/Theme.Translucent.NoTitleBar" android:name="com.google.android.gms.common.api.GoogleApiActivity" android:exported="false" />
          </application>
      </manifest>
      

       

      Maybe there's something I don't know about versions? Is it possible to update from such different versions?

      I'm never opening the old application to make sure it doesn't generate files that could cause any trouble, so it's a version/building problem.

      Both applications were built on phonegap build.