You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/14 13:32:04 UTC
[GitHub] [cordova-plugin-media] jackie-d opened a new issue #259: [iOs]
startRecord() - Error acquiring assertion: "Required client entitlement is
missing">
jackie-d opened a new issue #259: [iOs] startRecord() - Error acquiring assertion: "Required client entitlement is missing">
URL: https://github.com/apache/cordova-plugin-media/issues/259
# Bug Report
Hi, on iOs 13, I report the following process faulty state due to latest Os changes.
## Problem
### What is expected to happen?
No error thrown, process continues without fault.
### What does actually happen?
The media gets recorded but the process entry in a faulty state that invalidates the execution.
## Information
2019-11-14 14:09:58.310606+0100 myAPP[8951:3614929] record pressed
2019-11-14 14:09:58.314516+0100 myAPP[8951:3614929] start listening procedure
2019-11-14 14:09:58.315390+0100 myAPP[8951:3614929] current platform detected iphone,ios,cordova,mobile,hybrid
2019-11-14 14:09:58.348002+0100 myAPP[8951:3614929] force stop tts
2019-11-14 14:09:58.349551+0100 myAPP[8951:3614929] no audio playing
2019-11-14 14:09:58.359310+0100 myAPP[8951:3614929] start listening effective
2019-11-14 14:09:58.359561+0100 myAPP[8951:3614929] current platform detected iphone,ios,cordova,mobile,hybrid
2019-11-14 14:09:58.507531+0100 myAPP[8951:3614929] Started recording audio sample 'cdvfile://localhost/temporary/temp.m4a'
2019-11-14 14:09:58.507718+0100 myAPP[8951:3614929] THREAD WARNING: ['Media'] took '145.755859' ms. Plugin should use a background thread.
2019-11-14 14:10:00.382164+0100 myAPP[8951:3614929] record stop pressed
2019-11-14 14:10:00.382403+0100 myAPP[8951:3614929] commit listening
2019-11-14 14:10:00.382557+0100 myAPP[8951:3614929] Stopped recording audio sample 'cdvfile://localhost/temporary/temp.m4a'
2019-11-14 14:10:00.406623+0100 myAPP[8951:3614929] THREAD WARNING: ['Media'] took '24.038086' ms. Plugin should use a background thread.
2019-11-14 14:10:00.407446+0100 myAPP[8951:3614929] Finished recording audio sample 'cdvfile://localhost/temporary/temp.m4a'
2019-11-14 14:10:00.831451+0100 myAPP[8951:3614929] recordAudio():Audio Success
2019-11-14 14:10:00.839966+0100 myAPP[8951:3614929] Native URI: file:///var/mobile/Containers/Data/Application/73D22B5A-92EB-4215-ABFD-A2E5437B7C3F/tmp/temp.m4a
2019-11-14 14:10:00.861869+0100 myAPP[8951:3614929] fileReader onloadend [object ArrayBuffer]
2019-11-14 14:10:00.863336+0100 myAPP[8951:3614929] speech <
2019-11-14 14:10:00.892180+0100 myAPP[8951:3615552] [assertion] Error acquiring assertion: <NSError: 0x280928690; domain: RBSAssertionErrorDomain; code: 2; reason: "Required client entitlement is missing"> {
userInfo = {
RBSAssertionAttribute = <RBSLegacyAttribute: 0x10456ed80; requestedReason: FinishTaskUnbounded; reason: FinishTaskUnbounded; flags: PreventTaskSuspend>;
}
}
2019-11-14 14:10:00.892258+0100 myAPP[8951:3615552] [ProcessSuspension] 0x1089d4c30 - ProcessAssertion() PID 8951 Unable to acquire assertion for process with PID 8953
2019-11-14 14:10:00.892349+0100 myAPP[8951:3614929] [ProcessSuspension] 0x1089d4c30 - ProcessAssertion::processAssertionWasInvalidated()
2019-11-14 14:10:00.893241+0100 myAPP[8951:3615552] [assertion] Error acquiring assertion: <NSError: 0x28092ae20; domain: RBSAssertionErrorDomain; code: 2; reason: "Required client entitlement is missing"> {
userInfo = {
RBSAssertionAttribute = <RBSLegacyAttribute: 0x1045f05c0; requestedReason: FinishTaskUnbounded; reason: FinishTaskUnbounded; flags: PreventTaskSuspend>;
}
}
2019-11-14 14:10:00.893565+0100 myAPP[8951:3615552] [ProcessSuspension] 0x1089d4c58 - ProcessAssertion() PID 8951 Unable to acquire assertion for process with PID 8951
2019-11-14 14:10:00.893671+0100 myAPP[8951:3614929] [ProcessSuspension] 0x1089d4c58 - ProcessAssertion::processAssertionWasInvalidated()
2019-11-14 14:10:00.894420+0100 myAPP[8951:3615552] [assertion] Error acquiring assertion: <NSError: 0x2808d40c0; domain: RBSAssertionErrorDomain; code: 2; reason: "Required client entitlement is missing"> {
userInfo = {
RBSAssertionAttribute = <RBSLegacyAttribute: 0x1045d2c30; requestedReason: FinishTaskUnbounded; reason: FinishTaskUnbounded; flags: PreventTaskSuspend>;
}
}
2019-11-14 14:10:00.894704+0100 myAPP[8951:3615552] [ProcessSuspension] 0x1089d4c80 - ProcessAssertion() PID 8951 Unable to acquire assertion for process with PID 8952
2019-11-14 14:10:00.894809+0100 myAPP[8951:3614929] [ProcessSuspension] 0x1089d4c80 - ProcessAssertion::processAssertionWasInvalidated()
2019-11-14 14:10:04.931529+0100 myAPP[8951:3614929] speech > {"string":"Halo"}
2019-11-14 14:10:04.932717+0100 myAPP[8951:3614929] server speech Halo
2019-11-14 14:10:04.933087+0100 myAPP[8951:3614929] publishing voice recog: Halo
2019-11-14 14:10:04.934206+0100 myAPP[8951:3614929] EVENT_VOICERECOG_RESULT game: Halo
2019-11-14 14:10:04.934612+0100 myAPP[8951:3614929] EVENT_VOICERECOG_RESULT
2019-11-14 14:10:04.942374+0100 myAPP[8951:3614929] Halo
2019-11-14 14:10:04.943147+0100 myAPP[8951:3614929] foooter answer: Halo
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ v] I searched for existing GitHub issues
- [v ] I updated all Cordova tooling to most recent version
- [v ] I included all the necessary information above
Relateds:
https://forums.developer.apple.com/thread/121822
https://stackoverflow.com/questions/57526699/ios-13-wkwebview-audio-stops-when-in-background
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org