For iOS and Android : Added input checking to make code safer + added shallow copying of options hash to not change the options hash that was provided by the user of the plugin