简体   繁体   English

从WP8.1应用程序中打开Twitter个人资料

[英]Opening twitter profile from within the WP8.1 app

I have a Windows Phone 8.1 WinRT (universal) app and on About Page I would like to put link to my twitter account, so that people could click it and be transfer to my account in twitter app (if it's installed, I assume otherwise they would have option to install it). 我有一个Windows Phone 8.1 WinRT(通用)应用程序,在“关于页面”上,我想链接到我的Twitter帐户,以便人们可以单击它并转移到我在Twitter应用程序中的帐户(如果已安装,则我假设他们可以选择安装它)。 Is it at all possible? 有可能吗? I think my secondary option is just link to the profile which will open in IE and I don't think it's the best solution. 我认为我的第二个选择只是链接到将在IE中打开的配置文件,我认为这不是最好的解决方案。 From what I know I think that I need to use some kind of URI-link What URI protocols exist on Windows Phone 8? 据我所知,我认为我需要使用某种URI链接Windows Phone 8上存在哪些URI协议? but I can't find any info about using it with twitter app. 但找不到有关在Twitter应用程序上使用它的任何信息。

Unless Twitter has published documentation on launching their app with a specific scheme, your app will be fragile. 除非Twitter已发布有关使用特定方案启动其应用程序的文档,否则您的应用程序将非常脆弱。 Further, the user may not have the official Twitter app installed and either use something else or not have a Twitter account. 此外,用户可能未安装官方的Twitter应用程序,或者使用其他内容或没有Twitter帐户。

You should launch a browser window that directly opens the account. 您应该启动一个浏览器窗口,直接打开该帐户。 However, unless the user is signed in, it still may not be the experience you want for your users. 但是,除非用户已登录,否则可能仍然不是您想要的用户体验。 Given Twitter doesn't prioritize Windows app development, I doubt their web page provides a quick way to launch the app. 鉴于Twitter不优先考虑Windows应用程序的开发,我怀疑他们的网页提供了启动该应用程序的快速方法。

This isn't unique to Windows Phone apps either. 这也不是Windows Phone应用程序独有的。 The same challenge exists in other operating systems. 在其他操作系统中也存在相同的挑战。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM