Sensitive Data – Clicktale for Apps

Below you can find how to secure and block PII from different parts of your application.

 

Securing UITextField

Clicktale for Apps SDK automatically hides “Secure UITextField” with black frame in client. It is not possible to access this data as it is automatically blocked. No manual actions are required for ‘Secure UITextField’.

 

Privacy for Any UITextField

Clicktale for Apps SDK automatically hides “Secure UITextField” with black frame in client. So, you can’t have this data and you can’t watch it.
If you need to apply same privacy to normal UITextFields ( example : credit card input for purchase ), Clicktale for Apps SDK has two methods for that :

-(void)startPrivacyWithUIControls:(NSArray *)controls;

-(void)stopPrivacy;


Using one of these two methods 

Start privacy in -(void)viewWillAppear:(BOOL)animated and stop it in -(void)viewDidDisappear:(BOOL)animated

 

Objective-C

-(void)viewWillAppear:(BOOL)animated
{
[[FlightRecorder sharedInstance] startPrivacyWithUIControls:[NSArray arrayWithObjects:self.myPrivateTextField, nil]];
[super viewWillAppear:animated];
}

-(void)viewDidDisappear:(BOOL)animated
{
[[FlightRecorder sharedInstance] stopPrivacy];
[super viewDidDisappear:animated];
}
Swift
override func viewWillAppear(animated: Bool) {
FlightRecorder.sharedInstance().startPrivacyWithUIControls([textFieldLog])
}

override func viewDidDisappear(animated: Bool) {

FlightRecorder.sharedInstance().stopPrivacy()
}

 

Privacy for Any UIView

If you need to apply privacy to a UIView ( example : credit card input for purchase, full screen ), Clicktale for Apps SDK has two methods for that :

-(void)startPrivacyForViews:(NSArray *)views;
-(void)stopPrivacyForViews;

 

Using one of these two methods 

Start privacy in -(void)viewWillAppear:(BOOL)animated and stop it in -(void)viewDidDisappear:(BOOL)animated

 

Objective-C

-(void)viewWillAppear:(BOOL)animated
{
[[FlightRecorder sharedInstance] startPrivacyForViews:[NSArray arrayWithObjects:self.viewPrivate, nil]];
[super viewWillAppear:animated];
}

-(void)viewDidDisappear:(BOOL)animated
{
[[FlightRecorder sharedInstance] stopPrivacyForViews];
[super viewDidDisappear:animated];
}

 

Swift

override func viewWillAppear(animated: Bool) {

FlightRecorder.sharedInstance().startPrivacyForViews([viewPrivate])
}
override func viewDidDisappear(animated: Bool) {

FlightRecorder.sharedInstance().stopPrivacyForViews()
}