CLI-9.0.0 Support Has Been Added to PhoneGap Build

brett
PhoneGap
Published in
2 min readJul 29, 2019

As you might have heard Google has updated the requirements for the Google Play Store. In a nutshell they now require new apps to target at least Android 9.0 (API level 28) from August 1st, 2019. App updates must be at least Android 8.0 (API level 26) until November 1st, 2019 after which they must be upgraded to Android 9.0 (API level 28).

The full post by Google about this requirement is here…

There are two ways to support this new requirement on your apps while using PhoneGap Build:

1. Use cli-9.0.0 (Apache Cordova CLI 9.0.0)

PhoneGap Build now supports cli-9.0.0 (current support). This version uses the following Apache Cordova Versions:

  • Android: 8.0.0
  • iOS: 5.0.1
  • Windows: 7.0.0

The new version of Android defaults to Android 9.0 (API level 28) and apps built using this version will now meet the new requirements.

For updates to existing apps on the Play Store you can still use cli-7.1.0 as a minimum until November 1st, 2019 after which you must update to cli-9.0.0 or use the method below.

2. Explicitly specify “android-targetSdkVersion”

While we always suggest using the latest version of PhoneGap you can also explicitly target Android 9.0 (API level 28) on older versions of PhoneGap by using the “android-targetSdkVersion” preference as below:

<preference name="android-targetSdkVersion" value="28" />

Follow me on twitter @brettrudd

--

--