Advanced : Set Reset Counters for Demos

In the case of a demo you probably still want to avoid the spamming effect (when you are near a beacon the proximity can change a lot of times and the rule trigger each time) but you also want to be able to execute the demo several times.

A simple and elegant solution to this problem is to add a button to the application (or any other convenient way) that calls the counters reset method of the Ubudu SDK.

- (BOOL)resetCounters:(NSError **)error;

You call the method like this:

NSError *error = nil;
[[UbuduSDK sharedInstance] resetCounters:&error];
// Handle error if not nil