It looks like you're new here. If you want to get involved, click one of these buttons!
local note = Notification.new(1) note:setTitle("Chook Run") note:setMessage("Don't forget to share Chook Run with your friends, click here to post on facebook.") note:setSound("Sfx/popUp.mp3") note:dispatchAfter({sec = 1}, {min = 2}) local mngr = NotificationManager.getSharedInstance() mngr:addEventListener(Event.LOCAL_NOTIFICATION, function(e) print("Local notification: "..e.id) print("Title: "..e.title) print("Text: "..e.message) print("Number: "..e.number) print("Sound: "..e.sound) -- text:setText("Id: "..e.id) --AlertDialog.new("test", "Reminder"..e.id, "Ok"):show() |
Comments
When i install in ios device firsttime, it asks about pushnotification as well as local notification also working by changing date, but after that i delete that app, and install same build in device,it is not asking for pushnotification as well as local notification is also not working. So please guide me.
When it already installed once, it won't ask to allow notification anymore.
It would appear at Settings > Notifications when your app is in your device.
If it doesn't appear, try to add this on didFinish:
Gideros code is perfect, just i need to modify xcode code, so below is my Appdelegate code,which works
(below code should be in didFinish)