havesource / cordova-plugin-push

Register and receive push notifications
MIT License
147 stars 283 forks source link

Add arrow to expand notification preview in notifications bar #263

Closed andreszs closed 4 days ago

andreszs commented 6 months ago

Feature Request

Add an option to show the expand arrow to show the complete notification message payload.

Motivation Behind Feature

Notifications from other apps do show the arrow to expand them.

Feature Description

Check screenshot to see notifications from non-Cordova apps that include the expand arrow:

image

Alternatives or Workarounds

Unknown.

EkambaramE commented 4 months ago

I'm also facing the issue, Some devices not having arrow button in notification, Some devices having the arrow button. Any solution for this issue ? Its happening only on Android devices.

EkambaramE commented 4 months ago

I've resolved the issue. Please make the following changes to ensure it works. I'm unable to commit the changes, so I've attached them here for you.

Screenshot 2024-04-11 at 5 33 31 PM
andreszs commented 4 months ago

Thanks, that worked perfectly.

The text now can be expanded and in older devices such as Android 6 it will be auto expanded by default. On Android 10, Xiaomi collapses the text and the expand arrow is present and working. I've created a PR with your fix.