IOS: if the application does not work in the background, an openURL call launches the application at startup

I am trying to launch my application in a specific form from an external URL (from an email / webpage using a link myapp://sale/1234).

If the application is not already running in the background, the application starts at startup.

If the application runs in the background, it application:openURL:sourceApplication:annotation:is called perfectly.

Please help me.

+3
source share
2 answers

, coredata manageObjectContext, openUrl. URL-, , openUrl ObjectContext. OpenUrls . ... .

0

,

if([[UIApplication sharedApplication] canOpenURL:url]){            
        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
            [[UIApplication sharedApplication] openURL:url];
        });
    }
+2

All Articles