So … followed all the directions and have notifications working at least up until inside of the app.
The iOS device receives the notice and adds a Badge to the app. However, when i launch the app i do not receive the event telling me of the new notification.
Inside of the app I have the following at the Very Top of main.lua
local function DidReceiveRemoteNotification(message, additionalData, isActive) print("ONE SIGNAL NOTIFICATION RECEIVED!") 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") OneSignal.Init("my one signal id for the app in question", "my google project id", DidReceiveRemoteNotification)
The DidReceiveRemoteNotification is not firing when i open the app or if i receive a notice if the app is already open.
Any thoughts?
Appreciated!
m