Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/187.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
FCM通知能否在Android上使用“复数”作为可本地化的标题或正文?_Android_Firebase_Push Notification_Firebase Cloud Messaging - Fatal编程技术网

FCM通知能否在Android上使用“复数”作为可本地化的标题或正文?

FCM通知能否在Android上使用“复数”作为可本地化的标题或正文?,android,firebase,push-notification,firebase-cloud-messaging,Android,Firebase,Push Notification,Firebase Cloud Messaging,Firebase负载文档显示可本地化的标题 标题\位置\键可选,字符串 应用程序字符串资源中标题字符串的键,用于 将标题文本本地化为用户的当前本地化 有人知道使用复数资源是否有效吗?如果没有字符串资源,只可能它会尝试复数(getQuantityString)使用Firebase libs版本10.2.6运行的测试表明title\u loc\u key或body\u loc\u key指定的资源必须是字符串资源复数资源 在我的测试中,当title\u loc\u key或body\u loc\u

Firebase负载文档显示可本地化的标题

标题\位置\键可选,字符串

应用程序字符串资源中标题字符串的键,用于 将标题文本本地化为用户的当前本地化


有人知道使用
复数
资源是否有效吗?如果没有
字符串
资源,只可能它会尝试
复数
(getQuantityString)

使用Firebase libs版本10.2.6运行的测试表明
title\u loc\u key
body\u loc\u key
指定的资源必须是
字符串
资源<收到消息时,不会搜索代码>复数
资源

在我的测试中,当
title\u loc\u key
body\u loc\u key
的消息中提供了
复数标记时,会记录一条警告消息:

W/FirebaseMessaging: title_loc_key resource not found: myPluralsTitle Default value will be used

W/FirebaseMessaging: body_loc_key resource not found: myPluralsBody Default value will be used

使用Firebase libs版本10.2.6运行的测试表明,由
title\u loc\u key
body\u loc\u key
指定的资源必须是
字符串
资源<收到消息时,不会搜索代码>复数
资源

在我的测试中,当
title\u loc\u key
body\u loc\u key
的消息中提供了
复数标记时,会记录一条警告消息:

W/FirebaseMessaging: title_loc_key resource not found: myPluralsTitle Default value will be used

W/FirebaseMessaging: body_loc_key resource not found: myPluralsBody Default value will be used

好的,现在是使用数据消息的另一个原因。好的,现在是使用数据消息的另一个原因。