xamarin / XamarinComponents

Plugins for Xamarin
MIT License
1.99k stars 692 forks source link

Localization properties missing for INotificationMessage using Xamarin.Azure.NotificationHubs.Android #1241

Open WillooWisp opened 3 years ago

WillooWisp commented 3 years ago

The title and body properties are part of the received INotificationMessage, but the title_loc_key and body_loc_key are not, so there does not seem to be a way to react to notifications while the app is running and retrieve these strings for manual localization. The localization keys are automatically used and translations looked up from the strings resources for the notification view on Android, but I also need to get the same localization keys into the app for presenting in toasts for example, and both body and body_loc_key cannot be set at the same time since then the body rules out the body_loc_key.

WillooWisp commented 3 years ago

It seems the complete notification "part" is missing from the INotificationMessage interface, only the "data" part is there.