Before accessing the Miracle Games SDK, you need to initialize the SDK first, and after the initialization is completed, you can use all the functions of this SDK with the backend system. Generally, SDK initialization is done after entering the game.
//this is an Android Activity object. MGSdkPlatform.getInstance().init(this, new MGInitListener() { @Override public void onSuccess(String msg) { Log.d(TAG, "Initialization succeeded;" + "msg===" + msg); } @Override public void onFailed(String msg) { Log.d(TAG, "Initialization failed;" + "msg===" + msg); } });