Dieser Fehler bedeutet, dass es in Ihrem Code wahrscheinlich ein Syntaxfehler war. Stellen Sie sicher, dass Sie den Anruf an die OneSignal init-Methode korrekt formatiert haben, etwa so:
-- This function gets called when the user opens a notification or one is received when the app is open and active.
-- Change the code below to fit your apps needs.
function DidReceiveRemoteNotification(message, additionalData, isActive)
if (additionalData) then
if (additionalData.discount) then
native.showAlert("Discount!", message, { "OK" })
-- Take user to your app store
elseif (additionalData.actionSelected) then -- Interactive notification button pressed
native.showAlert("Button Pressed!", "ButtonID:" .. additionalData.actionSelected, { "OK"})
end
else
native.showAlert("OneSignal Message", message, { "OK" })
end
end
local OneSignal = require("plugin.OneSignal")
-- Uncomment SetLogLevel to debug issues.
-- OneSignal.SetLogLevel(4, 4)
OneSignal.Init("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", "############", DidReceiveRemoteNotification)
[Link] (https://documentation.onesignal.com/docs/corona-sdk) zur Dokumentation und Forum [OneSignal] (https://forums.coronalabs.com/forum/640-onesignal/). – ldurniat