Windows Phone 8 IsTrial Marketplace -


i have windows phone 8 app , features, can used full version.

so user clicks on button

if ((application.current app).istrial) {     buy() } else {     //full feature }   private void buy()     {         marketplacedetailtask marketplacedetailtask = new marketplacedetailtask();         marketplacedetailtask.contenttype = marketplacecontenttype.applications;         marketplacedetailtask.contentidentifier = "82a23635-5bd9-df11-a844-00237de2db9e";         marketplacedetailtask.show();     } 
  1. is have do?
  2. when person buys app, istrial automatically set false?
  3. how change contentidentifier if don't know identifier app now?
  4. can change contentidentifier before put app in store?

app.xaml

    /// <summary>     /// licenseinformation class enables application determine      /// if running under trial license.     /// </summary>     private static licenseinformation _licenseinfo = new licenseinformation();       /// <summary>     /// property used cache license information while application running.      /// application uses property whenever current license information needs checked.     /// </summary>     private static bool _istrial = true;     public bool istrial     {                 {             return _istrial;         }     }       /// <summary>     /// check current license information application     /// </summary>     private void checklicense()     {          _istrial = _licenseinfo.istrial();      } 

regarding 2nd question.

yes, microsoft sets licenseinformation.istrial value based on user actions. if user buys app, istrial set false.

you should test purchase scenarios before submitting store. test currentappsimulator class. works in conjunction local xml file. populate xml file simulated licenseinfomation each scenario.

regard question #3, don't need specify guid, if leave contentidentifier null os app guid you.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -