Hi,
I declared the type "public.image" in Info/ Document Types:
- name: Image file
- Types: public.image
- in additional document type properties:
- CFBundleTypeRole: Viewer
- LSHandlerRank: Alternate
In addition, in info.plist, "Supports opening documents in place" is "YES"
When I long press on an image from my iPhone, I can select my app in the sharing menu, app is launching but the function that should be called in AppDelegate is not called:
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
print("open url")
AudioServicesPlayertSound(SystemSoundID(kSystemSoundID_Vibrate))
return true }`Any clue ?
XCode 11.1, iOS 13.1.3
My test app has only the code and settings mentioned above.
Thanks,
Nicolas