0

I have an app that uses LSApplicationWorkspace's +defaultWorkspace and -allApplications, but I can't use these on the App Store.

What alternatives do I have?

jscs
  • 63,694
  • 13
  • 151
  • 195
  • Are you asking how to appeal this with Apple (not likely to work), or for other functions you can use instead? – Dave S Jun 05 '17 at 16:14
  • LSApplicationWorkspace is a private API: https://stackoverflow.com/q/35807764/1187415, https://stackoverflow.com/q/33854183/1187415 – Why do you need it and what are you trying to achieve? – Martin R Jun 05 '17 at 16:18
  • App Store policy/review rejections are off topic here, so I've edited your question to focus on the technical aspect. – jscs Jun 05 '17 at 16:21

1 Answers1

1

What alternatives do I have?

If you are using LSApplicationWorkspace to detect what applications are installed? None.

Apple treats the list of installed applications as private, and have made deliberate changes to other APIs in the past to keep that information private. (For instance, iOS 9 applied limits to canOpenURL: to prevent it from being used to detect installed applications.)

If you need to detect other specific applications, and those applications implement custom URL schemes, you can still use canOpenURL: to check for those. However, you will need to declare these URL schemes ahead of time in your Info.plist, and you cannot detect applications which do not handle unique URL schemes.