The two companies have gone head to head in the battle for music streaming customers since Apple Music was launched in more than 100 countries last year.