【问题标题】:Auto-launching apps URI associations for Windows Phone 8 ' shows Sorry no apps found'Windows Phone 8 的自动启动应用程序 URI 关联“显示抱歉没有找到应用程序”
【发布时间】:2015-10-21 17:51:44
【问题描述】:

我已经在商店中发布了一个 Windows Phone 8.1 silverlight 应用程序。我将Auto-launching apps URI associations for Windows Phone 8 与此版本集成。

这样我的应用程序就可以通过调用 uri 架构从任何其他应用程序打开。

await Windows.System.Launcher.LaunchUriAsync(new System.Uri("mypp:"));

如果它已经安装在设备上,它会从另一个应用程序打开我的应用程序。

如果用户没有安装我的应用程序,它会显示在商店中搜索应用程序消息对话框,单击此商店应用程序会打开,搜索应用程序并显示'对不起, 未找到应用”

我在这里错过了什么?当他们在商店中搜索时,我需要在列表中显示我的应用程序。

我检查了 'foursquare:' & 'metrotube' ,如果之前没有安装它,它会显示在搜索列表中。 请提出我在这里错过的内容。

【问题讨论】:

    标签: windows-phone-8 windows-phone-8.1


    【解决方案1】:

    很遗憾,Windows Phone 8 不支持 LauncherOptions。还有其他替代方案吗?

    我的问题已通过使用 Launch Uri 方法添加启动选项得到解决。但它在 windows phone 8.1 版本中受支持。

     private async void LaunchChillr(object sender, RoutedEventArgs e)
      {
          var options = new Windows.System.LauncherOptions();
          options.FallbackUri = new Uri("http://windowsphone.com/s?appid=0dff7a2f-51f8-xxxx-8ff7-5e9ddab540c0");
          options.TreatAsUntrusted = true;
          await Windows.System.Launcher.LaunchUriAsync(new System.Uri("myapp:"), options);
       }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多