【发布时间】:2016-12-14 17:10:33
【问题描述】:
我正在尝试使用 oneSignal 推送通知 sdk 8.1+,但出现此异常。 看到这个:Windows Phone SDK Installation
这是否意味着我不能将它与 uwp 应用程序一起使用?
例外:
Could not load file or assembly 'System.ComponentModel.DataAnnotations,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of
its dependencies. The located assembly's manifest definition does not match
the assembly reference. (Exception from HRESULT: 0x80131040)
代码:
protected override void OnLaunched(LaunchActivatedEventArgs e) {
OneSignal.Init("OneSignal_App_Id", e, notificationOpened);
}
private void notificationOpened(string message, IDictionary<string, string> additionalData, bool isActive) {
System.Diagnostics.Debug.WriteLine("notificationOpened:message:" + message);
System.Diagnostics.Debug.WriteLine("notificationOpened:additionalData:" + additionalData);
System.Diagnostics.Debug.WriteLine("notificationOpened:isActive:" + isActive);
}
【问题讨论】:
-
OneSignal 无法与 UWP(Windows 通用平台)应用正确配合。
-
@jkasten 您对 uwp 免费推送服务有什么建议吗?
标签: c# win-universal-app uwp onesignal