Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Google IAP Error: Authentication is required. Huh?
Started by J. A. Whye Jan 12 2015 02:54 PM

54 replies to this topic
android iap in-app purchase authentication google play
[TOPIC CONTROLS]
Page 3 of 3 1 2 3
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#51

waltsir

[GLOBAL: userInfoPane.html]
waltsir
  • Contributor

  • 172 posts
  • Corona SDK

Your right, it was in Beta but nothing happened so I pressed the button to convert it into "production"... not correct?

Did you mean, the apk must stays in Alpha/Beta then press the button "Publish" (and so, I need to fill all formulars with all screenshots, icons, prices,categories, etc..) just to test this sample code?

 

What do you mean by "android.test.purchased"? Where do you see this?



[TOPIC: post.html]
#52

smithsun00

[GLOBAL: userInfoPane.html]
smithsun00
  • Enthusiast

  • 87 posts
  • Corona SDK

Yes. the app should be in alpha/beta mode when you publish it. Production mode means it is now on the google play store available for download by the public.

You do not have to add all details when you publish it in beta mode, but you do need to add all required data like images and so.

You don't even have to use the real images. just google some images in the same resolutions you need for each one and use it for now. Of course remember to replace it when publishing in production mode. In description just write a word or two.

 

Look for the Testing with Static Responses section in the middle of the next link: 

http://developer.android.com/google/play/billing/billing_testing.html

it will explain to you the idea of testing demo purchases that just return "purchase"/"cancelled" and the like, instead of real buying.

The link in general will guide you in testing your app on google play.



[TOPIC: post.html]
#53

waltsir

[GLOBAL: userInfoPane.html]
waltsir
  • Contributor

  • 172 posts
  • Corona SDK

Ahhh okk!!! It was so confused in my mind (publication and production) and in same time strange to add fake data just to test a sample code! Well, thank you, I think I will reach the goal soon! :)



[TOPIC: post.html]
#54

ivan888

[GLOBAL: userInfoPane.html]
ivan888
  • Contributor

  • 397 posts
  • Corona SDK

Hi Jay (J. A. Whye),

 

May I ask how you solved this problem at the end?

 

I have very troubling experience with this:

1) IAP worked while app was tested in Alpha.

2) Promoted my app to Production.

3) IAP did not worked (adb reported the same problem as in your case).

4) Tried even on other peoples phones... same error happens to them while app was in production.

5) Unpublished my app and renamed it.

 

------------------ NEW APP

6) Signed new app with completely new keystore (app is published in Alpha).

7) IAP`s are active in Google Play Console.

8) Same problem again!

 

 

One last question:

My app is FREE with IAP inside.

 

Are following lines required for FREE apps:

 

main.lua

local licensing = require( "licensing" )
licensing.init( "google" )

build.settings

"com.android.vending.CHECK_LICENSE",

Edited by ivan888, 12 January 2016 - 06:20 AM.


[TOPIC: post.html]
#55

waltsir

[GLOBAL: userInfoPane.html]
waltsir
  • Contributor

  • 172 posts
  • Corona SDK

When the Beta was published my problem was fixed and the app in production workded too. In my build seeting I use also :

 

"com.android.vending.BILLING",




[topic_controls]
Page 3 of 3 1 2 3
 
[/topic_controls]