invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 227 forks source link

Text styling in Android for press action is not working as expected in Notifee #1053

Closed AmmuRamasubramanian closed 3 months ago

AmmuRamasubramanian commented 5 months ago

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' }, }, ], }, });

image
github-actions[bot] commented 4 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.