문제

I am trying to launch the native Foursquare app in iOS7 via the root url scheme: #define FOURSQUARE_URL_SCHEME @"foursquare://"

if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:FOURSQUARE_URL_SCHEME]]) {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:FOURSQUARE_URL_SCHEME]];
}

This launches Foursquare, but it doesn't completely load. A blank view is displayed. If I change the scheme to one of the four support schemes in the client docs, the app loads fine: #define FOURSQUARE_URL_SCHEME @"foursquare://venues/4ab7e57cf964a5205f7b20e3"

This only occurs when a user has previously logged into Foursquare. If attempting on a fresh install, the Foursquare login view successfully displays.

Am I missing something, or is the root scheme no longer supported?

도움이 되었습니까?

해결책

iOS dev @ Foursquare here. While we don't really document support for launching the app without any arguments, we designed the URL handling system to essentially do nothing in response to invalid or no arguments.

Unfortunately, you've hit a regression in our app that causes a modal to open anyway, so this isn't going to work for the time being. It'll soon be fixed in a future version of the app.

If there's something more specific that you're trying to accomplish, feel free to reply to this answer. Thanks!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top