最近在新項目中加入推送(我這里使用的是極光推送)并配置完成后,使用沒有任何問題卻在控制臺有打印以下問題:
You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
解決方法我找到一種如下:
工程-->TARGETS-->Capabilities-->Background Modes設置為ON并勾選如下:
如有其它方法也請提出交流補充,謝謝!