A method of wireless access control using an electromagnet is provided. The method includes detecting encoded data through a magnetic sensor of a mobile device. A wireless communication application is activated on the mobile device based on the encoded data. An access control is interfaced with on a wireless communication interface using the wireless communication application of the mobile device. The wireless communication application is deactivated based on completing a transaction through the wireless communication application on the mobile device.