EddyVerbruggen / cordova-plugin-safariviewcontroller

:tiger: :elephant: :crocodile: Forget InAppBrowser for iOS - this is way better for displaying read-only web content in your PhoneGap app
MIT License
282 stars 144 forks source link

Compatibility with cordova-android@6.4 #148

Closed henryavila closed 5 years ago

henryavila commented 5 years ago

Hi, is this plugin compatible with cordova-android@6.4 ?

henryavila commented 5 years ago

When I try to compile, I get the error:

:javaPreCompileDebug
/Users/..../platforms/android/src/com/customtabplugin/ChromeCustomTabPlugin.java:46: error: cannot find symbol
        final Context context = this.cordova.getContext();
                                            ^
  symbol:   method getContext()
  location: variable cordova of type CordovaInterface
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
AndrWeisR commented 5 years ago

CordovaInterface.getContext() was only added in Cordova Android 7.0.0, so you will need to upgrade to at least 7.0.0.

henryavila commented 5 years ago

Thanks @AndrWeisR