How the Unity app opens the store

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.