Unity/Csharp/アプリ評価/Unityライブラリ利用
提供: 初心者エンジニアの簡易メモ
サンプル
アプリを評価使用方法
AppPage appPage = new AppPage(); appPage.Review();
アプリをページ遷移使用方法
AppPage appPage = new AppPage(); appPage.Open();
AppPage.cs
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AppPage { string appleId = "1357901xxx"; public void Open () { #if UNITY_ANDROID string url = "market://details?id=" + Application.identifier; Application.OpenURL(url); #elif UNITY_IOS string url = "itms-apps://itunes.apple.com/jp/app/id" + appleId + "?mt=8"; Application.OpenURL(url); #endif } public void Review () { #if UNITY_ANDROID string url = "market://details?id=" + Application.identifier; Application.OpenURL(url); #elif UNITY_IOS UnityEngine.iOS.Device.RequestStoreReview(); #endif } }
参考
https://develop.hateblo.jp/entry/iosapp-store-review-window
https://kan-kikuchi.hatenablog.com/entry/iOS_Device_RequestStoreReview
http://kan-kikuchi.hatenablog.com/entry/RequestReview