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

navigateToURLInBackground returns NSURLErrorDomain - code 1002 #30

Closed
Abbabon opened this issue May 4, 2014 · 1 comment
Closed

navigateToURLInBackground returns NSURLErrorDomain - code 1002 #30

Abbabon opened this issue May 4, 2014 · 1 comment

Comments

@Abbabon
Copy link

Abbabon commented May 4, 2014

I am using the following code to open the Facebook app:

...
NSString *testUrl = @"fb://";
NSURL *url = [[NSURL alloc] initWithString:testUrl];
[[BFAppLinkNavigation navigateToURLInBackground:url] continueWithBlock:^id(BFTask *task) {
        NSLog(@"yay!");
         return 0;
}];
...

and what I get is an error (generated in BFWebViewAppLinkResolver.m) - NSURLErrorDomain - code 1002.

When I use [[UIApplication sharedApplication] openURL:url] on the same URL it works just fine..

Please help me guys :)
I want to use Bolts to interact with Facebook app.

@mingflifb
Copy link
Contributor

App Links are keyed off of http/https urls, so the url you create must be an internet-accessible http/https url. Facebook does not currently publish app link tags, and as such are not supported by BFAppLinkNavigation.

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

No branches or pull requests

3 participants