Local notifications failing

I’m trying to get notifications to work and they appear to be getting scheduled as my badge icon changes at the right time but I don’t get a popup at all.  I have my iPhone connected to my my Mac when I’m testing and when I look at the console log in xcode right when the notification should fire, I see this message:

BBServer: No data provider found for section <MyAppName>. Ignoring bulletin

where MyAppName is the name of my app

A couple of thoughts I had: 1) I’m using custom URLs but I removed those and still can’t get it to work. 2) the options were locally declared in the notification setting function but, when I removed them and made them global to main, it still didn’t work.

I’ve noticed that I don’t have a custom sound like the corona example but would rather use the default…hope that’s not a problem. 

Any thoughts on why my notification isn’t working?  Code snippets below

--- My code, options is global in main local options = { &nbsp;&nbsp;&nbsp;&nbsp;alert = "XXXXX XXXX XXXXX",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;badge = &nbsp;0, &nbsp;&nbsp;&nbsp;&nbsp;custom = { msg = "XXX XXXX XXX" }, } --- Setting the notification&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;local currTime = os.date( "!\*t") &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;currTime.min = currTime.min + 2 &nbsp;&nbsp;&nbsp;&nbsp;currTime.sec = 0 local badgeNum = 0&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;options.badge = &nbsp;badgeNum + 1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;local notificationID = system.scheduleNotification( currTime, options ) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not notificationID then &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;statusMsg("Couldn't get a notification scheduled.") &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print("Scheduled notification for ",currTime) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end -- The notification event handler local onNotification = function( event ) &nbsp; &nbsp; print( event.name ) -- ==\> "notification" &nbsp; &nbsp; if event.custom then &nbsp; &nbsp; &nbsp; &nbsp; statusMsg( "Got a notification to "..event.custom.msg )&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;native.setProperty( "applicationIconBadgeNumber", 0) &nbsp; &nbsp; end end&nbsp; --- The event handler install Runtime:addEventListener( "notification", onNotification ) &nbsp;

Hi daHunter,

Did you find out why this was happening, I’m having the same problem.

Thanks,

Ash

Make sure you have your alert style set for your app in the iOS settings app under “notification center”. When I looked at this it wasn’t set for my app…never had to do this with native development. When I turned on the alert style to banner everything worked!

Hi daHunter,

Did you find out why this was happening, I’m having the same problem.

Thanks,

Ash

Make sure you have your alert style set for your app in the iOS settings app under “notification center”. When I looked at this it wasn’t set for my app…never had to do this with native development. When I turned on the alert style to banner everything worked!