1. Home
  2. Docs
  3. Bugfender on hybrid development frameworks
  4. Cordova / Phonegap

Cordova / Phonegap

Requirements for iOS:

  • Mac computer, Adobe PhoneGap Build does not work.
  • Cordova 9 or better
  • CocoaPods

Requirements for Android:

  • Android Studio
  • Cordova 9 or better

Installation steps:

If developing for iOS, Bugfender is compatible with iOS 8.0 and better. Edit your config.xml file, look for the iOS platform and add the following preference below (in bold):

<platform name="ios">
    <preference name="deployment-target" value="8.0" />

In your console, type the following command:

cordova plugin add cordova-plugin-bugfender --variable BUGFENDER_APP_KEY=YOUR_APP_KEY --save

Replace console.log() with Bugfender.log() for the logs you want to send to Bugfender

Done! Run your application on a real device or emulator to get the first logs in.

Please note: Bugfender does nothing when testing on the browser platform. You will need to run on a real device or emulator to test it, with a command such as cordova emulate ios or cordova emulate android.

For a more advanced configuration please refer to the GitHub repository.