我想将 pushwoosh 集成到我的 windows phone 游戏中。我无法理解服务名称是什么。pushwoosh 提供了指南,但理解起来并没有多大用处。
以下是网站 www.pushwoosh.com的链接
我下载了 sdk 并集成到我的游戏中,但它无法正常工作。
它给出了一个例外,如下图所示:
这是我的 App.xaml 代码
enter code here <Application
x:Class="PhoneApp2.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:PushSDK="clr-namespace:PushSDK;assembly=PushSDK"
xmlns:System="clr-namespace:System;assembly=mscorlib"
>
<!--Application Resources-->
<Application.Resources>
</Application.Resources>
<Application.ApplicationLifetimeObjects>
<!--Required object that handles lifetime events for the application-->
<PushSDK:PhonePushApplicationService Activated="Application_Activated"
Closing="Application_Closing"
Deactivated="Application_Deactivated"
Launching="Application_Launching">
<!-- PushWoosh application ID -->
<PushSDK:PhonePushApplicationService.PWAppId>498DE-98D2F</PushSDK:PhonePushApplicationService.PWAppId>
<!-- Page on which the navigation is when receiving toast push notification. Note: Full path. -->
<PushSDK:PhonePushApplicationService.PushPage>c:\users\administrator\documents\visual studio 2010\Projects\PhoneApp2\PhoneApp2\pushmsg.xaml</PushSDK:PhonePushApplicationService.PushPage>
<!-- Page on which the navigation is when receiving toast push notification. -->
<PushSDK:PhonePushApplicationService.ServiceName>pushmsg</PushSDK:PhonePushApplicationService.ServiceName>
<!-- Tile trusted servers -->
<PushSDK:PhonePushApplicationService.TileTrustedServers>
<System:String>http://www.pushwoosh.com</System:String>
</PushSDK:PhonePushApplicationService.TileTrustedServers>
</PushSDK:PhonePushApplicationService>
</Application.ApplicationLifetimeObjects>