3
我想在用戶點擊推送通知時不讓應用程序打開。 我該怎麼做?如何在用戶點擊推送通知時禁用打開應用程序
這是我有:
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSDictionary *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
if (notification != NULL){
// write code something like doesn't open app.
}
}