Quantcast
Channel: Dev – Splunk Blogs
Viewing all articles
Browse latest Browse all 218

Mobile Analytics (iOS) with Storm

$
0
0

As those who have been following articles about mobile analytics with Storm and Splunk already know, there’s been demand for an  iOS library to help iOS app developers to debug their apps. I’m happy to announce that the iOS library is now available for use with Storm REST API input. The installation steps to use this libary are trivial:

[1] Get a Splunk Storm account by registering yourself here: https://www.splunkstorm.com

[2] Create a Storm project and obtain the STORM PROJECT ID and STORM ACCESS TOKEN at the STORM REST API page:

Splunk Storm REST API page

[3] Then download the logging library from http://splunk-base.splunk.com/apps/92296/mobile-analytics-with-splunk-storm-ios or  https://github.com/nicholaskeytholeong/splunk-storm-mobile-analytics/blob/master/ios/splunkmobileanalytics.zip

[4] Unzip it and drag the splunkmobileanalytics folder into the project.

[5] Select Relative to Project at Reference Type, then click Add.


[6] In the AppDelegate interface file (AppDelegate.h), import Storm.h, like so:

#import
#import "Storm.h"
// other awesome codes that you are writing

[7] In the AppDelegate implementation file (AppDelegate.m), provide the stormAPIProjectId and stormAPIAccessToken values in the message

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    // Set the view controller as the window's root view controller and display.
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];

    [Storm stormAPIProjectId:@"YOUR_STORM_PROJECT_ID" stormAPIAccessToken:@"YOUR_STORM_ACCESS_TOKEN];

    return YES;
}

[8] You are set! Splunk Storm is now integrated seamlessly into your iOS mobile app!

This is a sample snapshot of what the stacktrace looks like in Storm upon the triggering of any uncaught exceptions from an iPhone emulator:

There are certainly areas to improve. Nevertheless, give it a try and tell us your experience integrating it into your iOS apps – what works and what doesn’t. Feedback and suggestions are very much appreciated! Until next time … stay tuned for more updates.


Viewing all articles
Browse latest Browse all 218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>