SDKBOX 2.3.14 Release - All your saves, on the cloud

SDKBOX 2.3.14 Release - All your saves, on the cloud
0.0 0

#1

We added cloud save support for iCloud and Google Play for 2.3.14 release.

Check out our sample for how to use them

2.3.14 Release Notes

##Highlights

  • SDKBOX Play supports cloud save function for iCloud and Google Play
  • SDKBOX Play supports reset function for Achievement and Leaderboard
  • SDKBOX Play leaderboard support float point scores
  • InMobi supports rewarded ADs
  • Support customized build path for CocosCreator project

##Bugfix

  • Fix a crash issue with SDKBOX issue
  • Fix a crash issue with social share
  • Fix google analytics not tracking app version correctly on iOS issue
  • Add new paramters for Facebook gifting issue
  • Fix InMobi onAdAction callback not been triggered issue
  • Fix crash in IAP issue
  • Fix IAP onCanceled returns empty in a special case issue
  • Fix double value support for SDKBOX Play issue
  • Fix OneSignal setTag crash issue

SDKBOX IAP iOS IAPListener::onCanceled problem
#2

#3

Hi @nite
with latest release its always failed to patch file Cocos2dxActivity.java on windows with any plugin.


Tried with HellowWorld project.
Tried with IAP & OneSignal
Cocos2d-x 3.15.1 (c++)
sdkbox latest version.


SDKBOX 2.3.15 Release - Firebase
#4

I’m trying this release and can’t connect to Google Play with sdkbox::PluginSdkboxPlay::signin(). Getting a GPS_CONNECTION_ERROR in onConnectionStatusChanged callback.

First time i try to connect i get the connecting to Google Play window but it fails, if try to connect again i get no window and fails instantly.

If reinstall the old project before the sdkbox update it connects with no problem.


#5

We upgraded google play service version as well. Can you tell me which version of google play services are you using?


#6

I’m using a few modules, updated everything at the same time. Cocos version is 3.15

Version 2.3.13.5 works fine. Version 2.3.14.3 fails to connect.

> sdkbox update
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016 SDKBOX Inc. v1.0.1.23
 test speed of hosts...
 - test host main: 459.09KB/s.
 - test host china: 19.63KB/s.
 choose the fastest server 'main', speed is 459.09KB/s.
 downloading package sdkbox-iap_v2.3.14.3.tar.gz
[###################################] 100%
 2.3.14.3 2.3.13.5
 updating iap v2.3.13.5 -> v2.3.14.3
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/iap/v3-cpp/
 Installation Successful :)
 downloading package sdkbox-review_v2.3.14.3.tar.gz
[###################################] 100%
 2.3.14.3 2.3.13.5
 updating review v2.3.13.5 -> v2.3.14.3
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/review/v3-cpp/
 Installation Successful :)
 downloading package sdkbox-googleplayservices_v2.3.14.3.tar.gz
[###################################] 100%
 2.3.14.3 2.3.13.5
 updating googleplayservices v2.3.13.5 -> v2.3.14.3
 Installation Successful :)
 downloading package sdkbox-adcolony_v2.3.14.3.tar.gz
[###################################] 100%
 2.3.14.3 2.3.13.5
 updating adcolony v2.3.13.5 -> v2.3.14.3
 Installation Successful :)
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/adcolony/v3-cpp/

# iOS
https://github.com/AdColony/AdColony-iOS-SDK-3/wiki/Xcode-Project-Setup#configuring-url-schemes
https://github.com/AdColony/AdColony-iOS-SDK-3/wiki/Xcode-Project-Setup#configuring-privacy-controls

 Installation Successful :)
 downloading package sdkbox-admob_v2.3.14.3.tar.gz
[###################################] 100%
 2.3.14.3 2.3.13.5
 updating admob v2.3.13.5 -> v2.3.14.3
 Installation Successful :)
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/admob/v3-cpp/
 Installation Successful :)
 downloading package sdkbox-sdkboxplay_v2.3.14.3.tar.gz
[###################################] 100%
 2.3.14.3 2.3.13.5
 updating sdkboxplay v2.3.13.5 -> v2.3.14.3
 Installation Successful :)
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/sdkboxplay/v3-cpp/
 Installation Successful :)
 downloading package sdkbox-flurryanalytics_v2.3.14.3.tar.gz
