Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titlePlease note!

At the application start the Spring object has to be instanced one-time and to be used for the whole life cycle of the application

 

 

Code Block
languagecpp
/*
 * Importing SpringMobile
 */
#import "Spring.h"

/*
 * Providing entity
 */
Spring *spring;

/*
 * Generating SpringMobile entity with site id and
 * application name
 */
spring = [[Spring alloc] initWithSiteAndApplication:@"<site>" application:@"myApplication1"];

/*
* Sending the start of the application to the measurement system */
NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:APP_STARTED,VAR_ACTION,nil];
[spring commit:dict];
...

// OR
/*
 * Sending the action spring.BACKGROUND
 */
NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:APP_BACKGROUND,VAR_ACTION,nil];
[spring commit:dict];

...

Generally for spring measuring purpose, only 3 modifications need to be applied in your App, if a Panel App is used in your PanelApp market.  (This blog may assist your implementation):

Register the url Scheme accordingly,  we have prepared different url Schemes for our clients (please check this with our Customer Support Team). 

In order to register your URL Scheme into your iOS PanelApp, you need to edit the Info.plist file under the "Supporting Files" in your project folder, two ways:

...