Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post install procedure? #5

Open
kevbaker opened this issue Mar 24, 2015 · 6 comments
Open

Post install procedure? #5

kevbaker opened this issue Mar 24, 2015 · 6 comments

Comments

@kevbaker
Copy link

Hello,

I was able to install the cordova-plugin-hockeyapp using the MichaelGooden hockeyapp plugin fork

After a successful build, I am not see a "HockeySDK" reported on my app_version page in the Hockey App website.

Can you advise as to next steps? Do I need to make any calls in my actual cordova app to see results?

Thanks

@export-mike
Copy link

Hey I'm at the same step as you @kevbaker. Were you able to get any data into hockey app? It appears the sdk doesn't show until you've made a request to the api.

image

I'm trying to make my app crash (i.e. close) but so far i haven't found any problems with my app... :)

Oh I also didn't use the MichaelGooden hockeyapp plugin fork, I used this repo but used the sed command to patch in the api key.

@export-mike
Copy link

Turns out the plugin exposes a global var:
var HockeyApp = function(){};

HockeyApp.prototype.forcecrash = function(success, error) {
exec(success, error, "HockeyAppPlugin", "forcecrash", []);
};

module.exports = new HockeyApp();

});

@sannysinghs
Copy link

how can i solve this @mikeljames ?

@export-mike
Copy link

Hey so I got the plugin working to the point where the dialog will appear and supposedly sumit logs to hockeyapp. The logs are not appearing atm. But what I did do was alter one of the .m files and hard code in the hockeyapp api key. I did this in my jenkins build to replace the key in the string with the api key.

@export-mike
Copy link

Hey Don't use this repo. Use this one instead.
https://github.com/pradeepkumargali/cordova-plugin-hockeyapp

#Hockey app api plugin - for reporting crashes
cordova plugin add https://github.com/pradeepkumargali/cordova-plugin-hockeyapp.git --variable DROID_APPID=${DROID_APPID_VALUE} --variable IOS_APPID=${IOS_APPID_VALUE}

set DROID_APPID_VALUE and IOS_APPID_VALUE as env variables in your CI. @sannysinghs

@sannysinghs
Copy link

I changed repo and worked fine . Thanks @mikeljames

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants