iOS Native Integration
Before you start: MicroBrew supports iOS version 9.0 and above.
1: Import MicroBrew iOS Framework file, "MicroBrew.xcframework", to your project
To import the framework file go to File -> Add Files to "project" and select the file needed, "MicroBrew.xcframework".
Make sure to drag the framework to your Targets "Frameworks, Libraries, and Embedded Content" in the General tab, then set the Embed to "Embed & Sign".
Important: Initialize MicroBrew. MicroBrew SDK does not support offline event caching.
2: Go to your MicroBrew Dashboard
Go to your profile on the MicroBrew dashboard and find your API Key listed on the dashboard.
3: Input user email & API key
Inside your code, start initializing MicroBrew have your email and API Key on hand.
4: Manually initialize MicroBrew
Whenever using the ByteBrew Library make sure to import the "MicroBrew" framework.
@import MicroBrew;
...
// Initialize MicroBrew
[MicroAPI InitWithAPIKeyAndEmail:@"API_KEY" Email:@"EMAIL"];
//Track when a initialization or authentication state changes
[MicroAPI InitializationStateChanged:^(BOOL initialized) {
if(initialized) {
[self GetData];
}
}];