The reset function resets the Mapp Intelligence Singleton to the default values:

  • It deletes the current everID (eid) used in the application to identify the user
  • It deletes the account ID
  • It deletes the trackDomain
  • It creates a new user by resetting the one parameter to 0
  • It opens a new session by resetting the fns parameter to 1

This method can help debug and test your configuration during SDK implementation, but shouldn't be used in production. If used in production, errors and issues may arise.

Method

MappIntelligence.shared()?.reset()
JAVA

Example

import UIKit
import MappIntelligence
 
class ViewController: UIViewController {
 
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }
 
    @IBAction func ResetTracking(_ sender: Any) {
        MappIntelligence.shared()?.reset()
    }
}
JAVA
#import "ViewController.h"
#import "MappIntelligence.h"
 
@interface ViewController ()
 
@end
 
@implementation ViewController
 
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (IBAction)ResetTracking:(id)sender {
    [[MappIntelligence shared] reset];
}
 
 
@end
JAVA