When I implement InAppBilling, the Following screen appears.. I used this link
http://blog.blundell-apps.com/simple-inapp-billing-payment/
for implementing InAppBilling
so where am I wrong?
Most likely you are using a version of the app that is signed with your debug key or you are trying to purchase using your developer account which is not allowed.
You should also have uploaded an apk to Play store that has the billing permissions (although you do not need to publish it)
You need to sign your apk with your release key. Trying to purchase in debug mode will not work.
See this link for full testing instructions.
http://developer.android.com/guide/google/play/billing/billing_testing.html
May be you are running this app from eclipse directly.
Whenever you are using In-App purchase in your app.
Export signed APK then try out this...
Related
I have a general question about android and debug in-app purchase.
I have developed my application and I am stuck to test the purchase of my product.
If I launch the application on my phone from Android Studio I have an error, something like there is no product. I think my application is not identified/accepted by the Play store.
If I create a release and install the application from the play store I can purchase the product but I do not know if it's working. My application react like if it's ok but I can't check it. I use a test account consequently I do not pay and I do not see the purchase in my account. Is there somewhere we should see the tests purchases ?
Finally, now if I try to launch the application on the phone from Android Studio, Android Studio tell me the sign key is different and I need to uninstall the application first.
I think my problem is there, I should be able to have the same sign keys this way I can test/use the play store from android studio directly ( and have the debug mode ...).
I have configured the build process with the same configuration that in "Build -> Generated signed bundle" but it's not working.
Is there something like Google sign the app with a specific key to authorized it to access to the play store ?
How should we debug the process of purchase in the play store ?
I'm trying to create an android app that authenticates with Google account.
After hours of struggling I see that when I remove the Signing from my android app, the Google authentication works perfectly; instead, when I Sign the application, suddenly it gives me an "Internal Error", hence I cannot authenticate with Google account.
For a better comprehension:
I Sign the app as below following Android Developers Steps.
With the signed App, the authentication with Google doesn't work.
If I remove the config that describes the Signin than I can normally authenticate with Google account, otherwise it's simply an internal error as follows:
I'm a complete newbie in android programming, so I'm asking here if anyone has some reference or input to give me in order that I can understand the problem and what to look for (I've been searching in the web but still now nothing matches my problem).
Thanks!
Are you using release google-services.json ? It should contain your release certificate SHA-1.
Probably you're using debug certificate SHA-1, if that's the case, it will only work with debug signed apps. For release signed apps you should generate again google-services.json with the appropiate SHA-1.
I'm attempting to get https://github.com/j3k0/cordova-plugin-purchase working for Cordova/PhoneGap and I'm getting an "Invalid" error when I try to retrieve the product info.
I don't know what I'm doing wrong, but here is what I have done:
The plug-in is installed with the proper billing API key in platforms\android\res\values\billing_key.xml
The store.ready() event does fire without errors, so I know I'm at least connecting.
I've uploaded a signed APK to Beta and published it.
I created an in-app purchase and confirmed it is active.
I confirmed I'm calling the right product ID within the code by hard-coding the ID.
I get callbacks from store.when("product").updated(fnProcessProduct), but the product.state is always store.INVALID
Is there something I'm missing, either within Google Play, PhoneGap, deploying, or the plug-in?
Got the answer - once you upload an APK to Google Play as beta and activate your IAP product, you must test using APKs signed with the same key. I was using Ionic, and Ionic was signing with a debug key.
More info: https://github.com/j3k0/cordova-plugin-purchase/issues/75
I'm implementing IAB v3 into my application and I have done following steps:
Published signed APK into Alpha testing and added a test purchase product
Created a Google group which are allowed to be testers and added a test account into the group
Accepted to be a tester in my device
Took example code from TrivialDrive example into my application
IabHelper setup is OK but says there are no SKUs.
So now I'm trying to figure out that with what package can the IAB feature be developed further. The documentation says that the package must be the Google Play version, someone say that you can build signed package all over but must use same keystore for signing the package.
Isn't there a fast to to just launch the application with Eclipse Run As Android Application, so I can see logs and use debug mode if I want?
Thanks.
EDIT
Looks like the purchases can be done with simply launching the app with Eclipse, not sure if the debug keystore which I made from my release keystore has affect on this. The SKU ids must be hard coded in the client/own server so I misunderstood the IabHelper query part.
Here is sample sku id for testing inApp purchase.
static final String ITEM_SKU = "android.test.purchased";
Here is good tutorial.
http://www.techotopia.com/index.php/Integrating_Google_Play_In-app_Billing_into_an_Android_Application_%E2%80%93_A_Tutorial
I set up test users so that I can test that in-app billing works, but I am a bit confused by the process.
I am following the android developer billing test guide here: http://developer.android.com/guide/google/play/billing/billing_testing.html
It has a few confusing points. It says not to publish your app, but somehow I need to get the app on my phone. So how can I get an un-published app on my phone?
Also, am I supposed to make an area on the app with the 4 product ids that google reserves and try to buy those, and then once I see it works, just get rid of those buttons to buy those test products? Is that how this is meant to be done?
Thanks!!
It says not to publish your app, but somehow I need to get the app on
my phone. So how can I get an un-published app on my phone?
There's no need to publish your app to get it installed. Create a signed build (See http://developer.android.com/tools/publishing/app-signing.html). Then install it on your phone using adb install <apk name> The SAME build you must upload to your playstore dashboard. After uploading, you will see 2 options:
PUBLISH
SAVE
Click on 'SAVE'. After saving your uploaded app, you will be able to add InApp products for that app. You MUST save and publish your inapp products in order to test them.
You should upload the apk to your developer account and fill in the mandatory fields and save it without publishing it and then you can create in-app products for the application and publish it. please note that the in-app products must be published before testing billing. But you don't require to publish the application to test billing.
Try the MoVend library for Android. it supports google play in-app billing, paypal and many more.
http://www.movend.com/
How to sign an android apk file
To install it you can use adb or you can send this file by mail. Then download in the device and install it.
Check that Settings > Applications > Unknown sources is checked in the Device.
If you are having problems implementing in-app purchase I recommend you the library AndroidBillingLibrary.