简体   繁体   English

Android | 针对您的应用程序运行测试时是否可能收到推送通知

[英]Android | Is it possible to receive a push notification when running test against your application

In my android application, actions are invoked based on the command received through push notification. 在我的android应用程序中,根据通过推送通知接收的命令调用操作。 I was wondering if there is any way through which i can test the complete use case (as it runs like in application) that includes: 我想知道是否有什么方法可以测试完整的用例(因为它像在应用程序中一样运行),包括:

  • receiving the push notification 接收推送通知
  • processing it and getting the command to execute 处理它并获取要执行的命令
  • execute the action based on command information 根据命令信息执行动作

while sending your push notification add a key value pair to identify the command. 在发送推送通知时,添加一个键值对以标识命令。 while receiving the request in your broadcast receiver check for the key and execute the appropriate operation 在广播接收器中接收请求时,检查密钥并执行适当的操作

暂无
暂无

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

相关问题 应用程序未运行时小米没有收到通知 - Xiaomi does not receive notification when application is not running 是否可以使用相同的源代码向另一个克隆应用程序推送和接收通知 - Is it possible to push and receive Notification to another clone application with same source code 是否可以使用Android Gradle插件测试应用程序的发布版本? - Is it possible to test against the release version of your app with Android Gradle plugin? 当您的应用程序从通知中打开时,是否可以从打开的位置返回到以前的应用程序? 安卓 - When your application is opened from notification is it possible to get back to previous application from where it was opened? Android 应用程序在 android 中终止时未收到通知 - Notification not receive when Application terminated in android 当应用未在android中运行时,推送通知未显示 - Push Notification is not showing when app is not running in android 应用未运行时的Android推送通知 - Android Push Notification when App is not running 当应用程序在后台时,从Android上的Pushwoosh接收推送通知 - Receive push notification from Pushwoosh on Android when app in background 尝试通过 Firebase 接收推送通知时,Android 应用程序崩溃 - Android App crash when is trying to receive a push notification trough firebase 当应用程序在Android中运行或不运行时,将推送通知内容显示到警报对话框中 - To Show Push Notification content into the Alert Dialog when application is either running or not in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM