0

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
vijay_t
  • 776
  • 6
  • 14

1 Answers1

0

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

Dinesh Kannan
  • 1,255
  • 13
  • 32
  • Thanks, what you said is 'how to get value from push received and how to process it' but I am interested in to know whether it is possible to receive push and get received data while running test against application. – vijay_t Mar 28 '15 at 07:01