### Pass `click_action` and `data` when sending notification
### Response to `click_action` in Android
When app is not running when user clicks notification, notification data will be passed into
To allow android to respond to `click_action`, you need to define Activities and filter on specific intent. Since everything is running in MainActivity, you can have MainActivity to handle actions, however, the activity will be reload everytime. Let me know if you have better idea how to do this.
-`FCM.initialAction`(contains `click_action` in notification payload
```xml
-`FCM.initialData` (contains `data` payload if you send together with notification)
### Behaviour when sending `click_action` and `data` in notification
- When app is not running when user clicks notification, notification data will be passed into
-`FCM.initialAction`(contains `click_action` in notification payload
-`FCM.initialData` (contains `data` payload if you send together with notification)
- When app is running in background
- IOS will receive notificaton from `FCMNotificationReceived` event
- Android will reload the whole react app
When app is running in background
- When app is running in foreground
- IOS will receive notificaton from `FCMNotificationReceived` event
- Both will receive notificaton from `FCMNotificationReceived` event
- Android will reload the whole react app (I'm looking for suggestions to fix that)
When app is running in foreground
NOTE: it is recommend not to reply on extra data for click_action as it can be overwritten. check [this](http://stackoverflow.com/questions/33738848/handle-multiple-notifications-with-gcm)
- Both will receive notificaton from `FCMNotificationReceived` event