Closed lowminchien closed 9 months ago
@lowminchien the Android system allows to change only the Content text dynamically for this type of notification. we will think about how to provide the setting of this text on the client side. the text on the buttons is default and it is configured in the string resources, you can try to override these string resources in your Android project:
<string name="call_notification_decline_action">Your Decline text</string>
<string name="call_notification_answer_video_action">Your Accept video text</string>
<string name="call_notification_answer_action">Your Accept audio text</string>
but I'm not sure it will work, I didn't check it
@TatankaConCube Unfortunately, despite placing the strings.xml file under the values folder, it didn't function as expected.
I'm quite surprised that the resource override method didn't work, especially after checking the code in NotificationCompat at line 5128:
return mAnswerIntent == null ? null : makeAction(
mIsVideo ? videoIcon : icon,
mIsVideo ? R.string.call_notification_answer_video_action
: R.string.call_notification_answer_action,
mAnswerButtonColor, R.color.call_notification_answer_color,
mAnswerIntent);
I think there might be something I have overlooked.
Thanks for sharing the possible solution. I will leave this open for now since I believe we are nearing a resolution.
also, pay attention, you should place these strings for all localisations you used on your device. I mean the case if you add to the universal resources folder but the device used not the eng localization, the system will use integrated string without overriding. Can it be your case? please check, the overriding of resources should work
no activity for a long time. closing...
Hello,
Could we have the text customisation for the notifications? This feature would enable us to tailor the text to better fit our specific context. Thanks.