cause 1: signout
invoked
cause 2: your activity’s onStop
trigger
I didn’t understand. How would it be?
let me show a sample source code:
public class AppActivity extends com.sdkbox.plugin.SDKBoxActivity {
@Override
protected void onStop() {
super.onStop();
}
}
Hi,
I am facing the same issue. when the game goes to background Connection Status Changed to 1001. is this is a bug in sdkbox or did I miss anything?
Pls help me
I’m using Android 9, with the latest sdkboxplay.
Welcome to the club
From my point of view, it’s a sdkbox bug.
I’m not doing anything wrong in my code.
@htlxyz maybe your team should test all cases that sdkbox changes the status to 1001. maybe something are wrong.
Let me check it with Android 6 today.
I check this issue today.
works with https://github.com/sdkbox/sdkbox-sample-cpp317/tree/sdkboxplay on Nexus 6P 6.0.1.
would you check with check list
I tested your app.
Redmi Note 2, Android 5.0.1, Google Play 12.1.18
case 1
- no account
- click Leaderboards
- nothing happen
case 2
- sign-in a account
- click Leaderboards
- welcome UI shows
- no Leaderboards UI
- restart app
- click Leaderboards
- Leaderboards UI shows.
Nexus 6P, Android 8.0.0, Google Play 11.9.14
case 1
- no account
- click Leaderboards
- nothing happen
case 2
- sign-in a account
- click Leaderboards
- welcome UI shows
- no Leaderboards UI
- restart app
- click Leaderboards
- Leaderboards UI shows.
Nexus 6P, Android 8.0.0, Google Play 12.1.18
case 1
- no account
- click Leaderboards
- nothing happen
case 2
- sign-in a account
- click Leaderboards
- welcome UI shows
- no Leaderboards UI
- restart app
- click Leaderboards
- Leaderboards UI shows.
But I test our sdkboxcpp317 sample.
- it can show account picker UI on Android 8, but not show on Android 6.
- sign-in success both on Android 8 & 6.
Let me do some researching.
What’s your cocos2d-x version?
do you use eclipse or android studio ?
I need more info about your project.
@yinjimmy, as always, thanks for help me.
Is weird because sometimes works and sometimes not.
I’m using:
Android Studio 3.1.3
cocos2d-x 3.17.
NDK r16b
Build Tools 27.0.3
Gradle Version 4.4
SDKBox Play
Let me know if you need more info.
sdkboxplay version?
SDKBOX Inc. v1.0.2.0
~/test/cpp317_1 [master] $ sdkbox info
_______ ______ _ _ ______ _____ _ _
|______ | \ |____/ |_____] | | \___/
______| |_____/ | \_ |_____] |_____| _/ \_
Copyright (c) 2016-2018 SDKBOX Inc. v1.0.2.2
installed packages:
v2.4.1.1 sdkboxplay
v2.4.1.1 googleplayservices
and our test sample release on Google Play https://play.google.com/store/apps/details?id=com.sdkbox.sdkboxplay
you can try it.
Ok i’m trying to update with the command sdkbox update
.
But after update all plugins, i’ve problems in Android Studio. Gradle sync failed.
Error:Plugin with id 'io.fabric' not found.
I deleted proj.android/app/build
folder but i still continue with the problem…
Do you know how to solve it? This is the reason because i don’t want to update anything… hahaha.
In iOS i’ve problems with OneSignal but I solved it (about this plz read SDKBox OneSignal iOS)
sdkbox updater edits files that it shouldn’t edit. Example: AndroidManifiest.xml, Android.mk, AppActivity.java, etc.
I fixed some files and now gradle syncs ok.
However, when i try to run the project, this is the error:
Program type already present: com.sdkbox.plugin.SdkboxGPGAchievements$13
Message{kind=ERROR, text=Program type already present: com.sdkbox.plugin.SdkboxGPGAchievements$13, sources=[Unknown source file], tool name=Optional.of(D8)}
Program type already present: com.sdkbox.plugin.PluginSdkboxPlay
Message{kind=ERROR, text=Program type already present: com.sdkbox.plugin.PluginSdkboxPlay, sources=[Unknown source file], tool name=Optional.of(D8)}
Ok I fixed the issue deleting the folder proj.android/app/libs
but the problem still continues. So, update sdkboxplay didn’t solve the issue.
I downloaded SDKBox Play App and I can signin and show all leaderboards. It worked. I don’t understand why my App doesn’t work. Let me know if you need more info. Anyway, i will continue thinking but i don’t know what should I check… i checked everything…
Summary:
- I touch leaderboards icon and the program calls
sdkbox::PluginSdkboxPlay::signin()
because isSignedIn is false. - Login UI not appears.
onConnectionStatusChanged
is called and the status code is 1001 (GPS_DISCONNECTED
). I never view a login screen.
Nowhere in the code I’m calling sdkbox::PluginSdkboxPlay::signout()
no, sdkbox
need to edit these files, because plugin needs.
If you provide teamviewer account
, we can offer a free remote help to check your code. we’re online at 9:00 - 18:00 Beijing Time.
Thanks,
For all guys, you NEED TO check with checklist before you post any SDKBoxPlay Login issue here.
double check , plz.
Thanks,
Thanks to @htlxyz for help me.
@yinjimmy if you read my first post, i asked if it’s a sdkbox bug. I didn’t afirm that’s a bug.
And, please, take this as a constructive comment:
Is not easy to installs plugins in sdkbox.
Why ALWAYS should I read manual instalattion? This is because sdkbox installer and sdkbox updater works wrong.
My project was working and when I wrote sdkbox update
my project stopped compiling. So, plz, don’t forget this comments, it’s just a constructive criticism from a user who likes to use sdkbox, but I think it should be easier to install and update the plugins.
Thanks again @htlxyz, I really appreciate your help.
I’ll test all plugins with case:
- cocos2d-x 3.17
- sdkbox import old-plugin-2.4.0.2
- sdkbox update
compile iOS and Android,
Thanks for your comment.