Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

notifications.scheduleNotification command
Started by akhtarx5 Feb 14 2019 02:31 AM

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

akhtarx5

[GLOBAL: userInfoPane.html]
akhtarx5
  • Enthusiast

  • 65 posts
  • Corona SDK

Hi

im testing the scheduleNotification (my zip attached)

there a 2 notifications
notification1 plays a short sound
notification2 plays a long  sound

i need to keep these notifications in a function so they can be called later in code


there are 4 buttons

button1 starts notification1
button2 starts notification2

button3 stops notification1
button4 stops notification2

button4 is supposed to cancel notification2,
it cancels/stops notification2 sometimes and other times nothing happens,

button3 seems to cancel/stop both notifications

how can  button3 and button4 be corrected so that notification1 and notification2 cancels/stops
correctly

ive tried also these
notifications.cancelNotification(1)    
notifications.cancelNotification(2)   

notifications.cancelNotification(onNotificationfajrshort)
notifications.cancelNotification(onNotificationfajrlong)

please help
 



[TOPIC: post.html]
#2

anaqim

[GLOBAL: userInfoPane.html]
anaqim
  • Contributor

  • 762 posts
  • Corona SDK

Hi,

 

Nobody here will teach you how to code.

 

Corona is well documented so you should have no problem studying on your own, but do you have to do it on your own, to get the basics, before moving on with your projects.



[TOPIC: post.html]
#3

akhtarx5

[GLOBAL: userInfoPane.html]
akhtarx5
  • Enthusiast

  • 65 posts
  • Corona SDK

seems to be an error somewhere

 

please help




[topic_controls]
[/topic_controls]