我需要对谷歌云整体有一些基本的了解。假设,我有一个 android 应用程序,可以将用户的联系人、照片等存储到云中,在这种情况下 -
1.我应该使用哪个服务 - 谷歌云存储或谷歌驱动器?
如果我使用谷歌云存储,我该怎么做?这是我们如何使用带有端点类的实体类来制作应用引擎后端,从而将其保存到云的无模式 NoSQL 数据存储中吗?如果我这样做,应用程序可以使用的存储空间是否有限制?
2.如果我使用谷歌驱动器,我该怎么做?我应该先将数据存储在 xml 中,然后将其保存到谷歌驱动器吗?
3.appengine schemaless NoSQL datastore和cloudSQL有什么区别,更利于用户的数据存储。
4.哪个称为应用引擎应用程序/后端-设备中的android客户端应用程序或上传到云端的后端模块(带有实体类,端点类等)?web前端(IDE自动生成的)怎么样,有必要吗?
google-app-engine android google-cloud-storage google-drive-api google-cloud-endpoints
在我的 Android 应用程序中,如果我通过获取文档的引用类型字段的值来获取文档路径,那么我将如何调用它?因为我将要获得的参考路径类似于/Users/OctUsers/1stWeekUsers/OlCvJFfWZeAlcttdlgzz/检索 Firestore 文档的方法
FirebaseFirestore.getInstance().collection(collectionPath).document(documentPath).collection(collectionPath).document(documentPath)等等。我将如何遍历参考路径以获取要在 Firestore DocumentReferece#get 方法中使用的每个 collectionPath 和 documentPath?
有没有人在他们的 Firestore 数据库中实际使用过这个参考字段类型,然后请删除屏幕截图让我们知道更多的用例?
java android firebase google-cloud-platform google-cloud-firestore
我有两个收藏。一个是jobs,另一个是users。
用户可以选择最喜欢的类别名称。我存储在User集合中...在里面job我存储所有类别categoryName。
job当向该作业插入新作业时,categoryName == user selected categoryName我触发了向设备推送通知。
只是要知道:我存储设备令牌tokens集合。
插入新作业时出现错误消息Function log'
类型错误:favoriteData 在 cloudFunction (/srv/node_modules/firebase-functions/lib/cloud-functions.js) 的导出.favoriteTrigger.functions.firestore.document.onCreate (/srv/index.js:57:25) 处不可迭代: 131:23) 在 /worker/worker.js:825:24 在 process._tickDomainCallback (internal/process/next_tick.js:229:7)
exports.favoriteTrigger = functions.firestore.document('jobs/{any}')
.onCreate((snapshot,context)=>{
var categoryName = [];
var equalCategory = [];
if(snapshot.empty){
console.log('No Jobs in Jobs Collection');
return null;
}else{
favoriteData = snapshot.data();
for(var jobC of favoriteData){ //57:25 line code. error is coming here
categoryName.push(jobC.data().categoryName);
}
admin.firestore().collection('users').get().then((snapshot)=>{
var userCategory …Run Code Online (Sandbox Code Playgroud) javascript firebase google-cloud-platform google-cloud-functions
我是Google Cloud Functions的新手。我想编写一个小型但执行密集的应用程序。我研究了文档,目前尚不清楚在部署到Google Cloud Functions时是否可以使用PyPy或CPython。
pypy cpython python-3.x google-cloud-platform google-cloud-functions