Problem with JMC and Hockey integration

Hi,

I am currently adding JMC support to our iOS app, which already has the HockeyApp SDK integrated.

I followed this guide: https://developer.atlassian.com/display/JMC/Integrating+JMC+with+HockeyApp+Already+Installed

but when I try to send a feedback, it's not working.

If I add this call to the AppDelegate:

[[JMC sharedInstance] configureJiraConnect:@"https://connect.onjira.com/"
projectKey:@"NERDS"
apiKey:@"591451a6-bc59-4ca9-8840-b67f8c1e440f"];

then the feedback sending works. But it should work without this, right?

If I add the above lines AFTER the HockeyManager calls, the app even crashes. When called BEFORE, it works.

What irritates me a bit is this line:

"The class CNSHockeyManager automatically fetches the API token and project key for JMC from HockeyApp..."

My hockey SDK (last one from https://github.com/bitstadium/HockeySDK-iOS) does not contain a CNSHockeyManager class, but a BITHockeyManager class. Is this the source of the problem? Where do I get the CNSHockeyManager?

Does anyone have similar problems with JMC and hockey?

Best regards

Michael

2 answers

Hi Michael,

I guess now you are using https://connect.atlassian.net NOT https://connect.onjira.com/. While in your attached configurations it seems that you are using https://connect.onjira.com/ instead of using https://connect.atlassian.net/. Did you try to change that and give a try?

Cheers,

Omar

Hi Omar,

thanks for your reply.

The code above is just dummy code, I do not really use. Actually the URL is like this:https://[our_company_name].atlassian.net/

I copied it from the settings/JMC section of the administration page of the project, so i guess it should be right.

Should I try https://connect.atlassian.net ?

But it says Add the above line of code to your App. So I think this should be the correct URL, right?

Cheers

Michael

I guess you should try this URL https://connect.atlassian.net/. as onjira shouldn't be valid anymore.

Let us know how it goes with you!

Hi Omar,

the thing is, as I read the documentation, I should not add the call to JMC at all, if I have hockey integrated:

"The class CNSHockeyManager automatically fetches the API token and project key for JMC from HockeyApp, so you don't need to adjust the configuration in your AppDelegate.m file." (from https://developer.atlassian.com/display/JMC/Integrating+JMC+with+HockeyApp+Already+Installed)

But maybe I just read it wrongly and the [JMC sharedInstance] configureJiraConnect call is necessary, allthough hockey is installed.

Can you verify that?

Regards

Michael

Hi Omar,

thanks for your reply.

The code above is just dummy code, I do not really use. Actually the URL is like this: https://[our_company_name].atlassian.net/

I copied it from the settings/JMC section of the administration page of the project, so i guess it should be right.

Should I try https://connect.atlassian.net ?

But it says Add the above line of code to your App. So I think this should be the correct URL, right?

Cheers

Michael

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,764 views 18 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you