Loading ...
Sorry, an error occurred while loading the content.

34602Re: [wmlprogramming] RE: Wurfl 1.5 and Desktop Browser

Expand Messages
  • Luca Passani
    Oct 24, 2013
    • 0 Attachment
      > do you think useful to assign a unique id to the device (ex google_chrome_24_macosx_10_6_8
      > and google_chrome_24_win_xp)?

      no. The reason why we introduced virtual capabilities is exactly because we did not want a bloated wurfl.xml. We intend to preserve the ability for user to act at different level of the framework. a huge XML file would go into the direction of making it become an untouchable black-box.

      Luca


      On Thu, Oct 24, 2013 at 2:00 AM, <cristian.porta.crx@...> wrote:
       

      Ops... 


      Hi Luca,

      I forgot to bring the method "setEngineTarget" into my test!


      Adding the

      engine.setEngineTarget(EngineTarget.accuracy);


      All works fine!


      Sorry and thanks :)


      PS

      I have viewed(and tested) the new virtual capabilities "advertised_*" like:


      Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17
      id:google_chrome_24
      brand_name:Google
      model_name:Chrome
      is_wireless_device:false
      is_mobile:false
      is_smartphone:false
      is_tablet:false
      is_smarttv:false
      is_console:false
      is_android:false
      is_ios:false
      is_windows_phone:false
      is_app:false
      is_robot:false
      advertised_browser:Chrome
      advertised_device_os:Mac OS X
      advertised_browser_version:24.0
      advertised_device_os_version:10.6.8
      device_os:Desktop
      device_os_version:0
      mobile_browser:
      mobile_browser_version:24.0

      Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.57 Safari/537.17
      id:google_chrome_24
      brand_name:Google
      model_name:Chrome
      is_wireless_device:false
      is_mobile:false
      is_smartphone:false
      is_tablet:false
      is_smarttv:false
      is_console:false
      is_android:false
      is_ios:false
      is_windows_phone:false
      is_app:false
      is_robot:false
      advertised_browser:Chrome
      advertised_device_os:Windows
      advertised_browser_version:24.0
      advertised_device_os_version:XP
      device_os:Desktop
      device_os_version:0
      mobile_browser:
      mobile_browser_version:24.0

      do you think useful to assign a unique id to the device (ex google_chrome_24_macosx_10_6_8 and google_chrome_24_win_xp)?





      Cristian



      ---In wmlprogramming@yahoogroups.com, <luca.passani@...> wrote:

      Are you aware of high-Performance vs High-Accuracy mode (introduced with 1.4)?

      http://wurfl.sourceforge.net/faq.php#java130

      Also, you should take a look at the new virtual capabilities (particularly advertised_*):


      Luca





      On Wed, Oct 23, 2013 at 5:29 AM, <cristian.porta.crx@...> wrote:


      Hi guys, trying the new api(1.5.0.1) I'm not more able to detect the Desktop Borwser device.

      Ex UA:
      Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1

      Return this infos:
      - id:generic_web_browser
      - brand_name:generic web browser
      - model_name:
      - is_wireless_device:false
      - is_mobile:false
      - is_smartphone:false
      - is_tablet:false
      - is_smarttv:false
      - is_console:false
      - is_android:false
      - is_ios:false
      - is_windows_phone:false
      - is_app:false
      - os:
      - os_version:
      - mobile_browser:
      - mobile_browser_version:

      What I'm wrong?

      This is a sample of my code:

      GeneralWURFLEngine engine = new GeneralWURFLEngine("/path/to/wurfl.xml");
      Devide device = engine.getDeviceForRequest(useragent);

      String model = device.getCapability("model_name");
      String family = device.getCapability("brand_name");
      device.getCapability("is_wireless_device")

      etc...



    • Show all 5 messages in this topic