[###################################] 100%
 2.3.14.3 2.3.13.5
 updating flurryanalytics v2.3.13.5 -> v2.3.14.3
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/flurryanalytics/v3-cpp/
 Installation Successful :)
 downloading package sdkbox-chartboost_v2.3.14.3.tar.gz
[###################################] 100%
 2.3.14.3 2.3.13.5
 updating chartboost v2.3.13.5 -> v2.3.14.3
 Installation Successful :)
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/chartboost/v3-cpp/
 Installation Successful :)
 downloading package sdkbox-sdkboxads_v2.3.14.3.tar.gz
[###################################] 100%
 2.3.14.3 2.3.13.5
 updating sdkboxads v2.3.13.5 -> v2.3.14.3
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/sdkboxads/v3-cpp/
 Installation Successful :)
 updated 9 packages.
tom@ASUSGP E:\perso\nurium\tibetm\cocos\ct7

#7

I hope u not using google play services which need to be compiled agains Android SDK 23+


#8

We’re using com.google.android.gms.games.Games package, and works with android-19.


#9

Anything about this, it just does not connect and would like to ad the save game feature.

Have you people updated and can log in to Google Play?

Thanks.


#10

After update Google Play module on Android device, I can’t connect to Google Play with bellow output log:

06-21 10:06:32.365 28416-28416/com.sdkbox.gpg V/GamesNativeSDK: Play Games callback indicates connection failure.
06-21 10:06:32.365 28416-28539/com.sdkbox.gpg I/GamesNativeSDK: UI interaction required to connect to Google Play.
06-21 10:06:33.716 28416-28416/com.sdkbox.gpg V/GamesNativeSDK: Play Games callback indicates connection failure.
06-21 10:06:33.716 28416-28539/com.sdkbox.gpg I/GamesNativeSDK: UI interaction required to connect to Google Play.
06-21 10:06:33.717 28416-28720/com.sdkbox.gpg I/TeapotNativeActivity: Sign in finished with a result of -3

Update1:

test with gms 11.0.0 and gpg-cpp-sdk.v2.3.zip, same error:

