simplified iOS code - plugin API departed further from Cordova, removed typed array support