It worked for me this way: its AAC format, which works on both, but when the sound is encoded on an Android device in AAC format, it needs to be placed in the .m4a container for it to play on ios. Its a simple extension change.
eg:
On android device : morningtune.aac Now Just change the extension of the song On ios device : monrningtune.m4a
First, on an Android device, I recorded audio with the following parameters
recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
Now just change the output audio extension to "m4a"
source share