Is there a way to get all the url schemes of all the apps on a device? There has to be a central repository of them somewhere, maybe a plist?
Yes, you can use private api. First
@interface PrivateApi_LSApplicationWorkspace
- (NSArray*)privateURLSchemes;
- (NSArray*)publicURLSchemes;
@end
then use it:
PrivateApi_LSApplicationWorkspace* _workspace;
_workspace = [NSClassFromString(@"LSApplicationWorkspace") new];
- (NSArray*)privateURLSchemes
{
return [_workspace privateURLSchemes];
}
- (NSArray*)publicURLSchemes
{
return [_workspace publicURLSchemes];
}
check https://github.com/wujianguo/iOSAppsInfo.