Skip to content

YoApp/FlashPollsSDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlashPollsSDK

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

FlashPollsSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "FlashPollsSDK"

In your AppDelegate:

#import <FlashPolls/FlashPollsSDK.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [FlashPollsSDK initWithAppToken:@"<your_app_token>" launchOptions:launchOptions];
    return YES;
}

If your app has already asked the user for push notifications permission than your all done! Otherwise enter this line when you are ready to ask the user use this line:

[FlashPollsSDK askUserForPushPermissions];