If the PushPlugin
in the simulator is causing the issue, you can use the window.navigator.simulator
object to check if you re running the app on a simulator:
//running in the simulator, don't access the PushPlugin
//running on a device
If the object's value is false you can go ahead and access the push plugin
, if not - invoke only the plugins available in the simulator.
However, your report suggests that there is an issue with the Media
plugin even when your app runs directly on a device. If that is indeed the case, we would need a sample reproducing this behavior in order to further investigate the case.