Win 10移动版上的严重错误IAP系统 [英] Critical Bug IAP system on Win 10 mobile

查看:92
本文介绍了Win 10移动版上的严重错误IAP系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,MS支持团队

我在调用方法时发现了一个关键问题  Store.CurrentApp.RequestProductPurchaseAsync(String,Bool) 

i find a critical issue when call the method Store.CurrentApp.RequestProductPurchaseAsync(String , Bool) 

导致交易总是成功且代码永远不会抛出异常,尽管您在游戏中取消或不购买该项目!

on win 10 mobile that lead to transaction always succeed and the code never throw exception although you cancel or not buy the item in game !

我的代码很简单

                   试试
                    {

                       等待Store.CurrentApp.RequestProductPurchaseAsync(pID,false);

                         m_StatePurchaseItemFromStore = 2; //购买成功!

                    }¥b $ b                    catch(例外情况)

                    {

                        m_StatePurchaseItemFromStore = -1; //购买失败!

                    }

                    try
                    {
                        await Store.CurrentApp.RequestProductPurchaseAsync(pID, false);
                        m_StatePurchaseItemFromStore = 2; // purchase succeed !
                    }
                    catch (Exception ex)
                    {
                        m_StatePurchaseItemFromStore = -1; // purchase fail !
                    }

但是在win 10 mobile上,虽然WP8或WP8.1或MockIAP lib正常运行但不抛出异常

but on win 10 mobile the exception not throw although the WP8 or WP8.1 or MockIAP lib run normally

这个问题在WP8上没有发生和8.1,因为我已经在商店下载了我的游戏,发布时间超过1年,使用IAP系统,这个问题也发生在win 10上(win 8和8.1没有发生),我认为这是来自IAP商店的Win10移动和希望
MS很快就会解决这个问题

this issue not happened on WP8 and 8.1 because i've downloaded my game on store that published over 1 year that used the IAP system and this issue also happend on win 10 (win 8 and 8.1 not occur), i think this is bug from IAP store for Win10 mobile and hope MS will fix this soon

我使用设备lumia 1520和win 10移动技术评论15053

i use the device lumia 1520 with win 10 mobile technical review 15053

对不起我的意见糟糕的英语!

regard and sorry for my bad english !

推荐答案

从该代码购买将始终成功。您需要检查PurchaseResults。如果用户取消或退回购买,我认为RequestProductPurchaseAsync不会抛出异常。这不自然。
From that code the purchase will always succeed. You need to check PurchaseResults. I don't think RequestProductPurchaseAsync will throw an exception if the user cancels or goes back from a purchase. That's not natural.


这篇关于Win 10移动版上的严重错误IAP系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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