Tech ed au 2012 dev223

204 views

Published on

My Windows 8 presentation at TechEd 2012.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Tech ed au 2012 dev223

  1. 1. 00
  2. 2. As of March 2012, IDC 690+M Windows 345M Android 196M iOS 32M Mac
  3. 3. Windows Phone Developer blog, March 2011
  4. 4. Time limited Feature differentiated
  5. 5. /* No code*/
  6. 6. Trial Conversion // get current product var currentProduct = Windows.ApplicationModel.Store.CurrentApp; // get the license information var licenseInformation = currentProduct.licenseInformation; // check to see if the user has an active non-trial license if (licenseInformation.isTrial) { // user has trial version of the application // prompt them to purchase before so we can enable full functionality currentProduct.requestProductPurchaseAsync().then( function () { // Purchase succeeded }); }
  7. 7. WindowsStoreProxy.xml
  8. 8. In-App Purchase // can’t do in-app purchase in trial mode, must convert first if (!appLicensingInformation.isTrial) { //load the listings with all the products currentApp.loadListingInformationAsync().then( function (listing) { //lookup a specific product var product1 = listing.productListings.lookup("product1"); if (!product1.isActive) { // purchase currentApp.requestProductPurchaseAsync("product1").then( enableProduct1 ); } });
  9. 9. Microsoft Advertisement Your own
  10. 10. www.windowsadvertising.com 321
  11. 11. 31 2 www.windowsadvertising.com

×