notifications v2

I’m not mixing them.  I switched back to v1 when v2 refused to load to allow me to continue testing other things.  I did include the correct plugin setting in build.settings

        [“plugin.notifications.v2”] =
        {
            publisherId = “com.coronalabs”
        },

I don’t think they’re meant to be mixed in any way. Either choose the V2 and FCM (for Android), or the legacy… and if you go V2, take out everything related to the legacy plugin, including “plugin.notifications” in your build.settings, along with the “notification > google” table in config.lua. Let me know how that goes…

Take care,

Brent

I have the same problem
 

my build.settings

settings = { plugins = { ["plugin.notifications.v2"] = { publisherId = "com.coronalabs" }, }, orientation = { default = "portrait", supported = { "portrait", }, }, excludeFiles = { iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, iphone = { plist = { UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay --UIApplicationExitsOnSuspend = true, -- uncomment to quit app on suspend CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-167.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", }, }, }, android = { useGoogleServicesJson = true, usesPermissions = { "android.permission.INTERNET", "android.permission.GET\_ACCOUNTS", "android.permission.RECEIVE\_BOOT\_COMPLETED", "com.google.android.c2dm.permission.RECEIVE", ".permission.C2D\_MESSAGE" }, permissions = { { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" }, } }, }

I found the problem

useGoogleServicesJson = true

if change false

will be back to normal

build json has bug?

 

@All 

The issue should now be fixed.

@rich.stupek

I’d highly recommend that you remove the strings{} table from your build settings file as it will most definitely interfere with the values taken from the JSON file.

hmmm… that came in because we’re trying to use firebase analytics and it indicated to add it

https://scotth.tech/plugin-firebaseAnalytics

@rich.stupek

Yeah, that’s a 3rd party plugin that was released before we had official support for the Firebase JSON file so some strings needed to be added manually. Now it’s not necessary anymore, and that plugin should continue to work by just including the JSON file in your project and adding useGoogleServicesJson = true.

useGoogleServicesJson = true is work

thank for @ingemar_cl