In our SDK, which is integrated in an app, we would like to detect the third parties that are included in the app. Here is the strategy:
Pick a public class and check if that is available or not.
Following is an example for Google Analytics. Google Analytics has a public class called GAI (API Reference). If GAI class is available we can assume app is using Google Analytics SDK.
if NSClassFromString("GAI") != nil {
print("App is using Google Analytics SDK")
}
In our SDK, which is integrated in an app, we would like to detect the third parties that are included in the app. Here is the strategy:
This strategy works well. I have tested it.