Added success/failure callbacks in iOS plugin.