##Integration Steps
-
Download the SDK from here
-
Drag GrowthAmp.framework and drop in the frameworks group of your project
-
Drag GrowthAmpResources.bundle and drop in the frameworks group of your project
-
Drag GAConfig.plist file and drop it into your project.
-
Added following framework dependancies to your project
- AddressBook.framework
- MessageUI.framework
- SystemConfiguration.framework
- CoreTelephony.framework
-
Add the
-all_loadflag in your projects's Build Settings > Other Linker Flags -
Open the GAConfig.plist file and add your Secret Key
-
Add "#import <GrowthAmp/GrowthAmp.h>" to top of your AppDelegate.m
-
In your AppDelegate.m, add the following code to application:didFinishWithOptions:
[[GALoader sharedInstance] fetchSettings];
- In your AppDelegate.m, add the following code to applicationDidBecomeActive:
[[GALoader sharedInstance] checkAutoLaunch:self.window.rootViewController showSplash:YES];
- Add the following code to invoke the Invitations Controller. You can optionally include the current user's name and email before invoking the Invitations Controller. Be sure to add "#import <GrowthAmp/GrowthAmp.h>" at the top of the file.
// Optionally set user contact information before presenting invitation view controller
[GALoader sharedInstance].userContact = @{@"firstName" : @"",
@"lastName" : @"",
@"email" : @""};
// Invoke the Growth Amp invitation view controller
[[GALoader sharedInstance] presentInvitationsFromController:self
showSplash:YES
sessionType:@"test_button_1"];