I've added a small amount of code to my app which supposed to handle Handoff. Nothing fancy, just creating simple NSUserActivity, setting my -[UIViewController userActivity] property to it and make it current. And I did added proper NSUserActivityTypes array to my Info.plist, but still nothing works. My both devices logged in to the same iCloud account, and Safari Handoff works perfectly. I tried everything: my app icon does not appears on the other device lock screen. No errors, no warning, no nothing. How can I debug it?
How to debug iOS Handoff?
800 Views Asked by Alexander Vasenin At
1
There are 1 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in HANDOFF
- Handoff icon not disappearing from the phone
- NSUseractivity not working from apple watch to iphone app
- Bot Framework Handoff Scenario to live person on MS Teams
- onContinueUserActivity not Called with Handoff & SwiftUI
- iOS 12 Handoff delegate methods are not called
- Desktop Safari to iOS native app Handoff opens iOS Safari
- How to debug iOS Handoff?
- How do I implement per-page handoff in a WatchKit app on Watch OS 1.0.1?
- WatchKit: Handoff from static interface of Long Look?
- iOS handoff from phone to macbook safari/chrome
- Is it possible to use Handoff without requiring the user to open from the lockscreen?( Apple Watch)
- How is user activity info transferred in Handoff?
- Handoff not working from native app to website
- Handoff programming with Safari (iOS 8)
- Setting up apple-app-site-association for Web Browser–to–Native App Handoff (iOS 8)
Related Questions in NSUSERACTIVITY
- Make App Activities and States Searchable by using NSUserActivity
- Swift / iOS: How to pass data from AppDelegate to ViewController label?
- NSUserActivity deleteAllSavedUserActivities not working
- Is there a way to know which app opened my iOS app?
- Continuing userActivity not working when app isn't in background
- continuing userActivity not working when app is closed
- Continuing userActivity while app I closed
- Launching app from Siri causes "NSUserActivity has an interaction attached but it is not handled"
- INInteraction.delete not working in iOS13.7
- userInfo is empty in continueUserActivity from Siri Shortcut
- How to predefine certain phrases that should be used to trigger certain actions by Siri
- How to create a Siri Intent that accepts input passed from user
- How to create multiple shortcuts at application start
- Open iOS app from Safari after downloaded
- Still receives INStartAudioCallIntent when drop support for iOS 12(INStartCallIntent)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If nothing helps, try to see for suspicious messages in both of your devices console. In Xcode menu choose Window -> Devices, select one of your devices and look for anything related to Handoff.
In my case what I found was:
So my problem was: I was setting
-[NSUserActivity webpageURL]to my custom subclass ofNSURLnamedUniversalLink. I've changed it to pureNSURLand it worked perfectly ever since. Hope this help someone!