I'm trying to set SetLocalNotification but can't get it working. My first attempt worked perfectly, but every subsequent attempt has failed. I have tried using different IDs and have checked that the notification exists (it does). Am I doing something wrong or is this a bug?
// Project: notifcations
// Created: 2016-05-29
// set window properties
SetWindowTitle( "notifcations" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
SetLocalNotification(1,GetUnixTime()+60,"Test Notification")
t = timer() + 60
do
Print( "Time to notification: " + str(t - timer()))
Print( "Please exit app before time runs out!")
Print( "NotificationExists: " + str(GetLocalNotificationExists(1)))
Print( "Message: " + GetLocalNotificationMessage(1))
Sync()
loop
[EDIT} Ok, a little more information: When I first tried using SetLocalNotification, I had set it to fire after 18 seconds. I tested via Broadcast to my Android device. I ran the app, exited and closed AppGameKit Player, and a few seconds later the notification appeared! Perfect... except now I can't get it to work at all, whether via broadcast or from an installed APK.