Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Local notifications
Started by joostb Mar 15 2020 12:45 PM

2 replies to this topic
notificationslocal background information
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

joostb

[GLOBAL: userInfoPane.html]
joostb
  • Observer

  • 3 posts
  • Corona SDK

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?

 

 



[TOPIC: post.html]
#2

bulcolimpex

[GLOBAL: userInfoPane.html]
bulcolimpex
  • Observer

  • 18 posts
  • Corona SDK

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.


[TOPIC: post.html]
#3

joostb

[GLOBAL: userInfoPane.html]
joostb
  • Observer

  • 3 posts
  • Corona SDK

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. 




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: notificationslocal, background, information