Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should this authenticate via the tumblr app if installed? #12

Open
nickoneill opened this issue Mar 30, 2013 · 2 comments
Open

Should this authenticate via the tumblr app if installed? #12

nickoneill opened this issue Mar 30, 2013 · 2 comments

Comments

@nickoneill
Copy link

My first authentication attempt was without the app installed and everything worked fine. I figured if I had the app installed it would authenticate using that a la facebook.

I don't know of a way to detect if an app exists on the iOS device or not (i.e. when choosing between launching web or redirecting to an app) so this may not be possible.

Is the current state of authentication web-only?

@irace
Copy link
Contributor

irace commented Mar 30, 2013

Hello, thanks for trying out the SDK.

We do not currently offer authentication through the Tumblr app for iOS, though this is definitely something I would love to enable in the future. Currently OAuth requires going to the web browser and getting kicked back into your application, which should be handled seamlessly for you using the SDK.

You can currently check if the Tumblr app is installed by doing:

if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tumblr://"]]) {
    NSLog(@"Tumblr is installed");
}

This is made easier through a convenience method included in the SDK:

TMTumblrAppClient *client = [TMTumblrAppClient client];

if (![client isAppInstalled]) {
    NSLog(@"Tumblr is installed");
}

This will enable you to do a couple of other things with our app, but no, not authentication.

Also worth noting is that the app client interface is likely to change a bit, as I will likely remove its dependency on a third-party library.

@nickoneill
Copy link
Author

Awesome, then consider this a request for that functionality!

Thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants