I am using JavascriptInterface of Webview. Is it possible on Chrome Custom Tabs? Or Is there alternative method of that?
Asked
Active
Viewed 2,594 times
1 Answers
2
No. CustomTabs do not allow apps to interact with web page contents for privacy reasons. Though you can measure how fast the pages load with CustomTabsCallback
.

Egor Pasko
- 506
- 3
- 11
-
Thank you for answer. I'll try change my design to use CustomTabCallback. – Kazuhiro Nakai Sep 25 '15 at 18:52
-
1Great! Feel free to send us feedback about CustomTabsCallback. We usually react faster and better if issues/suggestions are filed via the Chromium Issue Tracker - just use the link at the bottom of the readme: https://github.com/GoogleChrome/custom-tabs-client – Egor Pasko Sep 27 '15 at 09:00
-
Egor, is it possible to make a POST request with custom tabs? – Pavel Biryukov Mar 09 '16 at 12:46
-
It is certainly possible to make AJAX POST requests from the web page being opened in CustomTabs, just like with any webpage opened in Chrome. However, it is not possible to open a custom tab with POST, we only support method GET. – Egor Pasko Mar 10 '16 at 14:01