Modified the platform check logic in getInstalledAppsByUser method.