5

I'm trying to implement Handoff between a Mac OS app and an iOS app. It works fine when the iOS app is in the foreground -- the "Continue Activity" icon shows up in the dock on the Mac. However I can't get the "Continue Activity" icon to show up on the lock screen of the iOS device when the Mac app is in the foreground.

Both apps are signed with the same team credentials. Both devices are signed into the same iCloud account (verified via iCloud.com) and have Bluetooth turned on. Handoff from a Mac app such as Safari to the iOS device works fine. And handoff works fine between two iOS devices running the app. Any ideas?

4
  • We're having the exact same issue, were you able to solve it? Jan 10, 2017 at 17:47
  • No, I never got it to work. :( Mar 16, 2017 at 15:27
  • Just wanted to add I had this same problem :/ I'll let ya know if I find anything
    – ZappyCode
    Apr 13, 2017 at 15:34
  • I have the exact same problem. It only works one way from iOS to Mac, but never the other way around. I can also do Handoff from Mac to iOS with Safari, but the my app's handoff never works. Jun 23, 2018 at 17:35

2 Answers 2

2

I reported a bug report to Apple, and Apple told me that my iOS app's info.plist doesn't declare NSUserActivityTypes at all, and my Mac app's info.plist correctly declares NSUserActivityTypes, resulting in handoff only working from iOS to Mac and never Mac to iOS.

This issue is due to the iOS version of the app not claiming the activity type in the info.plist, resulting in the iOS device not knowing what app to give the handoff to.

In my Xcode project in the left navigation panel, I opened info.plist and NSUserActivityTypes was indeed there already. But I then realized that there are multiple info.plist files in my project when I search it using Finder in the project folder. Then I physically went into my project folder with Finder and tried to locate this info.plist file, but when I located one inside projectName/projectName it opened a different info.plist file that I couldn't initially access via Xcode project navigator. The different info.plist file did not have NSUserActivityTypes, and so I added it, and woala~ handoff finally worked from Mac to iOS! It is very odd there were fake multiple info.plist in my project. My real info plist was hidden from Xcode...

0

I think I might have found the answer. I was able to make it work after creating a provisioning profile manually on developer center and importing it into the mac project (turn off automatic manage signing). This article helped, after fighting the same issue and non-help from DTS just like me.

1
  • I tried changing both of my iOS and Mac apps to manual and manual import provision profile to both, but handoff still doesn't work from Mac-> iOS. After changing all to manual with imported provisioning profiles, handoff from iOS to Mac still works, but Mac->iOS never works. Jul 9, 2018 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.