然后在 info.plist 里面加
1) Add a new row and, on the left column, select Required background modes.
2) On Item 0 row, click on the right column and type: remote-notification. Press Enter.
Source: http://hayageek.com/ios-silent-push-notifications/
错误提示:
控制台输出:but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
然后在 info.plist 里面加 1) Add a new row and, on the left column, select Required background modes. |