Only plays for 30 seconds and stops playing on a physical device

Hello, I am having a problem with my application and I don't know how I could solve it.

I made my application using Ionic, it is a streaming player. When I emulate it on a virtual xcode device it works perfectly, but when I try it on a physical device the music only plays for 30 seconds and stops playing.

Has it happened to someone else? Please help.
Only plays for 30 seconds and stops playing on a physical device
 
 
Q