[🐛] Bug Report Title - Incorrect Localization of Push Notifications in Background Mode #7992
Closed
3 of 10 tasks
Labels
platform: ios
plugin: messaging
FCM only - ( messaging() ) - do not use for Notifications
resolution: solution-provided
type: bug
New bug report
Issue
Description:
The Firebase Cloud Messaging (FCM) is used for sending notifications to devices. Although the
title-loc-key
andLocalizable.strings
are used for localizing the content of push notifications, there is an inconsistency with the language displayedActual
When the device's language is set to English and the app's preferred language is set to Japanese, the push notifications display in English instead of Japanese while the app is in background mode. The notifications only display in Japanese when the device's language is changed to Japanese.
Expected Behaviour:
The push notifications should display in the app's preferred language, which is Japanese in this case, regardless of the device's default language setting. This should hold even when the app is running in the background, ensuring a consistent user experience in line with the selected in-app language preferences.
Reproduction:
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:iOS
Click To Expand
ios/Podfile
:AppDelegate.m
:Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.kt
:AndroidManifest.xml
:Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:20.4.0
Firebase
module(s) you're using that has the issue:Messaging
TypeScript
?Y
&5.0.4
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: