# Play music when phone is locked

**URL:** https://community.thunkable.com/t/play-music-when-phone-is-locked/1178584
**Category:** Questions about Thunkable X
**Created:** [March 21, 2021, 9:17am UTC](https://community.thunkable.com/t/play-music-when-phone-is-locked/1178584 "2021-03-21T09:17:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![honzafareks5q8](https://avatars.discourse-cdn.com/v4/letter/h/bbe5ce/32.png) [@honzafareks5q8](https://community.thunkable.com/u/honzafareks5q8)
#### Post date: [March 21, 2021, 9:17am UTC](https://community.thunkable.com/t/play-music-when-phone-is-locked/1178584/1 "2021-03-21T09:17:28Z")

</div>

Hi.  
I am making app for radio station.  
I have use Sound component with URL to streaming media. It works fine, perfect.  
Now I need keep playing this music, when user go to another app or if the user close/lock phone.  
Our users want to listen music when the phone is locked - for example with headphones during sport.

How can i do this?

---

<div class="post-metadata">

### Author: ![ninja\_x](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ninja_x/32/125825_2.png) [@ninja\_x](https://community.thunkable.com/u/ninja_x)
#### Post date: [February 4, 2022, 5:14am UTC](https://community.thunkable.com/t/play-music-when-phone-is-locked/1178584/2 "2022-02-04T05:14:37Z")

</div>

Hello @honzafareks5q8 In thunkable (I think) There is no Feature That when the phone locked Play the sound…

---

<div class="post-metadata">

### Author: ![ethosworkfi](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@ethosworkfi](https://community.thunkable.com/u/ethosworkfi)
#### Post date: [February 4, 2022, 6:48am UTC](https://community.thunkable.com/t/play-music-when-phone-is-locked/1178584/3 "2022-02-04T06:48:06Z")

</div>

At least I’ve been able to continue playing audio when the phone closes by displaying a web page on the web viewer and having an audio player there… Could this help in any way? I get that it’s not what you were looking for but anyway.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 4, 2022, 8:08am UTC](https://community.thunkable.com/t/play-music-when-phone-is-locked/1178584/4 "2022-02-04T08:08:13Z")

</div>

> [@ethosworkfi](#):
>
> displaying a web page on the web viewer and having an audio player there

When using Android 11 or 12 the app will continue to play the music when the app is in the background even without a `Web Viewer`.

---

<div class="post-metadata">

### Author: ![ninja\_x](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ninja_x/32/125825_2.png) [@ninja\_x](https://community.thunkable.com/u/ninja_x)
#### Post date: [February 4, 2022, 8:32am UTC](https://community.thunkable.com/t/play-music-when-phone-is-locked/1178584/5 "2022-02-04T08:32:32Z")

</div>

Ho Really 😯 ??!!

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:25pm UTC](https://community.thunkable.com/t/play-music-when-phone-is-locked/1178584/6 "2024-11-08T13:25:50Z")

</div>


