Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Adding trial experience in your game!

Discussion in 'Windows' started by Mario200, Nov 7, 2014.

  1. Mario200

    Mario200

    Joined:
    Mar 4, 2014
    Posts:
    2
    Hello

    I'm trying to make a trial version of my game and i'm using the "UnityEngine.Windows.LicenseInformation.isOnAppTrial" to test if my game is in trial mode and "UnityEngine.Windows.LicenseInformation.PurchaseApp()" for buying the game. The problem is that the "isOnAppTrial" doesn't seems to working,it always returns false even if i download the game from the store as a trial with a new windows account. Is there any additional work that i have to do in my "Selling Details" section on my developer account apart from set a free trial period that never expires? I also tried to use the Windows Store Plugin from Prime [31] but i couldn't find any tutorials...

    Thanks.
     
  2. pumpkinszwan

    pumpkinszwan

    Joined:
    Feb 6, 2014
    Posts:
    214
    There is a new plugin in the Asset Store called WinRT Bridge (I think), which is free and has this functionality.

    It should be as simple as a bool check to see if the app is a trial or not.

    You don't need to do anything else on the Windows Dev Center except of course allow trials and set the time period.
     
    Mario200 likes this.
  3. Mario200

    Mario200

    Joined:
    Mar 4, 2014
    Posts:
    2
    Thank you for your reply, but it seems that eventually it works! Ο.ο And for your information, If you bought a game from the store and then make a new account and try to download the same game (with the new account) you will get the full version again!
     
  4. sevensails

    sevensails

    Joined:
    Aug 22, 2013
    Posts:
    483
    isOnAppTrial seems to be always returning false to me, even If i download my game on trial mode. How did you fixed it?