Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
cordova-ios@4.5.4
-
None
-
None
-
cli packages: (/Users/eugene/.npm-global/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.1.1
ios-deploy : 1.9.2
Node : v9.6.1
npm : 5.8.0
OS : macOS High Sierra
Xcode : Xcode 9.3 Build version 9E145
Environment Variables:
ANDROID_HOME : /Users/eugene/Library/Android/sdk
cli packages: (/Users/eugene/.npm-global/lib/node_modules) @ionic/cli-utils : 1.19.2 ionic (Ionic CLI) : 3.20.0 global packages: cordova (Cordova CLI) : 8.0.0 local packages: @ionic/app-scripts : 3.1.8 Cordova Platforms : ios 4.5.4 Ionic Framework : ionic-angular 3.9.2 System: Android SDK Tools : 26.1.1 ios-deploy : 1.9.2 Node : v9.6.1 npm : 5.8.0 OS : macOS High Sierra Xcode : Xcode 9.3 Build version 9E145 Environment Variables: ANDROID_HOME : /Users/eugene/Library/Android/sdk
Description
- When I call `media.play()` manually from app - audio play works.
- When I call `media.play()` from push notification (app is in background) - audio play works.
- When I call `media.play()` from push notification (app is not in background and device is not locked) - audio play not works and I receive data in error callback `{"message":"","code":4}` (see it in Xcode device logs)
- When I call `media.play()` from push notification (app is not in background and device is locked) - audio play not works and I receive data in error callback `{"message":"","code":4}` (see it in Xcode device logs)
I use real device iPad with ios 10.3.3
cordova-plugin-media 5.0.2 with KEEP_AVAUDIOSESSION_ALWAYS_ACTIVE = true
phonegap-plugin-push 2.2.2
cordova-plugin-background-mode from master (also try to enable background on push notification receive before start audio)
Is there any chance to make it work?