kevinresol / react-native-sound-recorder

Simplest Sound Recorder for React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recording works in simulator, but not on device!

iMagdy opened this issue · comments

When I record on simulator, it works fine, but when running on device, the file is empty. Any idea?

Running iOS.

Issue after debugging happens in [session setActive:NO error:&err]; in particular. Any idea @kevinresol ?

What is the error?

Error returning in promise rejection is an empty object. How do I log it in xcode?

NSLog

Error Domain=NSOSStatusErrorDomain Code=560030580 "(null)"

This happens on stop, as an error for session_set_active_error

In your JS, the promise returned by start() resolves no error while stop() resolves an error? Is it?

If start() already produces an error maybe we should investigate it first.

Start works fine, the problem is only with stop.

Whoops, you got the solution?