UWP(桌面桥)许可证验证。如何从我的应用程序显示Microsoft Store的登录屏幕。 [英] UWP (Desktop Bridge) License Validation. How to show the Sign In screen of the Microsoft Store from my App.

查看:52
本文介绍了UWP(桌面桥)许可证验证。如何从我的应用程序显示Microsoft Store的登录屏幕。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,自今年开始以来,我们在Microsoft商店中运行了一个桌面桥应用程序。


我们已经进入学习曲线,一切顺利,在应用程序中购买等。


我们将产品作为SaaS销售,用户可以按月或按年付款。


我们遇到的问题是用户不是已登录Microsoft Store。


如果用户已登录,我们可以检索所有许可证信息,到期日期等,并将其与本地缓存信息交叉,但如果用户未登录我们在调用GetStoreProductForCurrentAppAsync时得到一个Null对象(JSON =>  DisplaySkuAvailabilities =>                   未记录。


我们如何显示登录窗口?


--------- ------------------------


我们尝试过互联网示例(没有成功): 


Dim authenticator = New Windows.Security.Auth entication.OnlineId.OnlineIdAuthenticator()

Dim serviceTicketRequest = New Windows.Security.Authentication.OnlineId.OnlineIdServiceTicketRequest(" wl.basic wl.contacts_photos wl.calendars"," DELEGATION&qu​​ot;)

Dim x = Await authenticator.AuthenticateUserAsync(serviceTicketRequest)



其余示例适用于纯UWP场景


----------------------------------



谢谢!



Felice,


解决方案


我想出了这个想法。您可以尝试显示提示并要求客户登录,同时您可以使用启动API启动Windows应用商店。


像这样:

 bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri(" ms-windows-store:// navigatetopage /?Id = Games")); 


您可以在此处获取更多信息:启动Microsoft Store应用程序


祝你好运,


Roy


Hi we have a running Desktop Bridge App in the Microsoft Store since the beggining of the year.

We already went to our learning curve, everything run smooth, in App Purchases etc.

We sell our product as a SaaS, user can pay monthly or anually.

Problem that we have is when the user is not logged in the Microsoft Store.

If the user is Logged we can retreive all the License Information, Expiration Dates etc, and cross that with the local cached information, but if the user is not Logged we get a Null Object when calling the GetStoreProductForCurrentAppAsync (JSON => DisplaySkuAvailabilities=> Sku=> CollectionData)

At that moment we know the user is not logged.

How can we display the Sign In window?

---------------------------------

We have tried the internet example (without success): 

Dim authenticator = New Windows.Security.Authentication.OnlineId.OnlineIdAuthenticator()
Dim serviceTicketRequest = New Windows.Security.Authentication.OnlineId.OnlineIdServiceTicketRequest("wl.basic wl.contacts_photos wl.calendars", "DELEGATION")
Dim x = Await authenticator.AuthenticateUserAsync(serviceTicketRequest)

The rest of the examples are for pure UWP scenarios

----------------------------------

Thanks!

Felice,

解决方案

Hi,

I come up with a idea about this. You could try to show a tip and ask the customer to sign in and at the meantime you could launch the windows store app using launching API.

Like this:

bool result = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-windows-store://navigatetopage/?Id=Games"));

You could get more information here:Launch the Microsoft Store app

Best regards,

Roy


这篇关于UWP(桌面桥)许可证验证。如何从我的应用程序显示Microsoft Store的登录屏幕。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