diff --git a/Kiwix-iOS/Controller/Main/MainController.swift b/Kiwix-iOS/Controller/Main/MainController.swift index be063b43..dff51102 100644 --- a/Kiwix-iOS/Controller/Main/MainController.swift +++ b/Kiwix-iOS/Controller/Main/MainController.swift @@ -108,8 +108,13 @@ class MainController: UIViewController { override func restoreUserActivityState(activity: NSUserActivity) { guard activity.activityType == activityType, let urlString = activity.userInfo?["ArticleURL"] as? String, - let url = NSURL(string: urlString) else {return} - load(url) + let url = NSURL(string: urlString), + let host = url.host else {return} + if ZimMultiReader.sharedInstance.readers.keys.contains(host) { + load(url) + } else { + // TODO: - Alert cannot complete hand off + } } // MARK: - Load @@ -232,6 +237,8 @@ class MainController: UIViewController { guard let article = article else {return} userActivity?.title = article.title userActivity?.userInfo = ["ArticleURL": article.url] + userActivity?.eligibleForHandoff = true + userActivity?.supportsContinuationStreams = true userActivity?.becomeCurrent() } diff --git a/Kiwix-iOS/Info.plist b/Kiwix-iOS/Info.plist index b4c26ef3..6dc9babf 100644 --- a/Kiwix-iOS/Info.plist +++ b/Kiwix-iOS/Info.plist @@ -49,7 +49,7 @@ CFBundleVersion - 1.8.223 + 1.8.229 ITSAppUsesNonExemptEncryption LSRequiresIPhoneOS diff --git a/Kiwix-iOSWidgets/Bookmarks/Info.plist b/Kiwix-iOSWidgets/Bookmarks/Info.plist index 7b57c044..07c06b3f 100644 --- a/Kiwix-iOSWidgets/Bookmarks/Info.plist +++ b/Kiwix-iOSWidgets/Bookmarks/Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 1.8.225 + 1.8.231 NSExtension NSExtensionMainStoryboard diff --git a/Kiwix.xcworkspace/xcuserdata/chrisli.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/Kiwix.xcworkspace/xcuserdata/chrisli.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index 5bd764dd..dbfe494b 100644 --- a/Kiwix.xcworkspace/xcuserdata/chrisli.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/Kiwix.xcworkspace/xcuserdata/chrisli.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -19,53 +19,5 @@ landmarkType = "5"> - - - - - - - - - -