I want to get expiration date of an subscription (in-app billing) but it seems to be that Google Play Developer API is designed just for server (backend) use. Am I right?
There is another way to get full subscription details?
Related
I have read lot of documentation and blogs but could not find a concrete answer.
So I have an app where I need to integrate in-app weekly subscription and also have a backend server that stores user data so when the purchase is made I send data to the server that user is subscribed and update database and give the user access to the app.
I wanted to know how to handle the cases when a subscription is cancelled or ended. How to check that in the app?
What is the best architecture look like for In-app billing and Server?
Google Play doesn't have important documentation and even the lastest documentation for Billing 3.0 has some bugs, but if you are just looking for process and can figure out the code for yourself here is the in-app subscription architecture described by google on their official Android Developers channel on youtube. https://www.youtube.com/playlist?list=PLWz5rJ2EKKc9J8ylTbNo1mnwciEyMbxZG
I'm a beginner learning android app development.
I have a requirement for a user to be able to Read messages (just the body content - text only) from a Gmail account (Read-only mail extraction?) and save the email content within the app.
I don't need to retrieve messages when the user is not actively using the app.
The app and SQLite database I am building sits on the phones internal local storage. I do not have a backend server.
I have looked at the Gmail API tutorial here: https://developers.google.com/gmail/api/guides/
As I understand, I need to use the Gmail API and ensure that a user of my app can authenticate as a Gmail user.
Is anyone able to advise:
1) if this is feasible to do without a back end server?
2) any tutorials as to how to approach this, or would you recommend just working through the material I listed above?
3) (I understand this is highly subjective) how substantial a task this is to undertake for a learner (This is an educational project, so I am limited by time - if it takes me more than 3-4 days I will run out of time!) An idea as to how long it might take someone who is experienced would help me to grasp the scale of the task.
Google uses Oauth2 to authenticate and track applications connected with a user's account. You will need to get a security key for app from google. Because you do not have server, you will want to get a client only key and not the service key. You can get the client key by going to the Google API Console. For help about how to let the user sign-in to their account you can look at this Android tutorials here. After you get the google sign-in working you can continue on to getting the Gmail messages.
It may seem like a complicated process, but you should be able to have in working in a short amount of time if you go through the tutorials on Google's developer's site. I got a similar app working in only about an hour. To add a nice user interface will take longer, but thats up to you.
H, i want to use google paid translate api, i have enable billing and activate that api from google console service
i have also generated the android key
but every time i am getting error like below screen
"Access Not Configured. Please use Google Developers Console to activate the API for your project.
I am trying to use the YouTube Analytics API in an android app I'm writing but I'm stuck.
All of Google's documentation I've read says that I am required to use the client_secret when querying YouTube. However, when I registered my app with the APIs Console it did not give me a client_secret.
my API console
How do I access the API without the client_secret, as well how do I use the refresh token without the client_id. I have been working on this for 4 days now and I haven't been able to find the answer.
Client secret is just an option in Android, you can use AccountPicker
In the YouTube Direct Lite Sample project, there is a great example of usage you can check. It's using AccountPicker to pick account then authorizes though GoogleAuthUtil
I have a web base email client that uses a java app to connect to IMAP and POP3 servers to download email. There is an issue that if a user usually logs in form the US that the java app will not have access to collect emails until that user logs in from the same county the java app is running.
I was told to overcome this to use google oAuth in order for the account user to give permission to my app to collect emails. Is this correct? Once this has been accomplished I would also like to the the API to import contacts, but for now authorization/authentication is sufficient.
The problem I am facing is that after trying to make heads a or tails of the google oAuth api documentation im really confused and did not yet manage to make a working example. Documentation often has links to a depreciated API and there is no example with a dowload link to both the API needed and exaple source code, as a result I think im using incorrect libraries for my examples.
Its also not clear to me what/how to accomplish what is needed do I use client authentication via javascript to create a popup whereby the user grants access?
Or do I use installed app client with a token and secret, this is what I tried but the 'command line' example I tried requires Java EE and this is a native app so I dont see why and I dont want to import all Java EE libraries to my small email downloader app.
Where can I find more intuitive documentation and working examples on this?
If you stay away from OpenID 2 and OAuth 1, I think the docs are pretty orderly these days. The best place to start is https://developers.google.com/accounts/docs/OAuth2