ios and android has different return value