invertase / react-native-notifee

Moved to https://github.com/invertase/notifee
https://invertase.io/blog/open-sourcing-notifee
Other
465 stars 31 forks source link

AndroidStyle.BIGTEXT unexpanded at first #317

Closed Minishlink closed 3 years ago

Minishlink commented 3 years ago

Hi,

When setting a style AndroidStyle.BIGTEXT, would that be possible to make the notification unexpanded by default? Currently it always shows as expanded at first. Is it something that we could implement in this library or does it depend on Android?

Thanks

helenaford commented 3 years ago

hey, good question. There's no official Android API to do so, I think that's probably been a conscious choice to let the user have control over it rather than developers. But, certain channel settings such as setting importance to high may encourage the device to auto expand the notification (would have to test this).

helenaford commented 3 years ago

@Minishlink if you need unexpanded by default (realised I read it as the other way), my answer still applies - there's no control over this I believe. It may also depend if your notification is first in the tray or not. I'm going to close this as there's nothing we can do, unfortunately.

Screenshot 2021-06-01 at 15 45 47
Minishlink commented 3 years ago

@helenaford I see, thanks for looking into it!