06-21 12:54:35.229 18412-18412/com.sdkbox.gpg V/GamesNativeSDK: Play Games callback indicates connection failure.
06-21 12:54:35.229 18412-20238/com.sdkbox.gpg I/GamesNativeSDK: UI interaction required to connect to Google Play.
06-21 12:54:35.253 18412-18458/com.sdkbox.gpg D/libc-netbsd: getaddrinfo: metrics.sdkbox.com get result from proxy >>
06-21 12:54:35.253 18412-18458/com.sdkbox.gpg I/System.out: propertyValue:true
06-21 12:54:35.254 18412-18458/com.sdkbox.gpg I/System.out: [CDS]rx timeout:0
06-21 12:54:35.254 18412-18458/com.sdkbox.gpg I/System.out: [socket][2] connection metrics.sdkbox.com/54.191.147.84:443;LocalPort=47100(0)
06-21 12:54:35.254 18412-18458/com.sdkbox.gpg I/System.out: [CDS]connect[metrics.sdkbox.com/54.191.147.84:443] tm:90
06-21 12:54:35.255 18412-18458/com.sdkbox.gpg D/Posix: [Posix_connect Debug]Process com.sdkbox.gpg :443 
06-21 12:54:35.260 18412-18458/com.sdkbox.gpg I/System.out: [socket][/26.26.26.2:47100] connected
06-21 12:54:35.265 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 NativeCrypto_SSL_do_handshake fd=0xe129d6c0 shc=0xe129d6c4 timeout_millis=0 client_mode=1 npn=0x0
06-21 12:54:35.266 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake ++
06-21 12:54:35.266 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x10 ret=1
06-21 12:54:35.266 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 handshake start in UNKWN  before/connect initialization
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback calling handshakeCompleted
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback completed
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:UNKWN  before/connect initialization
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3WCH_A SSLv3 write client hello A
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1002 ret=-1
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:error exit in 3RSH_A SSLv3 read server hello A
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake -- ret=-1
06-21 12:54:35.269 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 NativeCrypto_SSL_do_handshake ret=-1 errno=11 sslError=2 timeout_millis=0
06-21 12:54:35.356 18412-18412/com.sdkbox.gpg I/SurfaceView: updateWindow -- setFrame, this = org.cocos2dx.lib.Cocos2dxGLSurfaceView{138c57fc VFE..... .F....I. 0,0-1920,1080}
06-21 12:54:35.356 18412-18412/com.sdkbox.gpg I/SurfaceView: updateWindow -- OnPreDrawListener, mHaveFrame = true, this = org.cocos2dx.lib.Cocos2dxGLSurfaceView{138c57fc VFE..... .F....I. 0,0-1920,1080}
06-21 12:54:35.789 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake ++
06-21 12:54:35.789 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.789 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3RSH_A SSLv3 read server hello A
06-21 12:54:35.789 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.789 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1002 ret=-1
06-21 12:54:35.790 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:error exit in 3RSC_A SSLv3 read server certificate A
06-21 12:54:35.790 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.790 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake -- ret=-1
06-21 12:54:35.790 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 NativeCrypto_SSL_do_handshake ret=-1 errno=11 sslError=2 timeout_millis=0
06-21 12:54:35.857 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake ++
06-21 12:54:35.857 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1002 ret=-1
06-21 12:54:35.857 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:error exit in 3RSC_A SSLv3 read server certificate A
06-21 12:54:35.857 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.857 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake -- ret=-1
06-21 12:54:35.857 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 NativeCrypto_SSL_do_handshake ret=-1 errno=11 sslError=2 timeout_millis=0
06-21 12:54:35.858 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake ++
06-21 12:54:35.858 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1002 ret=-1
06-21 12:54:35.858 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:error exit in 3RSC_A SSLv3 read server certificate A
06-21 12:54:35.858 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.858 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake -- ret=-1
06-21 12:54:35.858 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 NativeCrypto_SSL_do_handshake ret=-1 errno=11 sslError=2 timeout_millis=0
06-21 12:54:35.858 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake ++
06-21 12:54:35.859 18412-18458/com.sdkbox.gpg E/NativeCrypto: ssl=0xab6291d0 cert_verify_callback x509_store_ctx=0xe129d510 arg=0x0
06-21 12:54:35.859 18412-18458/com.sdkbox.gpg E/NativeCrypto: ssl=0xab6291d0 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
06-21 12:54:35.880 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 cert_verify_callback => 1
06-21 12:54:35.880 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.880 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3RSC_A SSLv3 read server certificate A
06-21 12:54:35.880 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.881 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.881 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3RSKEA SSLv3 read server key exchange A
06-21 12:54:35.881 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.881 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.881 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3RSD_A SSLv3 read server done A
06-21 12:54:35.881 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3WCKEA SSLv3 write client key exchange A
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3WCCSA SSLv3 write change cipher spec A
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3WFINA SSLv3 write finished A
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3FLUSH SSLv3 flush data
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1002 ret=-1
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:error exit in 3RFINA SSLv3 read finished A
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake -- ret=-1
06-21 12:54:35.887 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 NativeCrypto_SSL_do_handshake ret=-1 errno=11 sslError=2 timeout_millis=0
06-21 12:54:36.079 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake ++
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1001 ret=1
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:3RFINA SSLv3 read finished A
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x20 ret=1
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 handshake done in SSLOK  SSL negotiation finished successfully
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback calling handshakeCompleted
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback completed
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback where=0x1002 ret=1
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 SSL_connect:ok exit in SSLOK  SSL negotiation finished successfully
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 info_callback ignored
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: doing handshake -- ret=1
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 NativeCrypto_SSL_get_certificate => NULL
06-21 12:54:36.080 18412-18458/com.sdkbox.gpg I/System.out: gba_cipher_suite:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
06-21 12:54:36.082 18412-18458/com.sdkbox.gpg I/System.out: [OkHttp] sendRequest>>
06-21 12:54:36.082 18412-18458/com.sdkbox.gpg I/System.out: [OkHttp] sendRequest<<
06-21 12:54:36.082 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 sslWrite buf=0xab5d2078 len=1160 write_timeout_millis=0
06-21 12:54:36.083 18412-18458/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 sslRead buf=0xab6905e0 len=2048,timeo=0
06-21 12:54:36.559 18412-18412/com.sdkbox.gpg V/GamesNativeSDK: Play Games callback indicates connection failure.
06-21 12:54:36.559 18412-20238/com.sdkbox.gpg I/GamesNativeSDK: UI interaction required to connect to Google Play.
06-21 12:54:38.093 18412-18412/com.sdkbox.gpg V/GamesNativeSDK: Play Games callback indicates connection failure.
06-21 12:54:38.094 18412-20238/com.sdkbox.gpg I/GamesNativeSDK: UI interaction required to connect to Google Play.
06-21 12:54:38.792 18412-18479/com.sdkbox.gpg I/System.out: [CDS]rx timeout:0
06-21 12:54:38.795 18412-18479/com.sdkbox.gpg I/System.out: [CDS]rx timeout:0
06-21 12:54:38.795 18412-18479/com.sdkbox.gpg I/System.out: [OkHttp] sendRequest>>
06-21 12:54:38.795 18412-18479/com.sdkbox.gpg I/System.out: [OkHttp] sendRequest<<
06-21 12:54:38.795 18412-18479/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 sslWrite buf=0xab6909c0 len=1160 write_timeout_millis=0
06-21 12:54:38.796 18412-18479/com.sdkbox.gpg D/NativeCrypto: ssl=0xab6291d0 sslRead buf=0xab6909c0 len=2048,timeo=0
06-21 12:54:39.425 18412-18412/com.sdkbox.gpg V/GamesNativeSDK: Play Games callback indicates connection failure.
06-21 12:54:39.425 18412-20238/com.sdkbox.gpg I/GamesNativeSDK: UI interaction required to connect to Google Play.
06-21 12:54:39.425 18412-18514/com.sdkbox.gpg I/TeapotNativeActivity: Sign in finished with a result of -3

