Hello,
I had a trial enterprise account. In my project I used Notification plugin. It worked fine until I paid the account. Now “notification” event is not work.
I try to use sample code (plugins-source-notifications) but result is same.
Lua code is:
local notifications = require("plugin.notifications") local launchArgs = ... local json = require("json") print("launchArgs: ", json.encode(launchArgs)) local function listener(event) print("notification: ", json.encode(event)) end Runtime:addEventListener("notification", listener) local asdf = display.newCircle( 100, 100, 100 ) local function l(event) notifications.registerForPushNotifications() end asdf:addEventListener( "tap", l )
I tap on circle then I see alert, but print("notification: ", json.encode(event)) is not happens.
Any ideas?