Los Angeles/San Francisco: Apple Inc. signed an agreement with Sony Music Entertainment, the final record-company holdout needed for the iPhone maker’s planned online radio service, said people with knowledge of the situation.

Sony signed its agreement late on Thursday, and Apple plans to announce the service, unofficially dubbed iRadio, at a conference on 10 June, said the people, who requested anonymity because the talks are private. Vivendi SA’s Universal Music and Len Blavatnik’s Warner Music Group have already signed agreements with Apple, people with knowledge of the situation said this month.

With the record companies on board, Apple plans to announce an advertising-supported service that will compete with Pandora Media Inc. for listeners. IRadio will allow users to build custom stations based on an artist or genre that draws on music from the company’s iTunes library.

Apple, based in Cupertino, California, fell 0.2% to $437.53 at 12:31 pm in New York, after sliding 18% this year as of Thursday. Pandora, based in Oakland, California, added 2% to $14.60 and had risen 56% this year.

Apple’s agreement with Sony Music was reported earlier on Friday by AllThingsD. Sony/ATV Music Publishing, a joint venture of Sony and the estate of Michael Jackson, hadn’t reached an agreement with Apple as of earlier this week, the website said. Bloomberg

Anthony Palazzo in Los Angeles contributed to this story.