Notification v2 plugin issue on Android while App is not in Memory
I am using Corona SKD build : 2018:3353
I am going to implement Corona Plugin notification v2 in my App.( with FCM)
I just tested Corona Plugin v2 on my Android 5.0 and Android 8.1 devices
When i send test notification from firebase cloud messaging portal
Android 8.1 device got notification on All states
BUT My Android 5.0 device NOT getting notification if App is not in memory.
(for Android 5.0 , getting notification if App is Active or running in background)
main.lua :
local notifications = require('plugin.notifications.v2') local function notificationListener( event ) print('notificationListener : Event:' , event.type) if event.type=="remoteRegistration" then local ts=notifications.getDeviceToken() print("notificationListener : device Token : ",ts) end end Runtime:addEventListener('notification', notificationListener) timer.performWithDelay( 4000, function() local ts=notifications.getDeviceToken() if (ts == nil) or (ts == "unknown") then notifications.registerForPushNotifications({useFCM=true}) timer.performWithDelay(2000,function() ts=notifications.getDeviceToken() doAnalytics() end) end end)
Can you put together a sample project that demonstrates the error complete with build.settings and config.lua and put that in a .zip file to share with us?
You guys need to update 2 files required by Firebase (i can not share my account files):
1. google-services.json
2. GoogleService-Info.plist
I think issue with Notification is only < Android 8.0 device and only when App is not in Memory. if App is Active on Screen or in background then getting Notification.
Notification is really very important for our App. it’s still not working for < Android 8.0 devices when App is not in memory.
Can you please give me update on this issue ?
@Rob, I’m having this problem with my new app. Notifications do not work on Android <8. This defeats the entire purpose of having notifications, right? We need to notify our gamers when their moves have regenerated. With the new system implemented, we are unable to do this. Please help, as this is very important to our ability to bring players back and potentially monetize.
Can you put together a sample project that demonstrates the error complete with build.settings and config.lua and put that in a .zip file to share with us?
You guys need to update 2 files required by Firebase (i can not share my account files):
1. google-services.json
2. GoogleService-Info.plist
I think issue with Notification is only < Android 8.0 device and only when App is not in Memory. if App is Active on Screen or in background then getting Notification.
Notification is really very important for our App. it’s still not working for < Android 8.0 devices when App is not in memory.
Can you please give me update on this issue ?
@Rob, I’m having this problem with my new app. Notifications do not work on Android <8. This defeats the entire purpose of having notifications, right? We need to notify our gamers when their moves have regenerated. With the new system implemented, we are unable to do this. Please help, as this is very important to our ability to bring players back and potentially monetize.