Access to AnySDK Services
AnySDK is a third party solution that offers game developers SDK integration without making changes to the SDK's features or parameters. It can do all of this while remaining invisible to your end user. Our goal is to handle all the tedious SDK integration work for you so that you can use your time to focus on the game itself. No matter if it's the channel SDK, user system, payment system, ad system, statistics system, sharing system or any other type of SDK.
Currently supports the Android / iOS / Web platform. Note: The Web platform only supports channel SDK access and must use the AnySDK Enterprise Version. For more information, please refer to AnySDK Enterprise Version.
This document is based on v2.0.7, and if the user is using a version before v2.0.7, please refer to the old version document.
Because the AnySDK service only supports games under the company account, you need to go to Cocos Account Center first, click the Company tab in the sidebar. Then join an existing company or create a new company as needed. Please refer to AnySDK document for details. You can create a game in the following two ways:
Create a game through the Cocos Account Center
Create a game with a AnySDK Client
Download the standalone AnySDK client from the AnySDK Website to create a game and package. Login AnySDK client and create a new game according to the prompts, you can obtain AppKey AppSecret PrivateKey, which will be used later. Please refer to Create Game for details.
After the game is created, you need to open AnySDK service. Click the game in the game list in the Cocos Account Center or click the Service tab at the top of the page to jump to the service panel. Select the corresponding game on the left side of the service page, then find the AnySDK service, click Open Service. you can see the AnySDK service on the page display opened.
If the developer needs to integrate User and IAP system, the game server must deal with verification and payment attestation related logic, refer to the following two documents for access.
First, open the Cocos Creator and click the Menu bar -> Panel -> Service to open the Service panel. Set up Cocos AppID, be careful to select a company game. Please refer to Cocos service settings for details. Then select AnySDK to enter the AnySDK service Settings panel.
Second, click the enable button in the upper-right corner to enable the AnySDK service. (If the AnySDK service is not opened in the Create game step, then when you enable the AnySDK service, it will pop up
whether to open the AnySDK service prompt box, according to the prompt to operate.）
Third, when enabled is complete, the service panel displays Installing, and after the installation is complete, you can see that the Parameter configuration item has been added to the panel, fill in the parameters.
Parameters can be obtained in the following three ways:
- Click Dashboard in the AnySDK service panel to enter the AnySDK Developer Center to get the parameters, as pictured above.
- After opening the AnySDK service in the Cocos Account Center, click Dashboard directly to enter the [ANYSDK Developer Admin Background] to get the parameters.
- Get parameters in the Configuration Management -> Game Management of the AnySDK client.
OauthLoginURL parameter is the address that fills in the game server for login verification (Users can fill in any if they are not accessed).
Fourth, when the parameter settings are complete, click Save. Then open the Build panel, according to the user needs to select the platform for building compilation. And the AnySDK service has been automatically integrated into the built publishing package.
According to the requirements of the game, refer to the following document to invoke the interface of each system.
- User System
- IAP System
- Analytics System
- Share System
- Ads System
- Push System
- Crash System
- AdTracking System
Use the AnySDK client to open the game, add channel to the game and access the required SDK, Config SDK parameters what you need to obtain from SDK background, select the vendor-apk, and then you can package. Please refer the AnySDK Client Document for details.
- The Android platform compiles the generated APK package as the vendor-apk for the AnySDK client package.
- The iOS platform builds the generated Xcode project directly as the vendor-apk for AnySDK client packaging.
- Web: No need to package，only need to config channel parameters.