notifications.scheduleNotification command

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
 

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.

seems to be an error somewhere

please help

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.

seems to be an error somewhere

please help