0

我想将 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>

4

1 回答 1

0

出现此错误是因为我使用的是以前用于项目的相同 pushwoosh sdk。意味着如果一个项目使用了 pushsdk.dll,那么它会在进程中运行,这样就会出现错误。

现在我为每个项目使用新的 pushdsdk 并且它运行良好!!

于 2013-12-21T09:43:38.007 回答