I want to keep the app from opening when user taps a push notification. How can I do this?
Here's what I have:
- (BOOL)application:(UIApplication *)application willFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSDictionary *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];
if (notification != NULL){
// write code something like doesn't open app.
}
}
It is not possible.We get control at our side after launching the app.
@dheeraj-kumar is right.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With