jpush-react-native icon indicating copy to clipboard operation
jpush-react-native copied to clipboard

[Android] How to prevent push notification showing up while the app is active?

Open sunkibaek opened this issue 10 years ago • 4 comments

In my app, it shows notification even when the app is active. How do I prevent this so that I show notification only when the app is inactive or background in Android?

Thanks!

sunkibaek avatar Nov 07 '16 00:11 sunkibaek

Yeah, your question is a good advice, will try to resolve this problem in next release.

KenChoi1992 avatar Nov 07 '16 02:11 KenChoi1992

@KenChoi1992 希望下个版本尽快出来,很头疼这个问题,另外还麻烦看下 #69

cashely avatar Nov 15 '16 10:11 cashely

@sunkibaek @cashely Since you receive a notification, it was already showed in notification bar, unless you send custom message, and defined the behaviour when receiving custom message, either send notification or don't send when app is running in foreground.

KenChoi1992 avatar Dec 13 '16 10:12 KenChoi1992

sorry to bump such old issue, but i still struggle with this, any clue @KenChoi1992 ?

putuyoga avatar Mar 25 '19 08:03 putuyoga