Added indicator if apn was received while in background
Fix push-notification event regression
Change naming. Fix applicationState query.

- change the name of the parameter to 'inBackground'.
- query for application in background, not just inactive.
Revert state query.
Merge branch 'master' into TIMOB-3528-DistinguishingBetweenRemotePushNotifications
[TIMOB-3528]Updating docs.
Merge pull request #3869 from srahim/TIMOB-3528

[TIMOB-3528] Including extra argument in remote event for Push Notification