Show notification on system tray when app is in foregroud
Is there a way to put a notification on tray when onMessageReceived callback is invoked?
@emmanuel128 You can achieve this for Android with a modification to the native code following the Notification Builder API - https://developer.android.com/reference/android/app/Notification.Builder.html
Example - https://github.com/NativeScript/push-plugin/blob/master/native-src/android/app/src/main/java/com/telerik/pushplugin/NotificationBuilder.java#L72
However, depending on your requirements there may be another API which you can use.
I implemented using a local notification plugin, however I would like to show the notification like WhatsApp or text messages show it
