Local notifications

I need to send notifications from my application to the user. 

I want to create a function in my code to send a notification to the user immediately. Therefore, I don’t want to schedule this notification. The notification only needs to show some information. If the user presses the notification, I want my application to open (I don’t have to get a function call for it).

This tutorial: https://docs.coronalabs.com/guide/events/appNotification/index.html seems to only explain how you can create server based notifications or notifications based on a schedule.

Should I implement this by scheduling a notification directly?

Or is there a more direct way of sending notifications?

Could someone point me to the right direction? Or show some example code where this is used?

Maybe this will be useful for you :

https://github.com/KrDPNsk/simple_toast

Simple example for Toast Notification without any plugins for Corona SDK.

Good luck.

I want to create notifications that occur at the status bar. 

My goal is to send a notification when a condition occurs in the background of my application. I first want to try to get a notification in the status bar when a button is pressed in my application. I want this notification to be send locally. Therefore, there won’t be a server that manages these notifications. 

Maybe this will be useful for you :

https://github.com/KrDPNsk/simple_toast

Simple example for Toast Notification without any plugins for Corona SDK.

Good luck.

I want to create notifications that occur at the status bar. 

My goal is to send a notification when a condition occurs in the background of my application. I first want to try to get a notification in the status bar when a button is pressed in my application. I want this notification to be send locally. Therefore, there won’t be a server that manages these notifications.