Skip to content
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

The iOS installation is not completed #100

Open
szuwest opened this issue Sep 30, 2024 · 0 comments
Open

The iOS installation is not completed #100

szuwest opened this issue Sep 30, 2024 · 0 comments

Comments

@szuwest
Copy link

szuwest commented Sep 30, 2024

the last but the important step:

you have to call some methods of SwiftShareHandlerIosPlatform in your AppDelegate.

override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
if (launchOptions != nil) {
SwiftShareHandlerIosPlatform.instance.application(application, didFinishLaunchingWithOptions: launchOptions!)
}
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}

override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
print("application open url=(url)")
var ret = SwiftShareHandlerIosPlatform.instance.application(app, open: url, options: options)
return ret
}

override func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]) -> Void) -> Bool {
print("application continue userActivity=(userActivity.webpageURL)")
return SwiftShareHandlerIosPlatform.instance.application(application, continue: userActivity, restorationHandler: restorationHandler)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant