c# - Does Guide.IsTrialMode work in MonoGame for a Windows 8 Store App? -


i've been using xna make games xbox , windows phone 7. want create metro windows 8 store app, using monogame.

i've jumped through hoops , got working, having issue guide.istrialmode.

i have separate logic depending on whether game in trial mode or not works on other platforms, when test app either on local machine, or in simulator thinks i've not purchased game. worry when it's on app store , people buy it, logic won't change.

tl;dr: guide.istrialmode work in monogame windows 8 store app , how can test it?

edit: in debug, can set guide.simulatetrialmode in order test 1 way or other, seems.


so here information regarding trial mode in windows 8 store apps:

create trial version of app

licenseinformation class

basically, utilizes bool flag licenseinformation.istrial. if dig monogame source code on github, can see how implement check:

#if windows_storeapp     var licenseinformation = currentapp.licenseinformation;     ...     istrialmode = !licenseinformation.isactive || licenseinformation.istrial; #endif 

so, seems licenseinformation either not set active, or set trial if having issues testing. first link has information on how test it, i'm not sure how extend monogame:

now, test app using simulated calls license server. in javascript, c#, visual basic, or visual c++, replace references currentapp currentappsimulator in app's initialization code. currentappsimulator gets test-specific licensing info xml file called "windowsstoreproxy.xml", located in \microsoft\windows store\apidata. if path , file don't exist, must create them, either during installation or @ run-time. if try access currentappsimulator.licenseinformation property without windowsstoreproxy.xml present in specific location, error.

i guess in worst case, can build monogame yourself, changing currentapp currentappsimulator.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -