jjzjj

applicationUsername

全部标签

ios - 如何分配 skpayment 应用程序用户名

我们可以分配skpaymentapplicationusername吗?应用内购买完成后,我在SKPayment中得到一个空的applicationUsername。如何为SKPaymentapplicationUsername赋值? 最佳答案 您不能为SKPayment的属性赋值;当您创建SKMutablePayment实例以提交购买请求时,您的应用程序可以提供一个代表应用程序用户ID的不透明值。这使iTunes商店能够检测到不正常的事件。尽管名称如此,applicationUsername属性并不意味着保存实际用户名。建议的方法

ios - 可以重新使用 SKPayment.applicationUsername 吗?

关于SKPayment.applicationUsername,它说here...Thisisusedtohelpthestoredetectirregularactivity.Forexample,inagame,itwouldbeunusualfordozensofdifferentiTunesStoreaccountsmakingpurchasesonbehalfofthesamein-gamecharacter.Therecommendedimplementationistouseaone-wayhashoftheuser’saccountnametocalculatethev

ios - Apple 应用内购买 : How apple use the applicationusername to Detecting Irregular Activity?

在苹果的文档中,它说开发者可以使用applicationusername来DetectingIrregularActivity,但我不知道如何使用它。文档只是说散列一个userId,但我如何检测不规则事件?苹果的服务器有服务器API通知我吗?链接在这里:https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/RequestPayment.html#//apple_ref/doc/uid/TP40008267-CH4-SW6

ios - SKMutablePayment 属性 : applicationUsername

我正在我的应用中实现应用内购买,并且我正在使用非消耗性产品。我的应用程序中有用户登录,为了防止不规则事件,苹果建议使用applicationUsername属性,这样我就可以随付款一起发送用户的用户名。一切正常,我可以设置payment.applicationUsername属性,我可以在购买完成后以SKPaymentTransactionStatePurchased状态取回它。问题是,当我尝试使用restoreCompletedTransactionsWithApplicationUsername:方法恢复我的事务时,applicationUsername属性返回NULL。你能帮帮我