init ios and android