I am looking for help with scheduled notification

Ok, 

So I am fixing everything slowly but surely. I saw a bunch of post in the forum about attempt to index field ‘labels’ (a nil value). has this been resolved? If so where can I go to find it?

Have you looked at the “Local Notifications” sample app (in the SampleCoce/Notifications/Local Notifications folder)?

Hi Rob, 

I have been at this thing for months. But in a nutshell, yes I have looked at it. I just can not get it to do what I need it to do. When I pick a dat and time it sends it right away versus on the date and time I selected. 

Does the sample app send right away?

I copied the code into my app to test it since I have it deployed on my phone for real time and yes it sent right away. That’s why I am stuck.

Hi Rob,
To make sure I am not missing anything can you explain where the Local Notifications" sample app (in the SampleCoce/Notifications/Local Notifications folder) you are referencing please? 

/Applications/CoronaSDK/SampleCode/Notifications/LocalNotifications/main.lua

So this is where I am getting lost. I have applications/coronaSDK/SampleCode. But thats it there is no Notifications/LocalNotications/main.lua on mine. COuld you tell me why I do not have this?

Are you on a Mac or PC?

Is there anything in /Applications/CoronaSDK/SampleCode?

I am on a Mac,

But I guess I needed an update.I had to uninstall and re-install corona. Now I see the Local Notifications you mentioned. I will work from there. Thank you. 

Hi again Rob,

Ok so as i said above I had to reinstall corona to see the localnotifcation. I am now getting this error: Scene1.lua:213: unexpected symbol near ‘=’

Which I did not get before reinstalling corona. I can not see what the error is. Can you take a peek?

<code>

– create a widget button (which will loads level1.lua on release)

        playBtn = widget.newButton–{}

                label “Schedule A Text”  

                labelColor  { default={255}, over={120} }

                default “button.png”

                over “button-over.png”

                width = 164, height = 44,

                onRelease onPlayBtnRelease    

                event listener function   

 end             

<\code> 

&nbsp; &nbsp; &nbsp; playBtn = widget.newButton{ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label = "Schedule A Text" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; labelColor = { default={255}, over={120} } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default = "button.png" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; over = "button-over.png" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width = 164, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height = 44, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onRelease = onPlayBtnRelease &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; }

BTW, the new forums uses Square brackets [] around the code tags, not <>

With the old forums you were able to display the code lines. Are you not able to do that with the new forums? Is there something I can look at for the new changes made? since clearly I was building under the old forums.

Im sorry Rob but I am stilling getting the same error which is ironic because I had this working before he change.

Scene1.lua:214: unexpected symbol near ‘=’

FYI line 214 is the line with height.

&nbsp; -- create a widget button (which will loads level1.lua on release) &nbsp; &nbsp; &nbsp; &nbsp; playBtn = widget.newButton{} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label = "Schedule A Text" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; labelColor = { default={255}, over={120} } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default = "button.png" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; over = "button-over.png" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width = 164,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height = 44, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onRelease = onPlayBtnRelease &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event listener function &nbsp;&nbsp; &nbsp;end &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;

  

stack traceback:

    [C]: ?

    [C]: in function ‘error’

    ?: in function ‘gotoScene’

    /Users/babybeanie98/Desktop/FM2/menu.lua:29: in function ‘_onRelease’

    ?: in function ‘?’

    ?: in function <?:1052>

    ?: in function <?:218>

 

 

menu.lua

 

&nbsp; -- forward declarations and other locals local playBtn &nbsp; -- 'onRelease' event listener for playBtn &nbsp; local function onPlayBtnRelease() &nbsp; &nbsp; &nbsp; &nbsp; --print("goto scene") &nbsp; &nbsp; &nbsp; &nbsp; -- go to level1.lua scene &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- &nbsp; end &nbsp; &nbsp; &nbsp; &nbsp; storyboard.gotoScene( "Scene1") &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true &nbsp; &nbsp; -- indicates successful touch end

 

See my comments inline below.

&nbsp; &nbsp; &nbsp; &nbsp; playBtn = widget.newButton{}&nbsp; --\<----- Do not close the curly bracket here.&nbsp; The next few lines are table parameters &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label = "Schedule A Text"&nbsp; --\<------ needs a comma at the end of the line.&nbsp; I probably missed these the first time &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; labelColor = { default={255}, over={120} } --\<----- needs a comma at the end of the line &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default = "button.png"&nbsp; --\<----- needs a comma at the end of the line &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; over = "button-over.png"&nbsp; --\<----- needs a comma at the end of the line &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width = 164,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height = 44, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onRelease = onPlayBtnRelease &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event listener function &nbsp; --\<---- I have no idea what you are trying to do here.&nbsp; remove this line &nbsp;end &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --\<----- I don't know what you are "end"ing here.&nbsp; You now need the closing curly brace to end the widget.newButton definition &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; playBtn = widget.newButton{ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label = "Schedule A Text"&nbsp; , &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; labelColor = { default={255}, over={120} }, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default = "button.png", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; over = "button-over.png", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; width = 164,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; height = 44, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onRelease = onPlayBtnRelease &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }

 

with the fixes this time.

Here is my new error:  Attempt to concatenate global ‘sceneName’ (a nil value)

Since it does not state a location, how do I find where to fix the scene name? and what is stack traceback? All of this is new to me. I apologize. 

stack traceback:

    [C]: ?

    ?: in function ‘gotoScene’

    /Users/babybeanie98/Desktop/FM2/menu.lua:28: in function ‘_onRelease’

    ?: in function ‘?’

    ?: in function <?:1052>

    ?: in function <?:218>

Are you using storyboard?  Does the file: Scene1.lua  have all the required code to make it a storyboard scene? 

I honestly don’t know anymore. I had everything working. All I needed was help with the notification. With this new forum I am completely getting lost and frustrated. My app was pretty much done. Now I am seeming to be back tracking. I have not changed my storyboard from the original one. maybe I need to look at one of the new builds storyboard.