Some Cordova 3.3 gotchas (there are more)

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"/>

and not

    <feature name="InAppBrowser"> 
       <param name="android-package" value="org.apache.cordova.InAppBrowser"/>

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" />

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:

  1. kill the adb service running on your PC
  2. Disable USB debugging on your Android device and remove the USB from your PC
  3. Restart your Android device
  4. Enable USB debugging on your Android device
  5. Connect the USB cable from your Android device to your PC
  6. run ‘adb devices’ from the terminal

Leave a Reply

Your email address will not be published. Required fields are marked *