Replies: 1 comment 1 reply
-
Hello @GuyDev1, Did you succeeded ? Thank you ! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
So I'm using Flutter_Localization in order to parse the app's texts in multiple languages.
When it comes to notifications, I could use it as well (by defining constants and handling the translation in app (using onMessage for example to parse it).
However, onBackgroundMessage requires passing a function which is outside the scope of the class / a static method.
Therefore I can't see how I could call the Localization instance (which requires a context) in order to translate the given data.
Any ideas would be much appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions