Market Licensing Example always getting LICENSED

狂风中的少年 提交于 2019-11-27 08:34:08

问题


Despite changing the License Test Response to NOT_LICENSED in the Publisher's Edit Profile page, I am still receiving in the "Market Licensing Example" a LICENSED response.

I didn't modify the "Market Licensing Example" in any way (except for the mandatory BASE64_PUBLIC_KEY and changing com.example to 'com.somethingelse' of course).

What am I missing and how do I get the response I set in my Publisher's account for testing purposes?


回答1:


Answering myself:

In the Server Response Codes table, it says:

LICENSED: The application is licensed to the user. The user has purchased the application or the application only exists as a draft.

OK, so the question now is: How, on earth, am I supposed to learn what I need to learn from the "Market Licensing Example" if it always returns LICENSED and I cannot really upload it other than draft???

This is catch 22!




回答2:


I can change and get a reliable response IF I use a device with the developer account as its main account (good thing I have a couple of devices lying around...) or if the account has been added as test accounts (wouldnt work all the time).

Otherwise it will always say licensed with a VT/GT? attached as an Extra with a max long as value.



来源:https://stackoverflow.com/questions/6365118/market-licensing-example-always-getting-licensed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!