Commit a662b2bd authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: play ringtone for notification

To play sound for application running in background audio mixing
must be allowed. This patch verifies audio session configuration
when receiving notification in background.

Change-Id: I0753899eaf2d757152d220a5af401f4a87ca76ed
parent b3e17c36
......@@ -422,6 +422,9 @@ extension AppDelegate: PKPushRegistryDelegate {
func pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType) {
if UIApplication.shared.applicationState != .active {
self.accountService.pushNotificationReceived(data: payload.dictionaryPayload)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment