1. A method comprising: receiving, by an electronic device and using low power radio frequency technology, an indication that the electronic device is within a vicinity of a vehicle; detecting execution of an application by the electronic device while the electronic device is within the vicinity of the vehicle; responsive to detecting the execution of the application, capturing, by a camera of the electronic device, at least one image of an environment of the vehicle; detecting, by the electronic device and based at least in part on the at least one image, an orientation of a restraining device within the vehicle; determining, by the electronic device and based on the orientation of the restraining device, whether a user of the electronic device is sitting on a driver's side of the vehicle or a passenger side of the vehicle; responsive to determining that the user is sitting on the driver's side of the vehicle, determining, based on the at least one image, whether the user is sitting in a driver's seat of the vehicle; and responsive to determining that the user is sitting in the driver's seat, performing, by the electronic device, an action including one or more of stopping the execution of the application or outputting an alert.