大佬教程收集整理的这篇文章主要介绍了如何使用Cordova检索Firebase“远程配置”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
cordova-plugin-firebase
来检索Firebase远程配置,但值始终为null.
谢谢.
$ionicPlatform.ready(function () { if (window.FirebasePlugin) { window.FirebasePlugin.getValue("xxx",function (value) { console.log(value); },function (error) { console.error(error); }); } });
环境
像这样:
$ionicPlatform.ready(() => { if (window.FirebasePlugin) { window.FirebasePlugin.fetch(600,(returnvalue) => { window.FirebasePlugin.activateFetched((isActivated) => { //check if the fetched remote config is activated if (isActivated) { window.FirebasePlugin.getValue("xxx",(value) => { console.log(value); },(error) => { console.error(error); }); } }); }); }
});
您是否知道可以使用(目前为测试版)Ionic Firebase plugin使这些firebase功能让您的生活更轻松?
编辑:我添加了以下澄清图像,以添加更多上下文,说明为什么需要首先获取远程配置然后激活它.更多文档可以是found on the firebase site,
希望这可以帮助…
以上是大佬教程为你收集整理的如何使用Cordova检索Firebase“远程配置”全部内容,希望文章能够帮你解决如何使用Cordova检索Firebase“远程配置”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。