nabla / nabla-react-native

Nabla React Native SDK
16 stars 3 forks source link

Unable to parse message input #6

Open rjuevesano opened 4 months ago

rjuevesano commented 4 months ago

Hello. So I'm trying to send an audio message and I follow the docs here https://cp-docs.nabla.com/docs/messaging-core-rn#different-types-of-messages.

I'm using react-native-audio-recorder-player to record an audio. It works on android using mp3 extension but on iOS using m4a is not working. I'm getting that error Unable to parse message input.

Here's my payload

new AudioMessageInput(
  "file:///Users/rjuevesano/Library/Developer/CoreSimulator/Devices/0204E5B1-2117-472E-9063-DE7D963293B4/data/Containers/Data/Application/926071B0-2594-4021-9E99-1D4A9914F139/Library/Caches/record-5c90f201-93ad-490c-a13c-baf66f7cf379.m4a"
  AudioMimeType.mpeg,
  record.recordSecs,
  `record-${uuidv4()}.m4a`
)
benoitletondor commented 4 months ago

Hey, thanks for your message. Indeed on iOS we are only supporting MPEG right now, sorry this is not documented.

rjuevesano commented 4 months ago

Hey, thanks for your message. Indeed on iOS we are only supporting MP3 right now, sorry this is not documented.

Thanks for your reply. I tried mp3 as well and it didn't work.

benoitletondor commented 4 months ago

Yes sorry it's MPEG