SocketActivityTrigger和pushNotifications

时间:2016-07-28 13:14:27

标签: windows-runtime win-universal-app uwp

当我使用SocketActivityTrigger时,为什么需要检查pushNotifications功能?它的目的是什么?

1 个答案:

答案 0 :(得分:1)

You don't.

Push notification capability (ID_CAP_PUSH_NOTIFICATION) is for Windows Phone 8/8.1 Silverlight.

Both Windows Runtime 8.1 and UWP (Windows 10) do not have a push notifications capability, see the list of all capabilities in UWP.

If you check the official sample for SocketActivityTrigger, you'll see it only uses capabilities for internet connectivity.

<Capabilities>
    <Capability Name="internetClient" />
    <Capability Name="privateNetworkClientServer" />
</Capabilities>