草庐IT

HCIA-Cloud_Computing_V

全部标签

firebase - 每次我从 Firebase Cloud Messaging 发送通知时,我的应用程序都会崩溃

我想从FCM向我的设备发送通知,但每次我发送通知时我的应用程序总是停止工作。可能是什么问题?这是我的一些代码//app-levelbuild.gradledependencies{testImplementation'junit:junit:4.12'androidTestImplementation'com.android.support.test:runner:1.0.2'androidTestImplementation'com.android.support.test.espresso:espresso-core:3.0.2'implementation'com.google.

harmonyOS职业认证HCIA 学习ing之n多问题

注意事项:1、本地模拟器虽然使用方便,但对电脑运行内存要求比较高,电脑配置不高的话,建议使用远程模拟器(来自使用本地模拟器快给我cpu干烧了的初学者的counsel)问题及解决方法1、在hcia学习中,第一章第四个场景中,出现低代码开发模式下,背景图片在previewer模式下出不来可以在远程模拟器下,往上拉动label图标,出现服务卡片2、在hcia学习中,第二章“进京赶考实验”,导入华为提供的框架代码后,出现SYNCfailed从API版本9开始,包管理器已经从npm切换到ohpm。因此,需要在同步前进行配置迁移这里直接去action中,让dev工具自动配置问题解决这是因为当前用的是华为官

如何整合spring cloud常用组件?

目录一、SpringCloudAlibaba简介1、简介2、为什么使用3、版本选择4、项目中的依赖二、SpringCloudAlibaba-Nacos[作为注册中心]1、下载nacos-server2、启动nacos-server3、将微服务注册到nacos中三、SpringCloudAlibaba-Nacos[作为配置中心]四、gateway1、简介2、核心概念3、使用(1)HelloWorld(2)断言(3)过滤器五、SpringCloudAlibaba-OSS(一)、简介(二)、使用步骤1、开通阿里云对象存储服务2、引入SpringCloudAlibaba-OSS3、配置阿里云oss相关

flutter : How can i get collection from document with cloud_firestore?

我可以从集合中获取所有文档,但不知道如何从每个文档中获取集合。我的数据库结构就像集合->文档->集合(带字段)->文档->字段。使用blow代码,只有我可以获得第一个文档的字段信息,而不是集合。我如何从每个第一个文档访问第二个集合。import'dart:async';import'package:flutter/material.dart';import'package:flutter/services.dart';import'package:google_maps_flutter/google_maps_flutter.dart';import'package:cloud_fir

flutter : How can i get collection from document with cloud_firestore?

我可以从集合中获取所有文档,但不知道如何从每个文档中获取集合。我的数据库结构就像集合->文档->集合(带字段)->文档->字段。使用blow代码,只有我可以获得第一个文档的字段信息,而不是集合。我如何从每个第一个文档访问第二个集合。import'dart:async';import'package:flutter/material.dart';import'package:flutter/services.dart';import'package:google_maps_flutter/google_maps_flutter.dart';import'package:cloud_fir

android - 无法发送到 Cloud Firestore

我正在尝试在我的flutter项目中使用firebasecloudfirestore我想通过这种方式发送用户名finalDocumentReferencereference=Firestore.instance.collection('users').document('info');@overridevoidinitState(){reference.setData({'name':widget.username});super.initState();}但我总是遇到这个问题是因为我忘记了什么还是我的代码是正确的?运行窗口:[ERROR:flutter/shell/common/sh

android - 无法发送到 Cloud Firestore

我正在尝试在我的flutter项目中使用firebasecloudfirestore我想通过这种方式发送用户名finalDocumentReferencereference=Firestore.instance.collection('users').document('info');@overridevoidinitState(){reference.setData({'name':widget.username});super.initState();}但我总是遇到这个问题是因为我忘记了什么还是我的代码是正确的?运行窗口:[ERROR:flutter/shell/common/sh

flutter - 我需要知道数据是否已添加到 Cloud Firestore (Flutter)

我有这个操作EventModeldata=EventModel(_nameEvent,_passEvent,_localEvent,_dateEventString);HashMapmapData=data.getEventMap();Firestore.instance.collection("app").document("database_v1").collection("events").document().setData(mapData);如果数据输入成功或不成功,我需要显示警告_scaffoldKey.currentState.showSnackBar(SnackBar(

flutter - 我需要知道数据是否已添加到 Cloud Firestore (Flutter)

我有这个操作EventModeldata=EventModel(_nameEvent,_passEvent,_localEvent,_dateEventString);HashMapmapData=data.getEventMap();Firestore.instance.collection("app").document("database_v1").collection("events").document().setData(mapData);如果数据输入成功或不成功,我需要显示警告_scaffoldKey.currentState.showSnackBar(SnackBar(

firebase - Flutter + Firebase Cloud Functions - 如何从 HttpsCallableResult 获取数据

我编写了一个简单的云函数,它返回一个保存在我的CloudFirestore数据库中的ID。云函数如下所示:exports.getWinkert=functions.https.onCall((data,context)=>{returnadmin.firestore().collection('users').doc('hash').get().then(snapshot=>{constwinkertId=snapshot.wwinkertreturn{id:winkertId};})})此函数是使用以下代码从我的flutter应用中调用的:Future_getValues()asyn