简体   繁体   中英

Push Notification dont pop up

I created an Android App with Android Studio. Now I want to do push notifications with Google Firebase.

I have everything set up.

Everything is working well.

This is the problem:

When I send a cloud message to my device as a test, it works. However, when I send a cloud message normally, not as a test, nothing happened.

It does work with Android Studio.

It makes no difference if the app is open or closed.

Why does it not work?

If use Android upper Oreo. Need setup channel id and configurate him (sound, priority) https://developer.android.com/training/notify-user/channels

and after in firebase message add channel id.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM