Navita https://itunes.apple.com/us/app/navita-t.e.m.-personal/id590228620?mt=8 如何設置顯示呼叫日誌?Navita TEM應用程序如何獲取通話記錄信息?
如果我將應用程序從應用程序管理器中劃掉,那麼它會錯過這些調用,這表明它必須使用CTCallCenter的callEventHandler,並通過保存響應callEventHandler回調的時間/持續時間來創建自己的通話記錄。
但是,如果是這種情況,那麼它在後臺如何設置?我的印象是callEventHandler只能在前臺使用,而不能在後臺使用?
該應用正在使用位置服務,但是即使在禁用此功能後,它仍能夠獲取有關通話的信息(只要該應用未被暫停)。我雖然可能使用後臺位置更新來保持自己準備接收callEventHandler回調,但顯然不是。
Navita應用程序還可以顯示通話時間和通話時間。
賞金將授予一個答案,其中包含足夠的,準確的和詳細的信息,使我能夠模擬Navita應用程序的行爲,具體而言,我必須能夠編寫一個應用程序,可以獲得一個應用程序的時間和持續時間電話發生而應用程序在前臺沒有,而設備的位置服務被關閉,並且在應用程序已經在後臺比使用beginBackgroundTaskWithExpirationHandler授予〜3分鐘長:
Here is what I observe with the Navita app that I want to be able to reproduce:
1) Run app
2) Task away from app
3) Go to device settings, privacy, and turn off Location Services.
4) Go to device settings, privacy, background app refresh and turn off for the app
5) Wait > 10 minutes to make sure the app is not still in the background as a consequence of using beginBackgroundTaskWithExpirationHandler:
6) Call the device from another phone, answer the phone call, then hang up.
7) Launch the app again and display the call time and duration
(這是iOS7和unjailbroken)
謝謝。這究竟是如何設法進入應用商店的? – Gruntcakes