언어 설정

Menu
Sites
Language
How to get a notification when a call is coming?

Hi, all.

When a call is coming, I would like to stop playing music in my app.

Any event or something like that?

choipd in Seoul

Edited by: Myungjin Choi on 24 12월, 2013

Responses

5 댓글
Alexander AVSukhov

Hello,

You may use vidibilitychange event but this will stop the music everytime when the app goes to background.

Myungjin Choi

I would like to play music when my app goes backgroud. Are there any events when call is coming and hanging up the phone?

It's quite weird such a high priority function is not ready. The best way is the app developer don't have to be care about it. When coming a call, every music should stop(or fade out) and finishing the call then  continue the play.

Cheers!

konduri sai swathi

Hi,

You can enable "background-support" in config.xml under "tizen" tab so that music plays even when app runs in background. 

Myungjin Choi

Yeah I knew it. It's great option!

But my problem is the music don't stop when a call is coming.

Any suggestion?

Alex Dem

Hi,
For Native apps I could propose to use Tizen::App::IActiveAppEventListener and check: is current app Call AppControl or not inside OnActiveAppChanged and stop/resume music playing manually.
But I did not face with similar api for Web apps.
Alexey.