Question: when is location not available on iphone?
Answer: Tap Settings > General > Date & Time. The device is off or isn't connected to cellular or Wi-Fi. Your friend turned on Hide My Location in Find My Friends. Your friend turned off Location Services in Settings > Privacy > Location Services or in Settings > Privacy > Location Services > Find Friends.