Up2: sign-in success

must test with release mode

$ cocos run -p android -m release

         GamesNativeSDK  I  Auth operation started: SIGN IN
                         I  Connecting to Google Play...
                         V  Attached to JVM on thread main_dispatch
                         V  Play Games callback indicates connection.
                         I  Successfully connected to Google Play.
                         V  WelcomeBack Notification UI should be displayed by GMSCore.
                         V  ApplicationMetadataCache is not being seeded; this is normal on non-iOS platforms.
   TeapotNativeActivity  I  Sign in finished with a result of (VALID)
         GamesNativeSDK  V  PlayerLevelCache is not being seeded; this is normal on Android.

Up3

fix_cant_sign_in branch


#11

I’m planning later to try out this feature, in most cases login doesn’t work if wrong certeficate configured or in code is check for GPS version and if its not matching like canceling execution of code (there was such issue in sdkbox in previous versions)


#12

en, could you try out https://github.com/sdkbox/sdkbox-sample-gpg/tree/fix_cant_sign_in/cpp ?


#13

I started testing cloud save (iOS first)

I added this line

sdkbox::PluginSdkboxPlay::loadGameData(“key1”);

And the game is crashing, the error seems pretty clear but I think the app must handle this error without crashing.

game data failed:Error Domain=GKErrorDomain Code=27 “The requested operation could not be completed because you are not signed in to iCloud or have not enabled iCloud Drive.” UserInfo={NSLocalizedDescription=The requested operation could not be completed because you are not signed in to iCloud or have not enabled iCloud Drive.}

I am logged in to iCloud and I have iCloud Drive enabled on my phone.

Any clue?


#14

Ok, I think I found the problem.
I need to enable iCloud Documents.

I will post here everything I found about the cloud solution.


#15

I am getting this error when trying to save the cloud data on iOS:

Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “iCloud~com~ironhidegames~kingdomrush4_AEF6B2C8-78F3-4BB7-9B33-A540A3BBC698_n.bundle” in the folder “com.apple.ubiquity”." UserInfo={NSFileOriginalItemLocationKey=file:///private/var/.DocumentRevisions-V100/PerUID/501/d6/com.apple.ubiquity/iCloud~com~ironhidegames~kingdomrush4_AEF6B2C8-78F3-4BB7-9B33-A540A3BBC698_n.bundle/, NSURL=file:///private/var/.DocumentRevisions-V100/PerUID/501/

I tested on another user and it works, but on this user I always got this message. Could this be because this user has iCloud Drive enabled?


#16

It seems that user disable iCloud save. Whats the iOS version ?


#17

Is on my personal phone, I have other games that’s runs fine.

I am running iOS 10.3.1.

I can read the data on the cloud, the problem is when trying to save new values.


#18

did you solve this issue ?


#19

I am still getting the same error on this device :frowning:


#20

how to reproduce this issue?

  1. did you use the account in multi devices?
  2. plz double check you ware logged in to iCould and iCloud enabled?

because the error message You don’t have permission to save the file.