Titanium:在浏览器窗口中打开一个URL而不在Android上留下应用程序

Yah*_*din 1 titanium appcelerator titanium-alloy appcelerator-titanium appcelerator-alloy

在相当多的Android应用程序(例如Stack Exchange,Slack)中,当您打开链接时,它会显示在浏览器中,但作为应用程序的一部分(即不在Google Chrome浏览器或WebView上).

例如:

在Stack Exchange Android App上打开链接时

适用于StackExchange的Google Chrome浏览器

在Slack Android App上打开链接时

适用于Slack的Google Chrome浏览器

请注意,两者看起来非常相似,因此它向我表明Android具有某种功能(例如适用于iOS的SafariDialog).不仅仅是WebView.

如何在Android上为Titanium应用程序执行此操作.

Pra*_*ini 5

这是Android的新模块,用于显示像Slack app中的web-urls:

https://github.com/prashantsaini1/ti-chrometabs

请参阅文档,只需2-3行代码即可轻松使用.

注意:此模块是现在从Titanium SDK 7.5.0+发布的core-sdk的一部分.您可以使用直接导入此模块ti.webdialog.请参阅此新链接 - Titanium Web Dialog