6027 iOS check app state in SDK

https://swrvedev.jira.com/browse/SWRVE-6027
Private changes: https://github.com/Swrve/swrve-sdk/pull/742

Move check for app state into the SDK, previously written in the app code. Prevents push notifications from being processed by the SDK and custom listener if the app is in the foreground.