Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.1.1
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (39 sloc) 1.703 kb
<div id="ios">
<h3>Setting up your iOS project</h3>
<ol>
<li>
Download the notifier from <a href="Github">https://github.com/guicocoa/hoptoad-ios</a>.
</li>
<li>
Drag the hoptoadnotifier and kissxml folders to your project.
<ul>
<li> Make sure "Copy Items" and "Create Groups" are selected.</li>
<li> If you are already using kissxml, you don't need to include it again.</li>
</ul>
</li>
<li>
Add SystemConfiguration.framework and libxml2.dylib to your project.
</li>
<li>
Add the path /usr/include/libxml2 to Header Search Paths in your project's build settings.
<ul>
<li>Make sure you add it under "All Configurations".</li>
</ul>
</li>
</ol>
<h3>Running the notifier</h3>
<p>Import the notifier header file</p>
<p><pre>#import "HTNotifier.h"</pre></p>
<p>Call the main notifier method at the very beginning of your <code>application:didFinishLaunchingWithOptions:</code></p>
<p><pre>
[HTNotifier startNotifierWithAPIKey:(API KEY)
environmentName:HTNotifierDevelopmentEnvironment];
</pre></p>
<h3>Testing</h3>
<p>
To test that the notifier is working inside your application, a simple test method is provided. This method creates a notice with all of the parameters filled out as if a method, <code>crash</code>, was called on the shared <code>HTNotifier</code> object. That notice will be picked up by the notifier and reported just like an actual crash. Add this code to your <code>application:didFinishLaunchingWithOptions:</code> to test the notifier:
</p>
<p><pre>
[[HTNotifier sharedNotifier] writeTestNotice];
</pre></p>
</div>
Jump to Line
Something went wrong with that request. Please try again.