Tweaking 1.4 DB API to get device rather than capabilities
Posted: Thu Apr 12, 2012 4:57 am
It seems the new 1.4 API has changed focus a bit. Any useragent that contains "UNTRUSTED 1/0" is now being picked recognised via the generic java midlet matcher.
I'm a lot more interested in identifying the underlying physical device, regardless of what software the user is currently browsing with (Java midlet, built-in browser, or whatever).
What would be the best way to tweak the 1.4 DB API to achieve this? At the moment, I'm thinking of adjusting the order and content of the matchers listed in WurlfConstants.php, to put the device-based matchers at the front of the list. But, is there a better way?
Is there a document anywhere that describes the new matching system in more detail (other than reading the source code)?
Regards
David
I'm a lot more interested in identifying the underlying physical device, regardless of what software the user is currently browsing with (Java midlet, built-in browser, or whatever).
What would be the best way to tweak the 1.4 DB API to achieve this? At the moment, I'm thinking of adjusting the order and content of the matchers listed in WurlfConstants.php, to put the device-based matchers at the front of the list. But, is there a better way?
Is there a document anywhere that describes the new matching system in more detail (other than reading the source code)?
Regards
David