新版本提審卻得到了一個(gè)不幸的消息慎璧,審核gg了 。瓮具。槽袄。
異常提示
Guideline 5.0 - Legal
Recently, the Chinese Ministry of Industry and Information Technology (MIIT) requested that CallKit functionality be deactivated in all apps available on the China App Store.
During our review, we found that your app currently includes CallKit functionality and has China listed as an available territory in App Store Connect.
Next Steps
This app cannot be approved with CallKit functionality active in China. Please make the appropriate changes and resubmit this app for review.
If you have already ensured that CallKit functionality is not active in China, you may reply to this message in Resolution Center to confirm.
Voice over Internet Protocol (VoIP) call functionality continues to be allowed but can no longer take advantage of CallKit’s intuitive look and feel. CallKit can continue to be used in apps outside of China.
指引5.0 -法律
最近,中國(guó)工業(yè)和信息化部要求在中國(guó)應(yīng)用商店的所有應(yīng)用中停用CallKit功能毫捣。
在我們的審查中详拙,我們發(fā)現(xiàn)你的應(yīng)用程序目前包含CallKit功能,并且在app Store Connect中將中國(guó)列為可用區(qū)域蔓同。
下一個(gè)步驟
CallKit功能在中國(guó)激活時(shí)饶辙,無(wú)法批準(zhǔn)該應(yīng)用程序。請(qǐng)作出適當(dāng)?shù)母陌吡唬⒅匦绿峤淮薬pp以供審查弃揽。
如果您已經(jīng)確認(rèn)CallKit功能在中國(guó)處于不活動(dòng)狀態(tài),您可以在解決中心回復(fù)此消息進(jìn)行確認(rèn)则北。
通過(guò)互聯(lián)網(wǎng)協(xié)議的語(yǔ)音(VoIP)呼叫功能仍然被允許矿微,但不能再利用CallKit的直觀外觀和感覺(jué)。CallKit可以繼續(xù)在中國(guó)以外的應(yīng)用中使用咒锻。
解決辦法
目前換了一種新的方式來(lái)判斷該狀態(tài)冷冗,具體實(shí)現(xiàn)方式是在 AppDelegate 類中通過(guò)生命周期的方式進(jìn)行監(jiān)測(cè),通過(guò) App 切換至后臺(tái)模式和重新喚醒的方式并搭配通知去處理具體業(yè)務(wù)惑艇。
官方 api 中提供了兩種方式蒿辙,通過(guò)監(jiān)測(cè) App 喚起和進(jìn)入后臺(tái)的模式拇泛,具體方法如下:
首先,App 進(jìn)入后臺(tái)模式時(shí)會(huì)觸發(fā)該方法:
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];// 移除推送 icon 角標(biāo)
// App進(jìn)入后臺(tái)運(yùn)行 --- 通知考試功能模塊 --- AppStarting
[kNotificationCenter postNotificationName:@"AppStarting" object:nil userInfo:nil];
}
其次思灌,App 重新從后臺(tái)模式喚醒:
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];// 移除推送 icon 角標(biāo)
// 考試系統(tǒng) --- 通知考試功能模塊 --- App重新被喚醒 --- AppReactivate
[kNotificationCenter postNotificationName:@"AppReactivate" object:nil userInfo:nil];
}
暫時(shí)通過(guò)該中方式來(lái)代替俺叭,若有更佳的方式,歡迎大家廣發(fā)建議交流泰偿!
以上便是此次分享的全部?jī)?nèi)容熄守,希望能對(duì)大家有所幫助!