Yerel bir bildirim sistemi ile bir uygulamayı uygulamaya çalışıyorum. Sistem bazı gereksiz bildirimleri iptal etmelidir. System.scheduleNotification düzgün çalışıyor (bildirimler oluşturur ve iyi çalışırlar) ancak nil
döndürür (bir ID döndürmesi gerekir). Bu nedenle, bildirimleri bildirim kimliğine göre iptal edemiyorum.Corona, system.scheduleNotification düzgün çalışmıyor
Aslında kullandığım kod çok basit. Herhangi bir yardım
local nextRefreshTime = 60 -- Not always 60, its just an example
local options = {
alert = "Some text here.",
badge = (native.getProperty("applicationIconBadgeNumber") or 0) + 1,
}
notifications[#notifications+1] = system.scheduleNotification(nextRefreshTime, options)
print(notifications[#notifications]) -- Prints nil !?!
-- Another example (test)
print(system.scheduleNotification(nextRefreshTime, options)) -- Also prints nil !?!
P.S. ... yararlı olacaktır: Ben de utcTime
argümanı ile system.scheduleNotification
çalıştı.
Cihazda ve xcode simülatöründe denedim. Bu örneği deneyeceğim. Corona sitesinde olduğunu sanıyorum. Cevap için teşekkürler. –