My workflow with HockeyApp for native apps was pretty simple.
- Build the native app on a continuous server like Jenkins or Visual Studio Online.
- Upload the generated APK or iPA file using curl to the HockeyApp url.
- Beta testers use the HockeyApp for iOS or Android to download this beta app, and test it.
- HockeyApp SDK was integrated into my app for getting feedback, analyzing crashes, or notifying any changes that I make.
Given that the cordova plugin adapter did most of the setup work, I did not have to manually add permissions or modify my activity as specified in the docs. I just had to do
$ npm install react-native-cordova-plugin
$ node_modules/.bin/cordova-plugin add cordova-plugin-hockeyapp.
Then I simply require('react-native-cordova-plugin'); and started using the API as below
- Initialize the plugins using cordova.hockeyapp.start(success, fail, token) on componentDidMount.
- cordova.hockeyapp.checkForUpdate(success, failure); to check if there are new versions. I ran this on startup of the app, and also had a button to refresh the app.
- cordova.hockeyapp.feedback(success, failure); opened the screen for users to provide feedback about the app and was hooked to a button.
- For testing, I also used the cordova.hockeyapp.forceCrash(); API to simulate crashes. There was a bug in the app that made the app crash on a beta tester's phone and I did get the crash reports.
I was only able to get the HockeyApp working on the AndroidSDK since the react-native-plugin-adapter only works on Android for now. If you would like a version for iOS too, or would like to try integrating the HockeyApp into your ReactNative app, please do ping me and I will be happy to help.