Differences between WP8.1 and WP10

On Windows Phone 8.1, the next line worked well, but now that users are changing to Windows 10 phones, the devices are not working.

ProductLicense inAppLicense = CurrentApp.LicenseInformation.ProductLicenses["Keyfor"]; 

As already mentioned, it worked well with WP 8.1, and the license information was well read and saved. Now with Windows 10 phones, this line just throws an exception.

"Exception from HRESULT: 0x803F6107."

The same can be said about real devices with emulators.

So, how can I check LicenseInformation on Windows 10 phones with WP 8.1 working environment (i.e. code made with 8.1 projects)?

+6
source share
2 answers

I had the same problem in my universal Windows 10 application.

The solution for me was to create an application package for upload to the store. I started this procedure, it will create the Package.StoreAssociation.xml and StoreKey.pfx files in the project directory. A prerequisite for this is that the application is created in the store.

I think the application needs these files to get data from the correct application in the store

+1
source

The problem, at least for me, was that there was no information in my Windows Store account.

How did I come to this conclusion? I uninstalled my application from my machine. Then I went to the MS Windows Store app. From there I installed the application again. As part of the process, the Store application complained that this account was missing this information: date of birth and place. I filled out this information and continued the installation process.

When the installation from the store was over, I launched the application and it worked!

If your problem is the same as mine, perhaps you can also try downloading any application from the store to see if you are requested for missing information. If not, try reinstalling the app from the store and see if it does.

0
source

All Articles