WP8.1 and WP10 differences
Asked Answered
S

2

7

With Windows Phone 8.1, next line worked well but now when users are changing to Windows 10 phones, devices are failing.

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

As mentioned worked with WP 8.1 nicely and license information was read and stored nicely. Now with Windows 10 phones, that line just generates exception.

"Exception from HRESULT: 0x803F6107".

Same result with real devices as well with emulators.

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

Sulfaguanidine answered 18/12, 2015 at 21:58 Comment(5)
I am having a similar issue - for me it started when I updated Windows 10 to version 10586. My app was working under Windows 10 version 10240.Smokedry
Have you seen this answer: https://mcmap.net/q/1320522/-how-to-implement-in-app-purchases-in-windows-10-apps?Severin
@WiredPrairie, that answer is not for real WP 8.1 environment where CurrentApp.LicenseInformation is not working with WP10 phones.Sulfaguanidine
@user5696724 - I don't understand what you mean. The answer specifically mentions a change that is required when running on Windows 10 and how it affects the property you're using.Severin
@Severin The answer you link does not answer the above question because the answer is about development testing only. That involves using a completely different licensing mechanism (different classes as well as XML settings files). The question above is referring to production (not development testing) licensing.Smokedry
A
1

I had the same problem in my windows 10 universal app.

The solution for me was App Package creation for upload to the store. I you run this routine, it will create a Package.StoreAssociation.xml and a StoreKey.pfx files in project directory. The prerequisite for this is that app created in store.

I guess the app needs these files to get data from correct app in the store

Anatropous answered 15/2, 2016 at 12:23 Comment(1)
Did not help for me at allSyringa
S
0

The problem, at least for me, was that my Windows Store account was missing some information.

How did I come to this conclusion? I uninstalled my app from my machine. I then went to the MS Windows Store App. From there I re-installed my app. As a part of the process, the Store App complained that my account was missing this info: birthdate and location. I filled in this information, and continued the install process.

When the install from the store finished, I ran my app, and it worked!

If your problem is the same as mine, you could probably also try to download ANY app from the store to see if you are prompted for the missing information. If not, try to reinstall your app from the Store and see if that does it.

Smokedry answered 24/12, 2015 at 14:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.