Hello,
I am using Cocos2dx 3.17 and sdkbox iap (2.4.1.1) and sdkboxplay (2.4.1.1)
I have tried the following versions
‘com.google.android.gms:play-services-:12.0.1’
'com.google.android.gms:play-services-:15.0.1’
'com.google.android.gms:play-services-:16.0.0’
and the problem is the same. ( auth, ads, games, drive)
I have gone over the checklist multiple times
I have tested on both an older android 4.4.2 device and an android 7.1.1 device
connect_on_start=false
When I call signin shortly after my game starts I can connect to google play. It always asks to choose account (this might be some other problem, I would like it to login without this), but I still login successfully.
I can then access the leaderboards successfully. But when I hit the home button (minimize the game) I get a onConnectionStatusChanged(1001). When bringing the app to the foreground, no other connection messages are given. I can then call signin (from a button in the game) which will successfully log me back in (again prompting me to choose an account). Any help would be appreciated resolving this issue.
Here is the logcat when I minimize
24344-24344/com.mycompany.mygame D/Cocos2dxActivity: onPause()
24344-24964/com.mycompany.mygame V/FA: Recording user engagement, ms: 136632
24344-24964/com.mycompany.mygame V/FA: Activity paused, time: 171376882
563-902/? I/MediaFocusControl: AudioFocus abandonAudioFocus() from android.media.AudioManager$4205e760org.cocos2dx.lib.Cocos2dxAudioFocusManager$1$42192800
733-733/? V/KeyguardUpdateMonitor: handleSetGenerationId(g=130, clear=true)
24344-24344/com.mycompany.mygame D/AudioFocusManager: abandonAudioFocus succeed!
24344-24344/com.mycompany.mygame I/API: onPause()
24344-24390/com.mycompany.mygame D/cocos2d-x debug info: cocos_audioengine_focus_change: 0
24344-24390/com.mycompany.mygame D/cocos2d-x debug info: cocos_audioengine_focus_change : cocos_audioengine_focus_change: AudioEngineImpl isn't ready!
24344-24390/com.mycompany.mygame D/cocos2d-x debug info: Suspended
563-988/? V/WindowManager: rotationForOrientationLw(orient=-1, last=0); user=0 sensorRotation=-1 mLidState=-1 mDockMode=0 mHdmiPlugged=false mAccelerometerDefault=false gripRotationLock=false
563-656/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1509 com.android.internal.policy.impl.PhoneWindowManager.notifyToSSRM:5955 com.android.internal.policy.impl.PhoneWindowManager.access$200:188 com.android.internal.policy.impl.PhoneWindowManager$PolicyHandler.handleMessage:735 android.os.Handler.dispatchMessage:102
884-884/? D/Launcher.Workspace: exitWidgetResizeMode State: NORMAL, newDragStarted: false
884-884/? D/Launcher: onRestart, Launcher: 1105926080
884-884/? D/Launcher: onStart, Launcher: 1105926080
884-884/? D/Launcher.HomeView: onStart
884-884/? D/Launcher: onResume, Launcher: 1105926080
884-884/? D/Launcher.HomeView: onResume
733-733/? D/PhoneStatusBar: setSemiTransparentMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
733-733/? D/PhoneStatusBar: setTransGradationMode=false, mTransparentMode=false, mSemiTransparentMode=false, mMultiWindowMode=false
884-884/? D/MenuAppsGridFragment: onResume
1171-1171/? I/MultiWindowTrayService: mHomeResumeReceiver : onReceive
1171-1171/? I/Sally Service: removeWindow window
24775-24775/? V/TaskCloserActivity: TaskCloserActivity onReceive() - com.sec.android.intent.action.HOME_RESUME
24344-24964/com.mycompany.mygame D/dalvikvm: GC_FOR_ALLOC freed 2372K, 40% free 12551K/20732K, paused 68ms, total 68ms
24344-24344/com.mycompany.mygame D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=false
563-24974/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1509 com.android.server.InputMethodManagerService$4.run:2684 java.lang.Thread.run:841 <bottom of call stack> <bottom of call stack>
24344-24390/com.mycompany.mygame D/cocos2d-x debug info: PlayListener::onConnectionStatusChanged 1001
7404-7961/? W/GamesServiceBroker: Client connected with SDK 14536000, Services 14366000, and Games 70890030
24344-24390/com.mycompany.mygame D/cocos2d-x debug info: PlayListener::onConnectionStatusChanged 1001
Here is the logcat when I resume
733-733/? E/ViewRootImpl: sendUserActionEvent() mView == null
24344-24344/com.mycompany.mygame D/Cocos2dxActivity: onResume()
24344-24964/com.mycompany.mygame V/FA: Connecting to remote service
24344-24964/com.mycompany.mygame V/FA: Activity resumed, time: 171383900
563-804/? I/MediaFocusControl: AudioFocus requestAudioFocus() from android.media.AudioManager$4205e760org.cocos2dx.lib.Cocos2dxAudioFocusManager$1$42192800
24344-24344/com.mycompany.mygame D/AudioFocusManager: requestAudioFocus succeed
733-733/? V/KeyguardUpdateMonitor: handleSetGenerationId(g=131, clear=true)
24344-24344/com.mycompany.mygame I/API: onResume()
143-143/? I/SurfaceFlinger: id=1099 createSurf (800x1280),1 flag=4, TurfaceView
143-143/? I/SurfaceFlinger: id=1100 createSurf (800x1280),1 flag=4, BppActivity
563-4866/? I/SpenGestureManager: setFocusWindow21025
24344-24344/com.mycompany.mygame D/Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
24344-24390/com.mycompany.mygame D/EngineDataManager.cpp: setAnimationInterval by engine: 0.0083
24344-24390/com.mycompany.mygame D/EngineDataManager.cpp: JNI setAnimationInterval: 0.008333
24344-24460/com.mycompany.mygame W/libOpenSLES: Leaving Object::GetInterface (SL_RESULT_FEATURE_UNSUPPORTED)
563-24990/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1509 com.android.server.InputMethodManagerService$4.run:2684 java.lang.Thread.run:841 <bottom of call stack> <bottom of call stack>
563-656/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1509 com.android.internal.policy.impl.PhoneWindowManager.notifyToSSRM:5955 com.android.internal.policy.impl.PhoneWindowManager.access$200:188 com.android.internal.policy.impl.PhoneWindowManager$PolicyHandler.handleMessage:735 android.os.Handler.dispatchMessage:102
24344-24964/com.mycompany.mygame V/FA: Connection attempt already in progress
24344-24964/com.mycompany.mygame D/FA: Connected to remote service
24344-24964/com.mycompany.mygame V/FA: Processing queued up service tasks: 2