Exemplo n.º 1
0
 public void RequestRating()
 {
     StoreReview.RequestRating();
     // if (StoreReview.CanRequestRating())
     //     StoreReview.RequestRating();
     // else
     //     NativeUI.Alert("Alert", "The rating popup could not be shown because it was disabled or the display constraints are not satisfied.");
 }
Exemplo n.º 2
0
 public override void OnEnter()
 {
     if (popupBehavior == RequestRatingBehaviorOption.DefaultBehavior)
     {
         StoreReview.RequestRating();
         Finish();
     }
     else
     {
         StoreReview.RequestRating(null, RequestRatingCallback);
     }
 }
Exemplo n.º 3
0
        private void ShowRateAppDialog()
        {
            if (!StoreReview.CanRequestRating())
            {
#if UNITY_IOS
                UnityEngine.Application.OpenURL(StoreAppleLink + appleId);
#else
                UnityEngine.Application.OpenURL(StoreGooglePlayLink + UnityEngine.Application.identifier);
#endif
                return;
            }

            StoreReview.RequestRating();
        }
Exemplo n.º 4
0
        IEnumerator MakeRatingRequest(float delay = 0f)
        {
            yield return(new WaitForSeconds(delay));

            StoreReview.RequestRating();

            if (requestMode == RequestMode.GameBased)
            {
                PlayerPrefs.SetInt(LAST_REQUEST_GAMES_PLAYED_PPK, GetGamesPlayed());
            }
            else if (requestMode == RequestMode.TimeBased)
            {
                Utilities.StoreTime(LAST_REQUEST_TIME_PPK, DateTime.Now);
            }
        }
Exemplo n.º 5
0
        public void RequestRatingLocalized()
        {
            if (!StoreReview.CanRequestRating())
            {
                NativeUI.Alert("Alert", "The rating popup could not be shown because it was disabled or the display constraints are not satisfied.");
                return;
            }

            // For demo purpose, we translated the default content into French using Google Translate!
            var localized = new RatingDialogContent(
                "Évaluation " + RatingDialogContent.PRODUCT_NAME_PLACEHOLDER,
                "Comment évalueriez-vous " + RatingDialogContent.PRODUCT_NAME_PLACEHOLDER + "?",
                "C'est mauvais. Souhaitez-vous nous donner quelques commentaires à la place?",
                "Impressionnant! Faisons le!",
                "Pas maintenant",
                "Non",
                "Évaluez maintenant!",
                "Annuler",
                "Réaction"
                );


            StoreReview.RequestRating(localized);
        }