add ios plugin try catch