English 中文(简体)
CATallCenter - Call Activities Handler - in background state
原标题:CTCallCenter - Call Event Handler - in background state

Regarding the Apple documentation there is no way to handle the phone state while the app is suspended: https://developer.apple.com/documentation/coretelephony/ctcallcenter

“虽然暂停适用,但你的申请没有接到打电话”

对于“背井”状态来说,情况是否如此? (由于背景与“暂停”对 Apple果文件所描述的国家的描述并不相同)

rel=“nofollow noretinger”> https://web.archive.org/web/20140824215114/https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgramingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html

I m handling the phone state using the following code:

CTCallCenter *callCenter = [[CTCallCenter alloc] init];

callCenter.callEventHandler=^(CTCall* call)
{

  //call state

};

我已把一份当地通知添加到“EventHandler”栏中,以便检查在我的身处背景状态时是否会收到一个电话事件,但是为了证实该栏没有被执行(我的照片有背景支持,所有收到的事件(通过TCP)在照相时得到正确处理)。

最佳回答

在申请的背景中,我所做的所有测试都能够从<条码>查询。 但是,当申请处于原状时,所有工作都是很出色的。

袖珍工作,因为SOS为你处理,并相应交付包装。 但为此,你需要制作一个词汇表,并在voip上添加

问题回答

我知道,有一些人手无寸铁的音频文件,以防止在10分钟不活动后关闭。

蓝线、地点和音频可以防止 app子被彻底杀害。

我的 app能够在背景中发现即将到来的通话,因为传声与更新地点保持活力。 我们过去曾使用过视听。

如果没有某种“管理Alive”方法,本组织将暂停其评估,直到某些外部刺激重新启动(缓冲通知、用户发射等)。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签