I have ios app ( phonegap ) , the idea of my app to detect if there is headsrt , record and play audio , the problem of my app its only work in background .
When I click record button when the app in foreground , its did not do any thing , but when I press home button and go to back ground , every thing work .
Also I have put test button , when I click it , it should alert u with message , the message not appear only if I press home button and then come back to foreground .
Please note it was work perfectly in ios 9
But in ios 10 not work
Summary : The application only work if its in background , but in foreground not work ,.