I have filed a bug report. I added a link to a simple main.lua but of course you would need to prepare your test app for firebase push notifications with your own firebase credentials.
I already mailed you that the problem still occurs on my side.
I have no experience in plugin development, so I don’t know if the following information might be useless to you.
I talked to a someone else who used the iOS Firebase SDK with Corona Native.
He said he had to set FirebaseAppDelegateProxyEnabled type “Boolean” to “NO”. Otherwise the Push Notifications did not work.
local notifications = require('plugin.notifications.v2') local firebaseAnalytics = require( "plugin.firebaseAnalytics" ) firebaseAnalytics.init() local function notificationListener( event ) print('Event:' .. event.type) end Runtime:addEventListener('notification', notificationListener) timer.performWithDelay( 4000, function() notifications.registerForPushNotifications({useFCM=true}) end)
Here I do not even use a logEvent(). If I remove the firebaseAnalytics.init() then the registerForPushNotifications does work (the popup fires). If I do not remove the init() call the popup does not show up.
Ok I can try this. But this will be not useful in most cases.
I already need to log system events like app resume, app suspend, app start and app exit. These events occur at the very beginning of the app life cycle.
Furthermore requesting access for push notifications should be done strategically later in the game.
Just a quick update I have looked into this pretty hard and have not had a lot of luck. Unforchantly corona has not open sourced the notification which would help a lot but I really cannot do anything about this. For the record this what my code objc for init is
[FIRApp configure];
Yep that simple
I think you are going to have better luck corona support or filing a bug report with them.