Modified the platform check logic in getInstalledApps method.