Wanted to consult with others who are using the YouTube player as an iFrame in their apps.
Basically everything works fine. but my app got rejected by Apple because my app is considered “for kids” - and kids shouldn’t be redirected to other places w/o what Apple call “parental gateway”
“Parental gateway”: is capturing the “stepping out of the app before loading YouTube” event - show some “allow page” that only adults can understand, and if you click “yes” or answer some question - you are forwarded to YouTube.
App behavior: so current state, you’re loading my app, it has many YouTube videos, then you click on one of them.
After the click loads the video in an iFrame ( embed ) - there’s a small YouTube logo on the player/video itself.
When you click it - basically you’re not being forwarded to YouTube’s app ( like Ionic native YouTube does ) - it basically “taking over” my entire app, and then I have two problems:
- you can’t go back to my App, only if you click “Home” button twice - remove my app, and reload my app
- How can I capture that event - so I can implement the “Parental Gateway” that Apple wants
Any thoughts ?