For testing who?
Is it going to be front facing so you can check your own temperature? Or do you want to see people pointing their phones (and the little laser dot to tell where the temperature sensor is pointing) at random people they encounter all day long? Hopefully such a thing would be quickly made illegal!
Nevermind that by the time one's temperature is elevated they may have been infected a week, so a normal temperature reading is no assurance they are healthy.