For Android phones/tablets:
You need to access the target device (get it in your hand and unlock it with the password/passcode) and physically install Safespy on it.
For iPhone/iPad:
No physical access is needed if you have iCloud ID/Password(disabled 2-factor authentication) of the target iPhone/iPad and iCloud backup is enabled.