In App Purchase Getting product details programmatically - android

Is it possible to get the price of In App Products programmatically?
I would like to show the price of the in app product on my buy button. Is there any service provided by android like "getInAppProductPrice(productId)".
The reason I need this is because, if I edit the price of a product at a later time, I would like to get it reflected in my application buy button automatically rather than hard code the price.
In the android market checkout screen, the price is shown. So some service should be available? Is it open to us ?

V3 of in app billing now has such helper functions, you want getSkuDetails()
http://developer.android.com/google/play/billing/billing_reference.html#getSkuDetails
Unfortunately it does not support getting a list of all available products which would be nice to have

Android Market API was working fine till Dec 15th 2011. It is not working as of now.That API used to give information on the market app. You can retrieve data, but I have never heard of anything which would help the developer to programmatically change the pricing details.

Related

How to know users google play country from inside the android app?

We have some in-app products and subscriptions. The price varies from one country to another. The problem is that we dont know how to detect the country within the app. We are guessing based on a few things but what happens is that we guess the country and show him x price and when the user proceeds to google payment, google detects another country (based on playstore account?) and shows him y price. This is a violation of google policy and they want us to fix it. But how do we fix it? Is there an api which we can call to know the country which matches with google's understanding of the country.
(It has been repeated but about 8 years ago.. so i am not sure if something has changed since)
Why don't you try to get Locale from the system & perform operations further according to it..
Try this thing to get the current locale of the user
Locale current = ConfigurationCompat.getLocales(getResources().getConfiguration()).get(0);
If you need some more information regarding it, let me know.
-------------- EDIT ------------------
follow the link below for detailed information, it not possible to get the country linked with play store account for now. But you can trick around to fix it.
Determine Play Store Country

What does "Status" mean in the In App Billing section?

I'm trying to implement the in app billing service in my app (for test-purposes currently). Have tried to check out resources and documentation but I haven't found any on what the status means and for what purpose.
This is what I'm talking about in the console:
If I set it as Active, does it mean that I can only make a real transaction?, where as I want to test only. Kindly help me understand this in detail.
If the status is inactive, it means that the item won't be available for purchase nor for testing. Whereas if the item is active, it means the product is available for purchase for testing purposes(not published on the play-store) and for commercial purposes(published).
Check out this link creating a managed product

How can an age restriction be applied to an Android app?

I'm working on an Android app where a user must be 18 years or older to apply.
If there will be people under 18, the app would have negative public view which I do not want to deal with.
Is it somehow possible to be sure that my users are older than 17? Is there any service which could possibly accomplish this?
Ideal fictional solution: in my registration form the user writes his/her id number and I would check if he/she is old enough with fictional service.
One not very good solution which I found. There is an app called Muzmatch. It is dating app for Arabs. When the user register he have to use device camera to take picture of himself and send it to server.
I can do the same in my app and check if the user seems old enough but I think it's stupid idea.
Yes this is possible through the Google Play content rating system.
Check out the link: https://support.google.com/googleplay/android-developer/answer/188189?hl=en-GB
Scroll down to the Take your app’s rating questionnaire section and it'll run you through the steps to apply an age rating to your app.
In addition to this, maybe you could create a free in app purchase, that the user will have to buy when first entering the app. They would then need either a password or finger print in order to pay via Google Play.

Is moving IAB purchases between apps possible?

I have 3 apps, that im now looking to merge into single one. Each app had its own set of IAB items. The new merged app will have all the IAB items aswell, however is it possible to tell if user has purchased given IAB item in the previous app so I can enable it in the new merge-app without paying again? Im looking for a solution different than handling sending the data to my own server, and downloading it in the new app etc. Ideally Google Play internally. Is this possible? Thanks
Is this possible?
No, You have to handle this with the help of your server. Google does not take care of what items you have bought from other app, if same item is available in different app then it would be consider a new different.
Simply, I guess that you have information of users who have bought items from your 3 apps, you can call web service, if user had bought then give all services to user otherwise ask for to pay.
Each app has its own product list. You cannot sell items that appear on another app's product list.
Google is not provding any way to do so.

get app download count from android market

I can use android-market-api to get nearly all information about my app from Android Market.
But with published function from android-market-api, I cannot get download count number as it is in the Publisher's page (market.android.com/publish)
Is there any way to get this number with my android market developer account?
Thank you.
You can try using Google Analytics in your app (you'll get a lot of useful stats) and then use Analytics API to track download counts and source.
Are you looking for the exact numeric download count or a range? Because downloadsCountText (which you can get) will give you the latter.
I'm confusing by how you asked the question. If you have no access to the Google Developer Console, you can only search for it on Google Play and get an estimated range.
If you do, select the app, then click the first tab at left called "Statistics". It will give you a more detailed sales graph.

Categories

Resources