在 WP7 上以编程方式启动其他应用程序 - 想法 [英] Launching other application programmatically on WP7 - ideas

查看:23
本文介绍了在 WP7 上以编程方式启动其他应用程序 - 想法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有许多为 WP7 开发的应用程序.我想从另一个应用程序启动一个应用程序.我知道一般的答案是不,你不能"

I have a number of apps developed for WP7. I'd like to launch one app from another. I know the general answer is "no, you can't"

如果我的应用首次启动时在我的服务器上注册了设备 ID 并注册了推送通知,该怎么办?

What if my app when launched for the first time registers at my server with a Device id and registers for push notifications?

然后当我想从应用程序栏启动应用程序 Foo 时:

Then when I want to launch app Foo from app Bar:

  • app Bar 使用给定的设备 ID 和应用程序 Foo id ping 我的服务器
  • 如果服务器发现给定设备安装了应用程序 Foo,它会向 Foo 应用程序实例发送推送通知
  • 应用 Foo 启动
  • 利润!!!

你对方法有什么看法?是否值得尝试或更好地等待可能为我们带来所需变化的 Apollo?(或可能没有)

What do you think about approach? Is it worth trying or better wait for Apollo which may bring us required changes? (or may not)

推荐答案

您提出的方法实际上行不通.如果您从服务器向 Foo 应用程序发送原始通知,并且该应用程序未运行(不会运行),则 MS 服务器不会将通知发送到手机,您的服务器将收到错误.

Your proposed approach isn't really going to work. If you're sending a raw notification from your server to the Foo application, and the application isn't running (it won't be), the MS servers will not deliver the notification to the phone, and your server will receive an error.

如果你发送一个 toast 通知,是的,用户将收到一个 toast 来显示与 Foo 应用程序相关的事情发生了.他们仍然需要点击 toast 来启动 Foo 应用程序.这可能可行,但似乎有点……笨重.

If you send a toast notification then, yes, the user will receive a toast to show something relating to the Foo application has occurred. They'll still have to tap the toast to launch the Foo application. That may be workable but seems a bit ... clunky.

虽然必须有某种机制(请参阅 YouTube 和 Acrobat 应用程序),但我想说的是,目前,它需要市场要求的特殊许可/技术豁免.我认为您不太可能获得这些许可/豁免.

Whilst there must be some mechanism for this (See YouTube and Acrobat applications) I'd say that, at present, it require special permissions / technical exemptions from the market place requirements. I think that you're very unlikely to receive these permissions / exemptions.

这篇关于在 WP7 上以编程方式启动其他应用程序 - 想法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