kevinresol / react-native-sound-recorder

Simplest Sound Recorder for React Native
MIT License
119 stars 36 forks source link

Recording works in simulator, but not on device! #3

Closed iMagdy closed 6 years ago

iMagdy commented 6 years ago

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

Running iOS.

iMagdy commented 6 years ago

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

kevinresol commented 6 years ago

What is the error?

iMagdy commented 6 years ago

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

kevinresol commented 6 years ago

NSLog

iMagdy commented 6 years ago

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

This happens on stop, as an error for session_set_active_error

iMagdy commented 6 years ago

Found this here https://osstatus.com/search/results?platform=all&framework=all&search=560030580 if it may help.

kevinresol commented 6 years ago

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.

iMagdy commented 6 years ago

Start works fine, the problem is only with stop.

kevinresol commented 6 years ago

Whoops, you got the solution?