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

Parsing user_agent for symbian os #5324

Closed
rusikf opened this issue Mar 24, 2015 · 4 comments
Closed

Parsing user_agent for symbian os #5324

rusikf opened this issue Mar 24, 2015 · 4 comments

Comments

@rusikf
Copy link

rusikf commented Mar 24, 2015

I am using ruby port of this library - https://github.com/podigee/device_detector, which doesn't change original regexpes yaml.

For this user_agent

Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; Series 60/03.83; 9730) Opera 8.65 [ru]

Library return nil, but it is a mobile device.(device is not detected, because there is no pattern in yaml config)

Can you fix it ?

@sgiehl
Copy link
Member

sgiehl commented Mar 24, 2015

Current response from the php parsers is:

user_agent: 'Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; Series 60/03.83; 9730) Opera 8.65 [ru]'
os:
  name: Symbian OS Series 60
  short_name: S60
  version: 03.83
client:
  type: browser
  name: Opera
  short_name: OP
  version: 8.65
  engine: Presto
device:
  type:
  brand:
  model:
os_family: Symbian
browser_family: Opera

There is no device fragment in it, so we can't detect any specific device. In the php parsers isMobile should return true as SymbianOS is considered to be mobile.
What would you expect to be returned?

@rusikf
Copy link
Author

rusikf commented Mar 25, 2015

I need , that type of device will be smartphone

@sgiehl
Copy link
Member

sgiehl commented Mar 25, 2015

SymbianOS is not only used on smartphones. It might also be a feature phone...

@rusikf
Copy link
Author

rusikf commented Mar 25, 2015

@sgiehl , thanks for response, i close this issue! For my needs, i marked all symbians as mobile device 😄

@rusikf rusikf closed this as completed Mar 25, 2015
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