【发布时间】:2013-11-19 16:32:21
【问题描述】:
我正在使用cordova/phonegap 制作一个windows phone 应用程序,我正在尝试在事件触发时从C# 调用脚本。
有没有办法做到这一点?
这是我目前的课程。
public void register(string options)
{
// This is executed asynchronously
if (!TryFindChannel())
DoConnect();
}
void httpChannel_ChannelUriUpdated(object sender, NotificationChannelUriEventArgs e)
{
// Finished asynchronous task in "register" method
Trace("Channel opened. Got Uri:\n" + httpChannel.ChannelUri.ToString());
SaveChannelInfo();
Trace("Subscribing to channel events");
SubscribeToService();
SubscribeToNotifications();
// SEND CHANNEL URI TO JAVASCRIPT
}
【问题讨论】:
-
抱歉忘了提我正在使用cordova/phonegap 来制作windows phone 应用而不是asp.net
标签: c# javascript cordova windows-phone-8