Closed AmmuRamasubramanian closed 3 months ago
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
When attempting to apply color and enclose the text within a
tag as referenced in the documentation (https://notifee.app/react-native/docs/android/appearance#text-styling), the text gets truncated.
Could someone please advise on how to correctly apply text styling, particularly for actions, within Notifee for Android?
const channelId = await notifee.createChannel({ id: 'call', name: 'call Channel', sound:
${notificationObj?.ringtone_sound}_ringtone
, importance: AndroidImportance.HIGH, visibility: AndroidVisibility.PUBLIC, vibration: true });await notifee.displayNotification({ title: 'Incoming Call', body:
${messageData?.chat_name} is calling you!
, id:${messageData?.chat_id}
, android: { category: AndroidCategory.CALL, importance: AndroidImportance.HIGH, channelId, smallIcon: "ic_notification", largeIcon:${isS3Url(imageUrl) ? imageUrl :
file://${imagePath}}
, circularLargeIcon: true, ongoing: true, loopSound: true, sound:${notificationObj?.ringtone_sound}_ringtone
, autoCancel: false, actions: [ { title: 'Attend', pressAction: { id: 'attend' }, }, { title: 'Cancel
', pressAction: { id: 'cancel' }, }, ], }, });