Stop in for a cup of coffee

Anyone know if an employer can legally force you to put an app on your personal phone?