如果程序包不包含的&QUOT的关键; LOC-Key与QUOT;在推送通知收到? [英] What if app bundle does not contain a key for the "loc-key" received in push notification?

查看:164
本文介绍了如果程序包不包含的&QUOT的关键; LOC-Key与QUOT;在推送通知收到?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据<一个href=\"http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html\">apple文档,通知有效载荷可以携带LOC键键标识的应用程序包的本地化字符串键。会发生什么,如果有会在应用程序的包没有这样的键(例如,当有在服务器上的更新和新的通知类型添加)?

According to apple documentation, notification payload can carry "loc-key" key which identifies localization string key in app bundle. What will happen if there will be no such key in app's bundle (for instance, when there were updates on the server and new notification types were added)?

推荐答案

您将最有可能获得一个NSBundle localizedStringForKey的默认行为:值:表:方法,该方法返回时,值无法找到关键

You will most likely get the default behaviour of NSBundle's localizedStringForKey:value:table: method which is to return the key when the value can not be found.

这篇关于如果程序包不包含的&QUOT的关键; LOC-Key与QUOT;在推送通知收到?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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