The credit for this answer goes to devgeeks , who pointed out to me a couple of his plugins, MapKit and VolumeSlider , which mix in the native elements with the cordova web view.
The key is to overwrite the initWithWebView :
-(CDVPlugin*) initWithWebView:(UIWebView*)theWebView { self = (VolumeSlider*)[super initWithWebView:theWebView]; return self; }
Now, inside the plugin, you can get a link to the view controller located behind the cordless web view and add to it whatever your heart desires.
[self.webView.superview addSubview:mpCustomView]
This is cool because you can control zPosition of any views you add in relation to webView. This way you can place the views above or below the web view.
source share