Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User paulkeogh's Avatar
    Join Date
    Mar 2003
    Posts
    34
    Hi,

    Is there any way (programatically or algorithmically) that I can determine if the an instance of WRT installed on a device contains all the Javascript libraries needed to execute a specific widget ?

    The reason I ask is twofold;

    Firstly, it would be optimal to only package a widget archive with the JS libraries needed for a particular platform (lets assume dynamic packaging).

    Secondly, it would allow an active server platform (as opposed to a web accessible file server), to only expose widgets that the device is capable of executing. This is typically a gallery view, prior to any widget download.

    Thanks,

  2. #2
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi,

    it totally depends on the way you want to allow users to browse/download your widgets.
    As an example: you could build a "gallery" widget, compatible with WRT 1.0, so able to run on all WRT-compatible devices. Through that, It'll be easy to identify which WRT version is shipped (e.g.: checking if 'device' object exist) and so to show to him only supported content.

    Hope this matches your question

    Pit

  3. #3
    Registered User paulkeogh's Avatar
    Join Date
    Mar 2003
    Posts
    34
    Ummm not really. Here's the use case.

    I write a widget that uses WRT 1.1 functions. I publish it onto a public gallery that is accessed by devices that use both WRT 1.0 and 1.1.

    Who or what tells the WRT 1.0 device that it cannot run my widget ?

    Does the user see a runtime exception when the 1.1 JS functions/libraries cannot be found ? If so, this is a poor user experience.

    Can a server help here ? Is there a way that it can "know" that the device (maybe from the User-Agent value queried against WURFL) supports WRT 1.0 and hence cannot run a 1.1 widget, and handle the exception in a user friendly manner ?

  4. #4
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    So, the user will access the widgets gallery via its device's browser, right?

    If this is your case, then using the User-Agent would maybe be the only option, but could start to be quite a mess to manage when (if?) devices with WRT 1.0 will be upgraded to 1.1 with firmware updates.

    Still looking for a better solution...

    Pit

  5. #5
    Registered User paulkeogh's Avatar
    Join Date
    Mar 2003
    Posts
    34
    Yes, widget access via the browser.

    Agreed that the User-Agent header solution won't work 100% of the time, so it seems to be that what is needed is a Widget Agent on the client, which launches or embeds the browser to render the widget, but which is also capable of other things - primarily being able to figure out if the installed software on the device is capable of rendering the widget.

    This is why I dont think web runtime is the silver bullet for cross device compatiblity - its not smart enough to cater for all the use cases out there.

Similar Threads

  1. Bluetooth Security: What exactly is an untrusted device?
    By rahulmcs in forum Bluetooth Technology
    Replies: 1
    Last Post: 2005-12-02, 06:26
  2. Current Symbian Development Opportunities...!!
    By mobile2004 in forum Symbian C++
    Replies: 0
    Last Post: 2005-01-17, 17:58
  3. Getting the current device time?
    By mayur_24 in forum Symbian C++
    Replies: 2
    Last Post: 2004-12-15, 06:54
  4. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved