Estimote SDK creates log messages in a lot of places throughout its codebase. By default, SDK logs are disabled and are instantly forgotten. Instead, you may want to collect the logs and send them back to us so we could dig into your issue. To do so, follow these steps:
- Set up ESTLogger class, i.e. in your App Delegate. This will enable remembering logs and will store collected log lines in a file on your device. The following code creates a ".log" file every time the app terminates.
#import "EstimoteSDK/EstimoteSDK.h"
...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Remember all SDK logs
[ESTLogger setCacheLogLevel:ESTLogLevelVerbose];
...
}
...
- (void)applicationWillTerminate:(UIApplication *)application {
// Save collected logs in "est-DATETIME.log" file
[ESTLogger dumpLogCacheToFile];
} - Enable iTunes file sharing for your app by setting "Application supports iTunes file sharing" property to "YES" your app's Info.plist:
- Run your app and try to reproduce the issue.
- Connect your iOS device to a computer with iTunes installed.
- Select your device in iTunes' top bar:
- Select Apps > File Sharing (scroll down if you can't see it) > Your App. Generated files should be visible in the right hand side window (Your App Documents).
- Drag & drop the log files to Finder, and send them back to us.