0

今天我尝试了(不太可能)在我的应用中实现Chrome Custom Tabs ,想法是尝试使用它们并回退到webview以防万一,但我坚持要打开它们:这里是我试过的Chrome自定义标签

var intent = Ti.Android.createIntent({ 
     action: Ti.Android.ACTION_VIEW, 
     data: 'http://www.google.com', 
     packageName: 'com.android.chrome' 
    }); 
    intent.putExtra('android.support.customtabs.extra.SESSION', null); 
    Ti.Android.currentActivity.startActivity(intent); 

它所做的仅仅是在Chrome中打开网页(所以,我可以用Ti.Platform.openURL,但仅适用于Android做同样的事情);我错过了什么吗?是否有人知道模块/部件ala Ti.safariDialog

回答

1

implementation guide使用putBinder你在哪里使用putExtra所以我想这就是问题所在。钛目前不会公开putBinder,因此您必须请求将其添加到JIRA ticket