Skip to content
This repository was archived by the owner on Feb 7, 2019. It is now read-only.
This repository was 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

Description

@emmanuel128

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

Activity

  1. AntonDobrev commented on Jun 9, 2017

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

  2. emmanuel128 commented on Jun 9, 2017

    @emmanuel128
    Author

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

  3. emmanuel128 commented on Jun 9, 2017

    @emmanuel128
    Author

    19021970_1726215104059236_1472669433_n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions