If your friend has downloaded Minecraft earth as well then, you will be able to invite him in the game.