TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Commercial |
ReleasedLast Release | Nov 2016 |
Maintained by RAHUL CK.
AppMonitor is a dynamic framework for ios which moniters your application for the app lunch count and spent time by the user.
You can install AppMonitor to your projects in two ways
For Manual integration follow below steps
You are done.
SDK should be initialised before invoking any APIs available in the framewok.
#import <AppMonitor/AppMonitor.h>
[AppMonitor initializeWithAPIKey:<YOUR_API_KEY>];
You can post events with name and attributes.
[AppMonitor postEvent:@"Test" withAttributes:@[@"arg1",@"arg2"]];
This API will returns the app lunch count till that time . It will be returning an NSInteger
.
NSInteger appLaunchCount = [AppMonitor appLaunchCount]
This API will returns the spent time of user in the application till that time . It will be returning an NSTimeInterval
.
NSTimeInterval appSpentTime = [AppMonitor appSpentTime];
This API can be used to change the log level from deafult AppMonitorLogLevelMinimal.
[AppMonitor setLogLevel:AppMonitorLogLevelAllLogs];
1.After manual integration if your are getting below error
dyld: Library not loaded: @rpath/AppMonitor.framework/AppMonitor Referenced from: /Users/rahul/Library/Developer/CoreSimulator/Devices/2BDC82C0-4F17-4CEB-A5B7-363EC49DB4FE/data/Containers/Bundle/Application/476ABE1D-7E7C-41D5-BEAA-EAE3B5623E23/Test.app/Test Reason: image not found
2.If you are getting Invalid API key error
2016-11-09 20:20:50.762 Test[2851:1610829] AppMonitor::INVALID API KEY 2016-11-09 20:20:50.867 Test[2851:1610829] *** Terminating app due to uncaught exception of class'__NSCFConstantString' libc++abi.dylib: terminating with uncaught exception of type __NSCFConstantString (lldb)
3.If you are SDK not initialied error
2016-11-09 20:33:13.769 SampleApp[3142:1671162] AppMonitor::SDK NOT INIATIALIZED
Check the license file