support ios native messagebox handler