Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Show notification on system tray when app is in foregroud #128

Open
emmanuel128 opened this issue Jun 8, 2017 · 3 comments
Open

Show notification on system tray when app is in foregroud #128

emmanuel128 opened this issue Jun 8, 2017 · 3 comments
Labels

Comments

@emmanuel128
Copy link

Is there a way to put a notification on tray when onMessageReceived callback is invoked?

@AntonDobrev
Copy link
Contributor

@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.

@emmanuel128
Copy link
Author

I implemented using a local notification plugin, however I would like to show the notification like WhatsApp or text messages show it

@emmanuel128
Copy link
Author

19021970_1726215104059236_1472669433_n

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants