-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Main app is not opened on iOS 13 #67
Comments
More details about the crash:
The openURL |
I think I found something. iOS 13 seems to expect a different options parameter here. An empty dictionary crashes on iOS 13. The problem is this requires Xcode 11. I can create a PR when I find a reliable and tested solution for our app. //iOS 13 changed the options and will crash with the old empty options
if (@available(iOS 13.0, *)) {
UISceneOpenExternalURLOptions * sceneOptions = [UISceneOpenExternalURLOptions alloc];
sceneOptions.universalLinksOnly = false;
[invocation setArgument: &sceneOptions atIndex:3];
} |
I can confirm that the issue takes place. Going to investigate on this, as well. @NiklasMerz thanks for pointing out a possible solution! |
Great. I appreciate any help for this. I think this is the solution but I need fix some other issue with Xcode 11 first. Doing this changes in a backwards compatible way did not really work at first. |
I managed to get it to work using the deprecated openURL signature:
It's definitely not the best solution, but at least it works on iOS 13. I tried many times with openURL:options:completionHandler and it all ended app either with EXC_BAD_ACCESS or another uncaught error. For now, I'm going to use this one until a proper fixed arrives. |
Changing the option like posted above did work for me. But this gives a warning since this is only available in iOS 13 and Xcode 11. The PR needs to be well thought. |
I tested my app which is perfectly working on iOS 12 on a iOS 13 beta device. The main app is not opened after sharing. If I open the app manually the handler is called and the file exists.
This is the error on the Xcode console
Looks like the opening of the URL does not work. The strange thing is the error with "universalLinksOnly". Does this means we must switch from a custom scheme to a Universal link. I guess the problem is somewhere in the URL open method:
cordova-plugin-openwith/src/ios/ShareExtension/ShareViewController.m
Lines 79 to 105 in e1fcc02
@j3k0 Do you know some more about that method from the initial development? Something must have changed on iOS 13.
Does anybody else have this issue?
The text was updated successfully, but these errors were encountered: