简体   繁体   中英

Scan url scheme ios

Correct me if this question is a duplicate. I tried but couldn't find an answer.

Basically, I want to implement the same feature that applications like AroundMe and NearMe have: when users found a location, they can then click "Navigate here" and the app can tell show them all the navigation applications they have on their phone and they can pick their favourite one to go forward.

I know we have this api to check if an URL scheme is available:

- (BOOL)canOpenURL:(NSURL *)url

But how do I scan to list all the navigation apps that I can call and the format of each?

Do I need this information available in the app database beforehand?

If YES, where should I look for the url format of each app?

Thanks so much

This information is usually up to the export/sharing/document controller. You will not be presented with the list yourself, but the API will show the menu for you in a popover or action sheet. This means you can't manipulate the list, only tell it to go open in SOMETHING.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM