Using the inappbrowser plugin:
what should be in your config.xml is:
<feature name="InAppBrowser"> <param name="android-package" value="org.apache.cordova.inappbrowser.InAppBrowser"/> </feature>
and not
<feature name="InAppBrowser"> <param name="android-package" value="org.apache.cordova.InAppBrowser"/> </feature>
Also, if you want to use the back button handler on Android, make sure you have the following in your config.xml
<feature name="App"> <param name="android-package" value="org.apache.cordova.App" /> </feature>
Another issue (not related to Cordova gotchas) is adb devices
returning a status of offline for recognised Android devices connected via USB. There can be multiple reasons that cause this, but what worked in my case was:
- kill the adb service running on your PC
- Disable USB debugging on your Android device and remove the USB from your PC
- Restart your Android device
- Enable USB debugging on your Android device
- Connect the USB cable from your Android device to your PC
-
run ‘adb devices’ from the terminal