# create notification with local notification

**URL:** <https://forums.fusetools.com/t/create-notification-with-local-notification/3255>\
**Category:** General\
**Created:** [January 31, 2018, 9:43am UTC](https://forums.fusetools.com/t/create-notification-with-local-notification/3255 "2018-01-31T09:43:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahmoud\_Sohail](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Mahmoud\_Sohail](https://forums.fusetools.com/u/Mahmoud_Sohail)\
**Post date:** [January 31, 2018, 9:43am UTC](https://forums.fusetools.com/t/create-notification-with-local-notification/3255/1 "2018-01-31T09:43:20Z")

</div>

I’m working on a new application, and this app has a notification service to connect a delivery of goods or something similar.  
I have a problem that when used Localy Notifications  
[https://www.fusetools.com/docs/fuse/localnotifications/localnotify](https://www.fusetools.com/docs/fuse/localnotifications/localnotify)

i called the function send now but when the notification received in ( receivedMessage ) the notification does not appear at the top of the screen, only the notification text is printed in the console and is not displayed at the top of the screen as in the applications we see.

this is my code and the result screen :

``  
`

```
    <JavaScript> 
    var LocalNotify = require("FuseJS/LocalNotifications");
    var Observable = require("FuseJS/Observable");
    var resultSendNow = Observable("");
    var resultOnReceivedMessage = Observable("");
    LocalNotify.on("receivedMessage", function(payload) {
    	resultOnReceivedMessage.value = "Received Local Notification: " + payload;
        console.log("Received Local Notification: " + payload);
   
    });

    function sendLater() {
        LocalNotify.later(4, "Finally!", "4 seconds is a long time", "hmm?", true);
    }

    function sendNow() {
    	resultSendNow.value = "sendNow Called";
        LocalNotify.now("Boom!", "Just like that", "payload", true);
    }
   module.exports = {
        sendNow: sendNow,
        sendLater: sendLater,
        resultSendNow: resultSendNow,
        resultOnReceivedMessage: resultOnReceivedMessage,
    }; 
   </JavaScript>
   <DockPanel>
    <TopFrameBackground DockPanel.Dock="Top" />
    <ScrollView>
        <StackPanel>
            <Button Clicked="{sendNow}" Text="Send notification now" Height="60"/>
            <Button Clicked="{sendLater}" Text="Send notification in 4 seconds" Height="60"/>
            <Text Value="{resultSendNow}" />
            <Text Value=" r= {resultOnReceivedMessage}" />
        </StackPanel>
    </ScrollView>
    <BottomBarBackground DockPanel.Dock="Bottom" />
</DockPanel>

```

`  
This is the result screen : [https://imgur.com/a/IKSdU](https://imgur.com/a/IKSdU)

but what i need is like this :  
[![](https://docs.urbanairship.com/images/default-factory-notification.png) ](https://docs.urbanairship.com/images/default-factory-notification.png)

can any one help me ?

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [January 31, 2018, 10:01am UTC](https://forums.fusetools.com/t/create-notification-with-local-notification/3255/2 "2018-01-31T10:01:34Z")

</div>

[The docs](https://www.fusetools.com/docs/fuse/localnotifications/localnotify#how-it-works) state, specifically:

`One last thing to note about both now and later, is that they will not deliver a notification to the user if the app is open. Instead, they will trigger the receivedMessage event silently.`

---

<div class="post-metadata">

**Author:** ![Mahmoud\_Sohail](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Mahmoud\_Sohail](https://forums.fusetools.com/u/Mahmoud_Sohail)\
**Post date:** [January 31, 2018, 10:02am UTC](https://forums.fusetools.com/t/create-notification-with-local-notification/3255/3 "2018-01-31T10:02:52Z")

</div>

yes i understood now , thank u i am sorry 🙂
