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

Get user agent #17

Closed
azzuwan opened this issue Jan 26, 2017 · 2 comments
Closed

Get user agent #17

azzuwan opened this issue Jan 26, 2017 · 2 comments
Labels

Comments

@azzuwan
Copy link

azzuwan commented Jan 26, 2017

Is there anyway I can get the user agent info to detect whether it's mobile or desktop browser?

@boybundit
Copy link
Owner

I cannot find any way to do that from LINE API Reference. You may try checking HTTP header req.headers['user-agent'] but I think it won't work as it is LINE server that calls the webhook, not the LINE app client.

@azzuwan
Copy link
Author

azzuwan commented Feb 1, 2017

I'm going to try and slot a normal connect middleware before the webhook url get's processed and will let you know how that works out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants