There are a lot of complexities around implementing FCM because when we did add support, using FCM had a cool feature for being able to send messages to iOS. You register with FCM, it behind the scene tries to register with APNS. Then you use FCM to send messages once and everything is supposed to work.
But if you’re using a service like Pushwoosh, Urban Airship, etc. they know how to send to both devices, so this FCM->APNS really doesn’t make a lot of sense unless you’re using Google’s interface to send the push messages.
It appears that FCM on iOS is conflicting with the Google SignIn plugin. We recommend that you take a modified approach to using notifications if you need Google Login.
In build settings, include both the V1 and V2 notification plugins:
settings = { plugins = { ["plugin.notifications"] = { publisherId = "com.coronalabs", supportedPlatforms={ iphone=true } }, ["plugin.notifications.v2"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, }, }
Then in your code:
local notifications = nil local platform = system.getInfo("platform") if "android" == platform then notifications = require( "plugin.notifications.v2") elseif "ios" == platform then notifications = require( "plugin.notifications" ) end
Now depending on your platform, you will get the appropriate plugin that shouldn’t interfere with other plugins.
Rob