Reasons
2.16: Multitasking apps may only use background services for their intended
purposes: VoIP, audio playback, location, task completion, local notificat-
ions, etc.
Thank you for your providing the information regarding your app. After
further review of the app we found the following:
2.16
We found that your app uses a background mode but does not include function-
ality that requires that mode to run persistently. This behavior is not in
compliance with the App Store Review Guidelines.
We noticed your app declares support for audio in the UIBackgroundModes key
in your Info.plist, but did not include features that require persistent
audio.
As indicated in the iOS Application Programming Guide:
"This key is intended for use by applications that provide audible content
to the user while in the background, such as music-player or streaming-audio
applications."
Therefore, it would be appropriate to provide audible content to the user
while the app is in the background or remove the "audio" setting from the
UIBackgroundModes key.
For discrete code-level questions, you may wish to consult with Apple Deve-
loper Technical Support. When the DTS engineer follows up with you, please
be ready to provide:
- complete details of your rejection issue(s)
- screenshots
- steps to reproduce the issue(s)
- symbolicated crash logs - if your issue results in a crash log
If you have difficulty reproducing a reported issue, please try testing the
workflow as described in <https://developer.apple.com/library/ios/qa/qa1764/>
Technical Q&A QA1764: How to reproduce a crash or bug that only App Review or
users are seeing.
這是apple回應過來的結果。
我大意看了一下主要我做了以下的事情:
在背景執行一個接收推播的動作,然後當推播進來時會執行一段聲音檔。
照apple的說法似乎我背景執行聲音檔的方式不合規範?
所以我想請問各位大大。
如果我我希望在背景執行接收推播,然後要在收到推播訊息時,正確的執行
聲音檔是否有什麼比較好的做法?然後能夠通過apple的規範?
(第一次寫iOS app上架的東西就要有server資料取得、處理用戶資料、前景推播、
背景推播……所以幾乎會遇到一大堆奇奇怪怪的事情。)