如何知道是否收到推送通知(How to know if push notification recieved)
我在我的应用上使用推送通知。 当我的应用程序通过通知打开时,我正在执行一些逻辑; 我正在使用它
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler方法。
我可以知道,当我的应用程序收到通知时,没有选择它吗?
I'm using push notification on my app. I'm executing some logic when my app is opened via notification; I'm using for it
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandlermethod.
Can I know, when my app recieving notification, without oppening it?
最满意答案
当您的应用处于后台或处于非活动状态时,您可以推送本地通知,这样您就可以看到推送内容,不能打开它。
You can push a local notification when your app is in background or inactive, so you can see the push content, no to open it.
更多推荐
发布评论