我有一个应用程序,用户需要使用谷歌帐户登录并购买高级版(播放计费)才能访问高级功能。一切都很完美。
最近,Playstore 强制开发人员提交应用程序凭据,以测试应用程序是否具有需要身份验证的某些功能。
如果我的应用程序有一个正常的电子邮件和密码进行身份验证,那么我将从我的后端服务器向 google play 提交测试用户的电子邮件和密码。但现在是谷歌登录。我不知道任何使用应用程序审阅者的测试谷歌帐户。该文档没有任何相关信息。
在这种情况下,我是否必须提交我的个人 Google 帐户和密码来审核应用程序身份验证(因为它已添加到 GooglePlay 开发者控制台中的测试许可证中)?
或者有一些来自(Playstore 应用程序审阅者)的测试谷歌电子邮件帐户用于在我的服务器端列入白名单?
我的扑动应用程序中有一些TextFormField字段。这是这些字段的控制器。
TextEditingController nameCtrl = TextEditingController();
TextEditingController idCtrl = TextEditingController();
TextEditingController nodeCtrl = TextEditingController();
TextEditingController unitCodeCtrl = TextEditingController();
Run Code Online (Sandbox Code Playgroud)
我想unitCodeCtrl在事件触发时(单击按钮时)以编程方式将焦点设置到文本字段,但不知道如何做到这一点。
...,
onPressed:(){
//what can i do for set focus to unitcode text field?
}
Run Code Online (Sandbox Code Playgroud) 我正在使用带有cordova fcm插件的Ionic框架中的Firebase Notification.我想在用户收到推送通知并点击它时打开一个状态.我正在使用params从Firebase控制台发送通知,但它始终是data.wasTapped false,这就是为什么它不起作用.
FCMPlugin.onNotification(function(data)
{
if (data.wasTapped) {
//Notification was received on device tray and tapped by the user.
console.log("Tapped: " + JSON.stringify(data));
if (data.hasOwnProperty('state')) {
$timeout(function(){
$state.go(data.state);
})
}
}
else
{
//if user already opened app
console.log("Not tapped: " + JSON.stringify(data));
}
}, function(msg) {
console.log('onNotification callback successfully registered: ' + msg);
}, function(err) {
console.log('Error registering onNotification callback: ' + err);
});
Run Code Online (Sandbox Code Playgroud) javascript firebase ionic-framework firebase-cloud-messaging
我正在使用 Google Firebase 云消息传递 (FCM)。FCM 将通知图标作为应用程序图标发送。我想从 URL 发送动态图标,但它不起作用。是否可以发送动态通知图标?
{
"notification":{
"title":"App Title",
"body":"descriptions",
"icon":"http://example.com/abc.png",
"click_action":"FCM_PLUGIN_ACTIVITY"
},
"data":{
"state":"contact",
"param2":"value2"
},
"to":"/topics/all",
"priority":"high"
}
Run Code Online (Sandbox Code Playgroud) 我是 Flutter GetX 包的新手,在使用 flutter GetX 包时遇到问题。我有几个应用程序屏幕,其中一个屏幕用于列出数据库中的所有产品。
在我的产品控制器中,我从数据库中获取所有数据并使用列表视图显示,如下面给出的代码所示,并且工作正常。
问题:当我从另一个控制器插入新记录并返回产品列表控制器时,它不会显示新添加的数据。实际上这次onInit方法不会触发。
控制器代码
class ProductIndexCtrl extends GetxController {
var products = [].obs;
@override
void onInit() {
super.onInit();
getAll();
}
void getAll() {
Product.getAll().then((jsonList) {
products.value = Product.fromJsonList(jsonList);
});
}
}
class ProductCreateCtrl extends GetxController {
void saveData(Product product) {
...
...
//after successful insert
Get.toNamed('productIndex');
}
}
Run Code Online (Sandbox Code Playgroud)
产品索引屏幕
final ctrl = Get.put(ProductIndexCtrl());
GetX<ProductIndexCtrl>(builder: (controller) {
return _listview(controller.products);
}
Widget _listview(data) {
...
...
}
Run Code Online (Sandbox Code Playgroud) 我是颤振新手。在我的应用程序中,当用户键入并从文本框中聚焦时,我需要选择检查用户名是否已存在或是否从数据库异步检查。
需要返回类型validator,String这就是我无法添加的原因Future<String>
我怎样才能用 Flutter 做如下事情TextFormField?或任何完全满足我的要求的过程。
validator: myValidator
Run Code Online (Sandbox Code Playgroud)
Future myValidator(String username) async{
return await checkUser(username);
}
Run Code Online (Sandbox Code Playgroud) 我有两个来自同一个表的查询
SELECT userId,SUM(amount) AS totalDeposite FROM trx GROUP BY userId
Run Code Online (Sandbox Code Playgroud)
输出:
userId totalDeposite
1 470
2 30
Run Code Online (Sandbox Code Playgroud)
询问
SELECT userId,SUM(amount) AS totalFine FROM trx WHERE TYPE='fine' GROUP BY userId
Run Code Online (Sandbox Code Playgroud)
输出:
userId totalFine
1 20
2 30
Run Code Online (Sandbox Code Playgroud)
我怎样才能得到像这样的结果
userId totalDeposite totalFine
1 470 20
2 30 30
Run Code Online (Sandbox Code Playgroud) 最近我已经安装了具有php 5.6版本的xampp更新版本.在我的驱动器中我有xampp的旧版本,我通过xampp_old重命名.我在C:\ xampp中的新xampp安装文件.当我尝试通过我的cmd.exe php -v命令获取php版本时,它显示较旧的php版本(php 5.4.24).我已经检查过我的cmd使用该C:\Program Files\iis express\PHP\v5.4\php.ini文件.如何从我的cmd.exe设置新的php.ini文件c:\xampp\php
flutter ×3
android ×2
firebase ×2
dart ×1
flutter-getx ×1
google-play ×1
javascript ×1
join ×1
php ×1
sql ×1