Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New requirement for Android: Target SDK: 26 #39

Closed
luigi37 opened this issue Jan 30, 2018 · 7 comments
Closed

New requirement for Android: Target SDK: 26 #39

luigi37 opened this issue Jan 30, 2018 · 7 comments

Comments

@luigi37
Copy link

luigi37 commented Jan 30, 2018

Hi,
I've just read this:
https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html

In which it's mentioned that by August we will need to use a target SDK of 26

Currently it's 25...

Would that affect the functionality of this plugin being linked to a specific cordova and android version?

@vbraun
Copy link

vbraun commented Feb 8, 2018

One thing that I found out the hard way with 26 is that you now have to call NotificationManager.createNotificationChannel(), ideally during plugin initialization. Otherwise you get either nothing, or a toast telling you that you must create a channel (the latter is a switch in the Android developer setting). I hacked it into my own fork at vbraun@c57c3db. Note that the channel also carries a human-readable name, which probably should be configurable in a polished solution.

@luigi37
Copy link
Author

luigi37 commented Feb 8, 2018

Thanks vbraun. I understand you have been succesfully compiling and running Android app with higher cordova and platform versions.
Which versions did you use for

  • cordova
  • platform android
  • platform ios
    ?
    Thanks a lot
    Luigi

@vbraun
Copy link

vbraun commented Feb 8, 2018

I'm using it with cordova 6.5.0, cordova-android 6.4.0, no ios. I haven't updated cordova yet since I'm using another plugin that doesn't support >=7 yet...

@luigi37
Copy link
Author

luigi37 commented Feb 13, 2018

Thanks.
Mentioned here
#40
We should get an update for new versions

@luigi37
Copy link
Author

luigi37 commented Jun 13, 2018

Hi all, anyone could compile properly with API 26?
August deadline is approaching soon for the Google store....

@luigi37
Copy link
Author

luigi37 commented Jun 13, 2018

Hi all, just in case anyone is interested... in reality nothing is needed to be compliant with the Google Play store except adding to config.xml the two lines

<preference name="android-minSdkVersion" value="16" />
<preference name="android-targetSdkVersion" value="26" />

No change in the rest and no need to update Cordova or Android platform..

So, as per today I confirm all works good with Android 8.0 and iOS 11.4 (iPhone 5S) with
Cordova 7.0.1
android 6.2.3
ios 4.5.0
cordova-plugin-fcm 3.0.3 "FCMPlugin"

@luigi37 luigi37 closed this as completed Jun 13, 2018
@luigi37
Copy link
Author

luigi37 commented Jun 17, 2018

Note... only target version is needed, don't put also min-version at 26 or you will be able to serve only few devices...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants