Skip to content
Advertisement

My notification just working on vitual device, not working on real phone

The notification did well on virtual device but not on real phone. Did I need to have any user permission? I have no idea to solve this problem ๐Ÿ˜€

here is my code

JavaScript

Advertisement

Answer

In real phone, you have to check android version. From Oreo, it changed. So you have to add logic like this.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement