I got a problem when I am trying to setup OneSignal notification but I got “Missing Google Play Services Library” for Android user listed on the OneSignal Panel.
I am using Corona SDK Version 2016.3012 (2016.12.29). And the following is my build.settings. I tried to enable the OneSignal Log and I got the attached error when I open the app on my Android device (Android 6.0.1).
settings = { splashScreen = { enable = false }, orientation = { default = "portrait", supported = { "portrait" } }, plugins = { -- Disable corona splash screen -- https://docs.coronalabs.com/plugin/CoronaSplashControl/index.html ["plugin.CoronaSplashControl"] = { publisherId = "com.coronalabs" }, -- Notification Plugin -- https://docs.coronalabs.com/guide/events/appNotification/index.html ["plugin.notifications"] = { publisherId = "com.coronalabs" }, -- OneSignal Plugin for Notifcation -- https://documentation.onesignal.com/docs/corona-sdk-setup ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, -- OneSignal Plugin for Notifcation -- https://documentation.onesignal.com/docs/corona-sdk-setup ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, ["android-kindle"]=true }, }, }, android = { -- For Notification -- http://docs.coronalabs.com/guide/events/appNotification/index.html permissions = { { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" }, }, usesPermissions = { -- For WebView "android.permission.INTERNET", -- For Notification -- http://docs.coronalabs.com/guide/events/appNotification/index.html "android.permission.GET\_ACCOUNTS", -- Notification "android.permission.RECEIVE\_BOOT\_COMPLETED", -- Notification "com.google.android.c2dm.permission.RECEIVE", -- Notification ".permission.C2D\_MESSAGE", -- Notification -- For photo upload "android.permission.CAMERA", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.READ\_EXTERNAL\_STORAGE", -- For Vibrate "android.permission.VIBRATE", }, CoronaWindowMovesWhenKeyboardAppears=true, -- Disable Android Tablet supportsScreens = { resizeable = false, smallScreens = true, normalScreens = true, largeScreens = false, xlargeScreens = false, largestWidthLimitDp = 320, }, }, iphone = { plist = { CFBundleIconFiles = { "Icon.png", "Icon@2x.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-167.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", }, -- Backgrounding Function -- See http://mobile.tutsplus.com/tutorials/corona/corona-sdk-handling-application-suspension/ UIApplicationExitsOnSuspend = false, -- iOS 9 Security Key -- https://coronalabs.com/blog/2015/09/17/about-app-transport-security-ats/ NSAppTransportSecurity = { NSExceptionDomains = { ["homemaidapp.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionAllowsInsecureHTTPLoads = true }, } }, -- OneSignal Plugin UIBackgroundModes = {"remote-notification"}, }, },