You cannot disable the subdomain. Your application will always be available on https://myapp.firebaseapp.comany custom domain that you have configured.
To redirect people, you can add a link canonicalto your HTML:
<link rel="canonical" href="http://myapp.domain.com/" />
Learn more about this in Indicate your canonical on the Google Central Webmaster Blog.