处理远程通知 [英] Handling Remote Notifications

查看:253
本文介绍了处理远程通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读了如何处理对开发者苹果直营店远程通知。我的问题有两个:
什么是短语的跨pretation

I was reading how handling remote notification on developer apple guide. My questions are two: what is the interpretation of the phrase

当应用程序没有运行时,通知被传递
  前台

The notification is delivered when the application isn’t running in the foreground

是不是在前台运行覆盖的背景和不运行或在后台状态而已。基于帧间pretation,下面的句子:

isn’t running in the foreground covers background and not running or in the background state just. Based on the interpretation, the following sentence:

应用程序图标被点击运行iOS的设备上,应用程序调用相同的方法,但配料没有关于通知信息。

the application icon is tapped on a device running iOS, the application calls the same method, but furnishes no information about the notification.

有不同的感觉。

第二个问题是关于在那里我得到两个连续的远程通知的情况:当我在方法打开应用程序

The second question concerns the situation where I get two consecutive remote notifications: When I open the app in the method

应用程序中:didFinishLaunchingWithOptions:
  要么
  应用:didReceiveRemoteNotification:

application:didFinishLaunchingWithOptions: or application:didReceiveRemoteNotification:

我对所有通知或只是信息的最后?

I have information on all notifications or just the last?

推荐答案


  • 如果您的应用程序正在运行,无论是在后台挂起状态或前景,这将让在收到通知称为永远是应用程序的方法:didReceiveRemoteNotification:

  • 如果收到通知后,你的应用程序没有运行在所有的,一经推出,就会触发应用中:didFinishLaunchingWithOptions:和选项都将包含有关远程通知信息的非空对象

  • 据我所知,只有最后通知的信息是可用的。

这篇关于处理远程通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