Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to send headers to the "web view" #4

Closed
akvus opened this issue Apr 5, 2019 · 6 comments
Closed

Option to send headers to the "web view" #4

akvus opened this issue Apr 5, 2019 · 6 comments

Comments

@akvus
Copy link

akvus commented Apr 5, 2019

Would it be possible to add an option in the library to add headers to the request?

For example on Android:

intent.intent.putExtra(Browser.EXTRA_HEADERS, Bundle().apply { putString(headerName, headerValue) })

@LinusU
Copy link
Owner

LinusU commented Apr 8, 2019

I don't think that this is possible on the iOS platform, so I'm a bit hesitant to add it to the library...

What use case do you have?

@akvus
Copy link
Author

akvus commented Apr 10, 2019

I have a custom auth service which requires me to send some information to it either as a header or as a cookie.

@LinusU
Copy link
Owner

LinusU commented Apr 11, 2019

Are you only interested in Android? or do you have an idea on how to make it work on iOS?

@akvus
Copy link
Author

akvus commented Apr 11, 2019

I don't have much iOS experience and I had no time to look into the iOS version, but I will need that in future.

@LinusU
Copy link
Owner

LinusU commented May 3, 2019

As far as I can tell, iOS doesn't offer the option to send in extra headers, so you'll have to work around this in another way...

@akvus
Copy link
Author

akvus commented May 3, 2019

Indeed, the headers cannot be included on iOS as it is with Custom Chrome Tabs. The alternative would be a webview.

@akvus akvus closed this as completed May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants