On an iPhone or iPad: Go to Settings > General > AirPlay & Continuity, then turn on Handoff.
On a Mac: Choose Apple menu > System Settings, click General in the sidebar, click AirDrop & Continuity, then turn on “Allow Handoff between this Mac and your iCloud devices.”