I hav got two ios apps..app1 and app2. Now what i want is to start app2 from app1. this can be done using openUrl method and url schemes. But i want to launch app2 only when app1 goes to background/is suspended.
I am able to launch app2 from AppDelegate's applicationWillEnterForeground...but same code is not working in AppDelegate's applicationDidEnterbackground method or applicationWillResignActive.
Can anyone tell me how to launch app2 from app1 when user leaves app1.
On checking the logs, it shows following:
: Entitlement com.apple.springboard.openurlinbackground required to use BOOL _verifyURLEntitlement(mach_port_t, NSURL , SBSApplicationLaunchFromURLFlags, SBApplication *) from background app : LaunchServices: application launch failed - received error code 1