OnlineSubsystem support for Google Play cloud save is not implemented for Android at this time.
Currently the GoogleApiClient.Builder in GameActivity.java does not add the .addApi(Drive.API).addScope(Drive.SCOPE_APPFOLDER). You can add this, then implement the rest of the calls in Java to call with JNI from C++.
I’m really appreciate about your answer. Thank you.
but unfortunately still i don’t know how…
i don’t have experience java code.
you already give me a lot of information but i don’t know what should i do with this.
Could you give me some more information about implement google play cloud save to Unreal Engine 4?
i’m not asking full tutorial. just little more… hints.
at least i want to know:
what is this code “.addApi(Drive.API).addScope(Drive.SCOPE_APPFOLDER)”?
and what should i do with this code?
If you look in GameActivity.java you will find this code:
// Build Google Play API Client
googleClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(Games.API).addScope(Games.SCOPE_GAMES)
.addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN)
.build();
what I meant was add the “.addApi(Drive.API).addScope(Drive.SCOPE_APPFOLDER)” to it.
Then, you’ll need to add the necessary Java code like in the example on the page you referenced and add JNI code to call from C++ to Java to use it.