support both ios and android platform