I have a server backend endpoint written in java and have successfully implemented the generated client code in iOS but trying to make sense of how I can implement or consume the generated code in the android studio for the backend endpoint? I see google documentation for generating client for android and on same page shows step no.5 where it says add the generated jar to the android studio to consume endpoints from android , but how you consume the api? i see examples from google where it shows only google endpoint written in android and consumed in android also, where is the documentation or sample to follow consuming a server endpoint generated code from server project to client in android.
I have seen lots of threads but i don't seem to find any single step by step documentation where you can follow it or implement it.
Related
I'm pretty new to Android / mobile programming.
Is it possible to create an Android App that talks directly to the Google Photos API without my own server / backend? I see most of the examples have a Java server, but for the simple app I'm trying to build, I don't want/need the extra server.
In particular, the part I'm struggling with is obtaining Credentials used in this class [1] from Android. I can't figure out how to get a refresh token, and the included code on github does not run on Android (only on a server).
[1] https://github.com/google/java-photoslibrary/blob/a26b5de8924b68158d759a478af425f267a344a8/sample/src/main/java/com/google/photos/library/sample/factories/PhotosLibraryClientFactory.java
Thanks!
I need to implement server-side validation for in-app purchases of my android application, in C# dotnet core platform which runs on linux.
I have read this page so many times and finally found about this issue which shows I'm not alone. It looks like Google currently does not directly support dotnet core fully.
Is there anyone who could achieve this using any third party library?
The issue you linked to is about users logging in via MVC.
If you want to use a service account:
If your server is on Google Cloud (e.g. Compute Engine, Container Engine or App Engine) you shouldn't need to do anything
Otherwise, download a service account JSON file by following the instructions here and make sure the server has local access to the file then either:
Set the GOOGLE_APPLICATION_CREDENTIALS environment variable and use GoogleCredential.GetApplicationDefault or
Use the new GoogleCredential.FromFile method (introduced in 1.29.0 of the client library support package)
As far as I know .Net Core does not have an Oauth2 server implementation (yet?)...
There are few posibilities out there as commented here, but most used is Identity Server (something that can be integrated in your custom ASP Net Core project and does the job)
"IdentityServer4 is an OpenID Connect and OAuth 2.0 framework for
ASP.NET Core."
Main link: http://docs.identityserver.io/en/release/index.html
Adding Support for External Authentication:
http://docs.identityserver.io/en/release/quickstarts/4_external_authentication.html?highlight=google
Take a look at the Setup and OVerview part and You'll find that this would fit your needs (I'm pretty sure)
I hope it helps,
Juan
I have a GWT App deployed on Google App Engine that makes use of RPC Calls to function.It uses Bigquery Cloud as a backend for database operations.How can i create an android app from existing google app or do i have to code again to build a native android app for this application.
You can use a combination of mgwt and GWT-Phonegap to create apps for Android and iOS.
if RPC is your problem, you can use GWT-P REST to change your RPC in REST-FULL service. You need to refactoring your GWT client code and Server code. I had ever use in project GWT-P rest with an SPRING-REST on server side, that's work well. This can solve the problem's of RPC and serialization policy from GWT.
If you want to use the client code from gwt and use this in android Application, your only choice is to use phonegap and MGWT to create responsive design, but you must separate you server code and client code in three differents module with maven (client - server - DTO).
In first if i was at your place, i will transform my RPC service in REST-FULL service.
After if your application is only to android and not too complexe, i advise to create an Native App android. MGWT + PHONEGAP + GWTP is more to create mobile cross-platform application.
I have created app engine app (using Python)(devappdemo.appspot.com).
Now i want to create an android app for the same which should access the same datastore.
I googled it and i found that it can be done with CloudEndPoints but dont know from where to start how it can be done. Please suggest any tutorials or step by step instructions to do it.
Google Cloud Endpoints would be the easiest way at the moment to get started with it. Here is the overview and tutorial.
Cloud Endpoints will help you generate the Endpoint API (REST API) and it also helps to generate the Android client code, that you can easily integrate into your Android application.
If you already have exposed your Python application over Web Services, you could directly use that from your Android application.
I need to build proxy from a "WSDL" to call "WCF" services.
please provide me info. about tolls required and steps to do.
i have wsdl document.
and want to create a android client to consume the services.
i have spend a lot time on tht.
Android doesn't have built in SOAP API. You must use some additional library like kSoap2 but those libraries doesn't provide automatic client generation - you must code it. There are products which are able to generate clients but I expect them to be commercial like WSClient++.