Phonegap / Cordova Youtube embed videos on iOS not working

After building a simple app called Plantar fasciitis treatment for Android we wanted to build it as an iPhone app as well. Most of the app worked without any modifications but embed YouTube videos were not playing. After searching around for two hours I got it working. You need to add to config.xml