【发布时间】:2013-09-16 18:14:56
【问题描述】:
使用 PushSharpClient 示例代码,我将包名称从 com.pushsharp.test 更改为 com.testPush。我搜索并用新名称替换了旧名称的所有实例。当我尝试在我的 Motorola XT389 设备上的 Xamarin Studio (F5) 中调试运行应用程序时,我得到以下结果:
由于内部错误,部署失败:找不到文件 'S:\PushSharp-master\Client.Samples\PushSharp.ClientSample.MonoForAndroid\PushSharp.ClientSample.MonoForAndroid.Gcm\bin\Debug\com.pushsharp.test -Signed.apk'
实际上,实际文件名为 com.testPush-Signed.apk' 我还需要在哪里更改文件名 - 我已将其更改为:
[程序集:Permission(Name = "com.testPush.permission.C2D_MESSAGE")] //, ProtectionLevel = Android.Content.PM.Protection.Signature)] [程序集:UsesPermission(Name = "com.testPush.permission.C2D_MESSAGE")]
[IntentFilter(new string[] { GCMConstants.INTENT_FROM_GCM_MESSAGE }, Categories = new string[] { "com.testPush" })]
[IntentFilter(new string[] { GCMConstants.INTENT_FROM_GCM_REGISTRATION_CALLBACK }, Categories = new string[] { "com.testPush" })]
[IntentFilter(new string[] { GCMConstants.INTENT_FROM_GCM_LIBRARY_RETRY }, Categories = new string[] { "com.testPush" })]
在 PushService.cs 中
以及AndroidManifest.xml中的包名
而且我无法使用搜索和查找找到其他参考资料。
【问题讨论】:
标签: client xamarin.android xamarin pushsharp