Error handling of iOS version now working with JS from Android version