We have broken down out issue to a sample project.
We check “everything” configurationwise and it seems all right. We checked a lot of articles and threads but were unable to come to the solution yet. We linked the app to our google play developer console with Android and iOS as described in this article: LINK
For the sample project we used Corona version: 2016.3002 and 2016.2992 with the following code:
local lGameNetwork lGameNetwork = require( "plugin.gpgs" ) local function gameLoginCallback( event ) print("gameLoginCallback2") print(json.prettify(event)) end local function gameRequestCallback( event ) print(json.prettify(event)) if event.name == "init" then print("login Called2") lGameNetwork.login( { userInitiated = true, listener = gameLoginCallback }) end end function setUpGameNetwork() if lGameNetwork.isConnected() then print("setUpGameNetwork, already logged in") return end print("globalGameNetwork.init") lGameNetwork.init( gameRequestCallback ) end
Our main file just calls "setUpGameNetwork() "
On version 3002 the “gameLoginCallback()” is never called, the last print we can see is “login Called2”.
On 2992 the “gameLoginCallback()” states that the login succeded (phase = “logged in”).
However, in both cases the app shows the following behaviour:
- The App is opened and automatically swipes to the screen asking for permission.
- We accept the asked permissions.
- The App swipes back to our App.
- Then the App immediately swipes to ask for permissions-screen, again.
- We accept again.
- The App swipes back to our App again.
- But then: Now the App swipes in the same direction the permission screen was befoire but, the screen does not contain any permissions. It is simly white. The App however is running.
We don’t think that the build.settings are the issue however here is the settings we use.
settings = { orientation = { default = "portrait", -- Initial launch orientation supported = {"portrait"} -- Table of allowed options for auto-orientation }, android = { googlePlayGamesAppId = "46xxxxxxxxxx", usesPermissions = { "android.permission.VIBRATE", "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.VIBRATE", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.ACCESS\_COARSE\_LOCATION", "com.android.vending.BILLING", "android.permission.RECEIVE\_BOOT\_COMPLETED", "android.permission.GET\_ACCOUNTS" }, usesFeatures = { { name="android.hardware.location", required=false }, { name="android.hardware.location.gps", required=false }, { name="android.hardware.location.network", required=false }, }, }, plugins = { ["plugin.gpgs"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true, iphone=true, ["android-kindle"]=false } }, }, iphone = { plist = { CFBundleDisplayName = "Corecraft", CFBundleName = "Corecraft", 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-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png" }, UILaunchImages = { { -- iPhone 4 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 480}" }, { -- iPhone 5 Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-568h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{320, 568}" }, { -- iPad Portrait ["UILaunchImageMinimumOSVersion"] = "7.0", ["UILaunchImageName"] = "Default-Portrait", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{768, 1024}" }, { -- iPhone 6 Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-667h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{375, 667}" }, { -- iPhone 6 Plus Portrait ["UILaunchImageMinimumOSVersion"] = "8.0", ["UILaunchImageName"] = "Default-736h", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{414, 736}" }, { -- iPad Pro Portrait ["UILaunchImageMinimumOSVersion"] = "9.0", ["UILaunchImageName"] = "Default-Portrait-1366", ["UILaunchImageOrientation"] = "Portrait", ["UILaunchImageSize"] = "{1024, 1366}" }, }, --required UIApplicationExitsOnSuspend = false, UIPrerenderedIcon = true, UIStatusBarHidden = true, --APPODEAL REQUIRES MINIMUM 8.0! MinimumOSVersion = "8.0", --CoronaLabs NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, --GPGS GooglePlayGamesOAuth2ClientId = "46xxxxxxxxxx-cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxr.apps.googleusercontent.com", CFBundleURLTypes = { { CFBundleURLSchemes = { "com.googleusercontent.apps.46xxxxxxxxxx-cxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxr } }, { CFBundleURLSchemes = { "com.rxxxxx.cxxxxxxx" } }, }, --OneSignal NSLocationUsageDescription = "Location permission prompt text", NSLocationWhenInUseUsageDescription = "Location permission prompt text", }, }, }
Does anybody ever had this App behaviour-issue ending up in a white screen?
Thanks for any help in advance.