0x00: Foreword Game all needs edition to update, this article briefly introduced the Unity development game how to instruct the player to download the new version in the App Store.
0X01: Version detection Server to determine whether the client needs to update, when the client received the server sent "version is too low, need to update" reminder, if the player to the store to find a new version of the upgrade, it is estimated that a lot of users lost. The good plan is as follows: A, the detection version is too low, the pop-up "clicks the Update" dialog box B, clicks, jumps to the App Store C, the user clicks the download, the update succeeds D, opens the new version app
0x02: Open the store call unity from the OpenURL function can jump to the corresponding store, the code is as follows:
public static void Openappstore (string appID)
{
#if unity_android &&! Unity_editor
application.openurl ("market://details?id=" + AppID);
#elif Unity_ios &&! Unity_editor
application.openurl ("itms-apps://itunes.apple.com/app/id" + AppID);
#else
Debug.Log ("Can not open App Store in editor");
#endif
}
Description: A, iOS AppID can be obtained through the itunes link, such as our game Link: https://itunes.apple.com/app/id1238589899,1238589899 for IOS AppID B, Google Play's ID is obtained via a store link, such as our game Link: https://play.google.com/store/apps/details?id=com.oasis.movten.android, Com.oasis.movten.android for Android AppID