50ButtonsEach / fliclib-ios

The fliclib framework for iOS
35 stars 5 forks source link

didGrabFlicButton never called #19

Closed madisonscott closed 8 years ago

madisonscott commented 8 years ago

Hi all, after following both the iOS integration tutorial and the example Objective C project, I still cannot get my app to grab the button. I'm taken to the Flic app and can select the button and am properly redirected back to my app, but the didGrabFlicButton method is never called. Has anyone experienced this issue before and would know anything about why it might be occurring?

madisonscott commented 8 years ago

Had to put the openUrl method in the pre-existing AppDelegate, nevermind!

arlomedia commented 6 years ago

To be clear, it looks like didGrabFlicButton is not called automatically. You have to call it yourself from openURL -- something like this:

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
    if ([url.absoluteString containsString:@"flicWasGrabbed"]) {
        return [[SCLFlicManager sharedManager] handleOpenURL:url];
    }
}