简体   繁体   中英

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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM