简体   繁体   English

如何通过Google Cloud Endpoints将两个Android应用连接到同一App Engine数据存储区?

[英]How to connect two Android apps through to the same App Engine Datastore through Google Cloud Endpoints?

I want to create two Android applications that should be connected to a common Google App Engine Datastore. 我想创建两个应该连接到通用Google App Engine数据存储区的Android应用程序。 The two Android applications will have some App Engine based methods in common and some methods that are unique to each application. 这两个Android应用程序共有一些基于App Engine的方法,以及每个应用程序所独有的方法。

Should I use separate App Engine modules for each app? 我应该为每个应用程序使用单独的App Engine模块吗? This would probably require replicating all modules in both the apps and would unnecessarily increase the size of each app. 这可能需要在两个应用程序中都复制所有模块,并且不必要地增加了每个应用程序的大小。

Can I just use different Android client ids and App Engine version numbers to connect the two Android apps to the same App Engine project through Endpoints? 我是否可以使用不同的Android客户端ID和App Engine版本号通过端点将两个Android应用程序连接到同一App Engine项目? Would I need to replicate the entity definitions and methods for common entities in the two apps? 我是否需要在两个应用程序中为通用实体复制实体定义和方法?

Try using the same project with different versions or instances. 尝试将同一项目用于不同的版本或实例。

You could use a version as a web app and another as an android back-end for example, while both share the same datastore. 例如,您可以将一个版本用作网络应用程序,将另一个版本用作android后端,而两者都共享相同的数据存储区。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google App Engine服务器将数据发送到云数据存储,即使其通过localhost:8080运行 - Google App Engine server sends data to cloud datastore even though its running through localhost:8080 连接到Google App Engine数据存储区 - Connect to Google App Engine Datastore Google Cloud端点(应用程式引擎)+与Android的oauth2整合 - Google cloud endpoints (app engine) + oauth2 integration with android Google App Engine的云端点在哪里? - Where are Google App Engine's Cloud Endpoints? Google App Engine Cloud Endpoints userId为null - Google App Engine Cloud Endpoints userId is null Google App Engine /托管的VM云端点 - Google App Engine/Managed VM Cloud Endpoints 在本地并通过App Engine Flex连接到Google Cloud SQL(PostgreSQL) - Connecting to Google Cloud SQL (PostgreSQL) locally and through App Engine Flex 如何从Android中的Google App Engine数据存储区中获取数据 - how to fetch data from google app engine datastore in android 将 android 应用程序与谷歌应用程序引擎数据存储链接 - linking android application with google app engine datastore 如何连接到本地Google Cloud数据存储数据库? - How to connect to the local google cloud Datastore db?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM