Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Firebase Analytics and Config not working with Notifications V2 plugin
Started by Studycat2 Oct 27 2019 07:14 PM

- - - - -
2 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Studycat2

[GLOBAL: userInfoPane.html]
Studycat2
  • Enthusiast

  • 92 posts
  • Corona SDK

It seems that the FirebaseAnalytics/FirebaseConfig plugins in our iOS app prevents notifications from working properly. Has anyone else ran into this?

Attached Files



[TOPIC: post.html]
#2

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,842 posts
  • Enterprise

Try

firebaseAnalytics = require("plugin.firebaseAnalytics")
timer.performWithDelay( 200, function ( )
firebaseAnalytics.init()
end )


firebaseConfig = require("plugin.firebaseConfig")
timer.performWithDelay( 100, function ( )
firebaseConfig.init()
end )


timer.performWithDelay( 1000, function ( )
notifications = require("plugin.notifications.v2")
notifications.registerForPushNotifications( { useFCM = true } )
end )

[TOPIC: post.html]
#3

Studycat2

[GLOBAL: userInfoPane.html]
Studycat2
  • Enthusiast

  • 92 posts
  • Corona SDK

It still doesn't work. Basically, 'notification.registerForPushNotifications( { useFCM = true } )' doesn't fire.

 

From my previous test it seems that with the Firebase* series and registerForPushNotifications, whatever comes first prevents whatever comes latter from working.




[topic_controls]
[/topic_controls]