CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
Azot is a mobile analysis SDK that runs directly inside phones or tablets. This repository holds the framework for the iOS version of Azot written in Objective-C.
NOTE: 'Supported' means that the library has been tested with this version. 'Compatible' means that the library should work on this OS version (i.e. it doesn't rely on any unavailable SDK features) but is no longer being tested for compatibility.
Azot uses threading internally to avoid blocking the UI, but none of the Azot external interfaces are thread safe and you should not call any methods on Azot except from the main thread.
Use CocoaPods by adding this line to your podfile :
pod 'Azot'
Or
Install Azot manually into your app by dragging the Azot.framework into your project.
Add those native dependencies to your project:
Then add the compile flags following those steps:
Add the following code to your appDelegate :
#import <Azot/Azot.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Azot start:@"AZOT_APP_TOKEN"];
return YES;
}
Import <Azot/Azot.h> in your bridging header.
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
Azot.start("AZOT_APP_TOKEN")
return true
}
NOTE: To get your "AZOT_APP_TOKEN", register here and create an app.
The SDK does not generate videos on simulator.
If you are running from Xcode do not stop the app, press the "home" button in order to upload datas.
The confidentiality level of screenshots and vidéos have three levels:
Confidentiality level | Hidden elements |
---|---|
AZConfidentialityMedium | Keyboard + TextFields + Capture Video PreviewLayer |
AZConfidentialityHigh | AZConfidentialityMedium + Images + Labels |
The default confidentiality level is medium.
objC
+ (void)start:(NSString*)azotAppToken;
swift
static func start(azotAppToken:String)
Start analysis in the app with video and medium confidentiality level. Call it in your app delegate. It is the only mandatory function that has to be used.
objC
+ (void)startPage:(NSString *)pageId
swift
static func startPage(pageId:String)
Start analysis of a page. Call it in your controller viewDidAppear. Tips: Use this function to analyse a “page”, understood as what the user can see.
objC
+ (void)stopPage:(NSString *)pageId
swift
static func stopPage(pageId:String)
Stop a page analysis. Call it in your controller viewDidDisapear.
objC
+ (void)event:(NSString *)eventId
swift
static func event(eventId:String)
Track events you care about in your app.
objC
+ (void)feedback:(NSString*)message forCategory:(NSString*)category;
swift
static func feedback(message:String, category:String)
This function is used to collect user feedbacks. The feedbacks will be saved in the session report. It is the one used in our feedback feature.
objC
+ (void)showFeedbackView;
swift
static func showFeedbackView()
Shows the Azot feedback page. This function can be used in a feedback button action.
OBJC_EXTERN void AZLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
This function prints and saves your logs, simply use AZLog instead of NSLog. (Only available with ObjectiveC)
You can acces sdk parameters through your dashboard on https://board.azot.io
Activate or desactivate the "shake for feedback" functionality. (Activated by default)
Activate or desactivate session recording. (Activated by default)
Activate or desactivate location tracking. (Activated by default)
If activated only session from apps downloaded through the Appstore will be retrieved. (Activated by default)
If activated datas will only be sent when the user is connected to wifi. (Desactivated by default)
If activated pages will be automatically tracked. (Activated by default)
Allows you to set a date range in which the SDK will be on. (Desactivated by default)
Activate or desactivate the video. (Desactivated by default)
If activated videos will only be sent when the user is connected to wifi. (Activated by default)
Set the video confidentiality level. (MEDIUM by default)
Allows you to set a date range in which the Video will be on. (Desactivated by default)
Activate or Desactivate the "Shake for feedback" gesture. (Activated by default)
Define the question you want us to ask your users on the top of the feedback page.
Define different feedback categories. (Max. 5)