远程通知回调通话过程中不会被调用 [英] Remote Notification callback not being called during phone call
问题描述
我已经创建了一个应用程序中获取后台code被写入在接收到推送通知。我已启用的的.plist后台模式,内容可用的键值设置为1推送通知的有效载荷,注册推送通知,并使用委托
I have created an app in which background fetch code is written on receiving push notification. I have enabled the background mode in .plist, content-available key is set to 1 in push notification payload, registered for push notification and using delegate
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler
现在,当我的应用程序是在后台,我接到一个电话。
通话过程中,我收到了我的应用程序推送通知。结果
在通话过程中收到推送通知,推送通知委托不获取调用。
Now when my app is in background, I receive a call.
During call, I receive a push notification for my app.
On receiving the push notification during a call, push notification delegate is not getting called.
推荐答案
我电话手机芯片被用于语音传输过程中猜测。数据传输是为芯片做可能影响电池的寿命显着的额外工作。这是在电话更受苹果意识的决定,使之更无声的通知。
I guess during phone call cellular chip is being used for voice transmission. Data transmission is extra work for the chip to do which could affect battery life dramatically. This is a more a conscious decision by Apple to make it more of a silent notification during phone calls.
这篇关于远程通知回调通话过程中不会被调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!