You can set an emergency contact via a contact card or using the Health app on your iPhone. To do this using the contact card ...
Open the Settings app, swipe down to the bottom, and choose Privacy & Security. Choose Tracking, and tick off the All Apps to ...