New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 677940 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Last visit 21 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Documentation bug in Chrome Custom Tabs

Reported by clh...@gmail.com, Jan 3 2017

Issue description

On the page:
https://developer.chrome.com/multidevice/android/customtabs

The section about "Add your app as the referrer" has code for adding a referrer URI. But by using the code, the URI becomes "2://com.example.app" as the const Intent.URI_ANDROID_APP_SCHEME is an integer flag that is designed to be used by Intent.parseUri and not as a string.

So the code example should be changed to:
intent.putExtra(Intent.EXTRA_REFERRER, 
        Uri.parse("android-app://" + context.getPackageName()));
 

Comment 1 by ajha@chromium.org, Jan 4 2017

Labels: Documentation
Labels: OS-Android
Cc: ian...@chromium.org lizeb@chromium.org
Components: UI>Browser>Mobile>CustomTabs
Owner: yus...@chromium.org
Status: Assigned (was: Unconfirmed)
Cc: yus...@chromium.org
Owner: sbirch@chromium.org
I have a Pull Request for this ready here: https://github.com/GoogleChrome/multi-device/pull/44

Sign in to add a comment