Hamas will have to reconginze Israel. But, this must happen simultaneously with Israel recoginizng a Palestinian State. Israel recongized the UN when it established the state but ignored it since.
Donald Trump: Israeli settlement construction in West Bank should 'keep going' (Haaretz)
from the article: U.S.: Hamas can't be peace partner until it recognizes Israel