Hi
@ar2rsawseen,
I'm testing the notification plugin under iOS and they are not shown.
I've followed the instructions under
http://giderosmobile.com/labs/notificationThe notifications for the Gideros Player are activated in the device.
This is the code:
local note = Notification.new(1)
note:setTitle("MyGame")
note:setMessage("Hello")
note:setSound("audio/hello.wav")
note:dispatchNow()
I'm doing wrong?
Thanks.
Comments
Try dispatching notifications after 10 seconds and put your app to background by clicking home button.
I'm testing with Gideros player so If I click the home button the player goes to background but makes exit the app.
To build the app I have to add the pluging,etc. every time for every test I make.
How could I test the notifications with the player (without building the app)?
https://play.google.com/store/apps/developer?id=SimplesApps
http://www.amazon.com/gp/mas/dl/android?p=com.simplesapps.actionbasket
https://itunes.apple.com/artist/david-rodriguez/id763996989
Although the sound is the system default not that you set with "note:setSound("sound")".
Perhaps due to because it runs on the player, because the sound is in the app assets not in the player assets?
Another question: is it necessary to use an external server for the push notifications ?
In the notification docs appears in the example code to register for push notifications.
https://play.google.com/store/apps/developer?id=SimplesApps
http://www.amazon.com/gp/mas/dl/android?p=com.simplesapps.actionbasket
https://itunes.apple.com/artist/david-rodriguez/id763996989
https://play.google.com/store/apps/developer?id=SimplesApps
http://www.amazon.com/gp/mas/dl/android?p=com.simplesapps.actionbasket
https://itunes.apple.com/artist/david-rodriguez/id763996989
A possible "bug" I found is that if you set a notification is not possible to delete it.
I mean you can exclude from the notification system of the device but the notification appears again and again.
You have to uninstall the app to delete the notification.
@ar2rsawseen Could you check it?
Thanks.
https://play.google.com/store/apps/developer?id=SimplesApps
http://www.amazon.com/gp/mas/dl/android?p=com.simplesapps.actionbasket
https://itunes.apple.com/artist/david-rodriguez/id763996989
I tested with a 1 minute notification and now every time I install Gideros Player a new notification appears every minute. I have to uninstall it because is very annoying... but I need to perform tests...
Please help! How could I delete that notification?
https://play.google.com/store/apps/developer?id=SimplesApps
http://www.amazon.com/gp/mas/dl/android?p=com.simplesapps.actionbasket
https://itunes.apple.com/artist/david-rodriguez/id763996989
local mngr = NotificationManager.getSharedInstance()
mngr:cancelAllNotifications()
mngr:clearLocalNotifications()
But anyway, why if you exclude the app from the notification system of the device continues appearing?. It seems the notification don't check the exclusion. Maybe is a bug maybe or you could be implement a checking with the available functions.
https://play.google.com/store/apps/developer?id=SimplesApps
http://www.amazon.com/gp/mas/dl/android?p=com.simplesapps.actionbasket
https://itunes.apple.com/artist/david-rodriguez/id763996989