refactor ionic.Platform methods