The song was written by Demi Lovato and Cheat Codes with Lauv, Emma Block and Jackson Foote. Lauv told iHeartRadio
that it was a "total dream come true to be collaborating with Demi Lovato:
"I've been friends with, especially Trevor from Cheat Codes, for a number of years, back in the Myspace days, we worked together and played some shows," he explained. "His little project was called Plug in Stereo."
"I originally worked on the song with some other friends of mine that are called Loote," Lauv continued. "And then Trevor heard the song, and loved it. Then we all collaborated on it and they were like okay, we have an A list, female pop star, who we think we're going to get to feature, but we can't say who it is until she gets back from Africa. So we're like scouring the internet, like who is in Africa right now? And crazy enough, like five minutes later we saw a picture of Demi in Africa. We were like it must be Demi. And it was."