×

Discussion Board

Results 1 to 7 of 7

Thread: N95 WRT Issue

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    3

    N95 WRT Issue

    I have an interesting challenge.

    1. I need to have my WRT packaged FL3 application talk to a socket server over WiFi. So far so good all working.

    2. My device needs to be told via some parameter what the IP address of the server it is to connect to is. As FL3 allows access to either the network OR local filesystem i need a method to pass the ip. This was done using FlashVars in the html container - so far so good.

    3. When published as a widget, for some reason focus is not given to the flash lite app. This can be overcome using a meta refresh tag, but that prevents passing the parameters as all the embed data is lost/not required.

    Any ideas on how i can either pass a param, or push focus to my flash lite app?



    Item 2 - Odd security FL3 N95
    I am also seeing some odd security behaviour here. I have my socket server able to post a response to a security policy request, and also a suitable crossdomain.xml file in the root of my webserver. I am able to see when either are requested.


    Previously, when running the app natively (i.e. not in a web-page) I saw a security request for crossdomain.xml on 80. No amount of changing code (perhaps wrongly) enabled this to be moved to the socket (I would prefer this as the html component is protected with http_auth) and as such the user has to key in username and password.

    Now, when run within the WRT framework, there is no request at all from either 80 or from my socket server

    Confused!!! Anybody can shed some light on either of these - Item 2 is less of an issue as the code works - but to my mind, it shouldn't

  2. #2
    Regular Contributor
    Join Date
    Apr 2003
    Location
    Akron Ohio USA
    Posts
    229

    Re: N95 WRT Issue

    you should be able to push data into the flash lite app if it is embedded the SWF in the web page.

    If you are redirecting to a SWF or launching SWF as the start html in the config file, then the WRT browser will launch the standalone and there is no way to pass data from the browser to the standalone.

    So, are you embedding or using standalone?

  3. #3
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: N95 WRT Issue

    Hi wilddog6060,

    Item 1:
    Nokia are aware of this issue and I don't believe that there is a workaround.
    http://discussion.forum.nokia.com/fo...d.php?t=127724

    Item 2:
    Concerning the cross domain implementation the documentation suggests that you can use a socket to load the policy.
    http://livedocs.adobe.com/flashlite/...=00005452.html

    Regards,

    Mark
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  4. #4
    Registered User
    Join Date
    Jul 2008
    Posts
    3

    Re: N95 WRT Issue

    Thanks for your help.... I think.

    Yes, Item 1 is a big blocker if you think about it. As far as I can tell, it would preclude you from being able to connect to a service unless you actually new the IP address of the device you were connecting to - i.e. hardwired into the app. You cant connect to any local file resource (can you - i read about a trusted folder but am not sure if this applies to the dev version of FL3 or the version i have which is on the shipped version)

    Item 2

    Yes, sure, thats what i have (belt and braces approach to start with). I have a crossdomain.xml file present in the root of my webserver - when i run the app standalone, it asks for the http_auth credentials from my web server to fetch the crossdomain.xml file - this works fine (service ip hardwired) but even though i put the following:

    System.security.loadPolicyFile("xmlsocket://192.168.1.1:8888");

    The crossdomain.xml file is still requested from the webserver (is see the http_auth credentials) and the webserver pass the file. But there is no request on the 8888 port.

    This differs from the latest flash 9 player which DOES request the policy file from the port no matter what.

    Something is fishy here.....

  5. #5
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: N95 WRT Issue

    Regarding item1: You can load data from files for sure using LoadVars.
    http://www.actionscript.org/forums/s....php3?t=133697

    Because you want to load the data and then do networking you would need to use the trusted folder. At this time it only applies to the developer edition of the player, although we are working to fix this. KuneriLite offers another option for developers.

    Regarding item2: In Flash Lite 2.x the player always requested the policy via HTTP on port 80, the policy establishes the XMLSocket and ports to which access is granted. The player with automagically try and get the policy file at the root location if you attempt to load something before the policy is loaded. Check that you are waiting until the connection is established before loading data. Check for movies that might load from an external location etc.

    You should ensure that the XMLSocket policy file matches this rule, note that you cannot use wild cards (*) for the to-ports attribute.

    <cross-domain-policy>
    <allow-access-from domain="*" to-ports="507" />
    <allow-access-from domain="*.foo.com" to-ports="507,516" />
    <allow-access-from domain="*.bar.com" to-ports="516-523" />
    <allow-access-from domain="www.foo.com" to-ports="507,516-523" />
    <allow-access-from domain="www.bar.com" to-ports="*" />
    </cross-domain-policy>

    If none of this works then please prepare a basic test case so that we can look into it.

    Mark
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  6. #6
    Registered User
    Join Date
    Jul 2008
    Posts
    3

    Re: N95 WRT Issue

    Thanks Mark,

    This is only fl 3.0 - latest N95 f/w update 2.0.016 (i think)

    My concern is my code should NOT work - in WRT, but it does (with the exception of the focus issue). When in an html file (as per the default widget config elsewhere on MOSH i think), it does not request a policy file from 80 (this would require http_auth) and does not ask for it. It also does not ask from 8888 (which is my socket server). I see events sent down the XML socket and am able to send them as well using a timer as i have no user interaction.....

    When you say working to fix it, do we have any idea on schedule - i have a substantial product launch which is quite dependant on this looming large in the window :-S

    I can try to prep an example scenario but it may take some time as i have some other stuff to deliver.

    Anywhere I can reach you on PM?

    Thanks

  7. #7
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

    Re: N95 WRT Issue

    Ok, regarding a fix I was merely talking about the trusted folder not the WRT implementation.

    You can contact me at mdoherty at adobe dot com

    Mark
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

Similar Threads

  1. silent sms issue only on N95, 6110 and 6120
    By saurbh_g in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2008-02-08, 05:27
  2. Nokia N95 NAM patch to fix FL2 network issue does not install !?
    By biskero in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2008-02-07, 15:40
  3. java.util.Date performance issue on N95
    By pstefan in forum Mobile Java General
    Replies: 3
    Last Post: 2007-11-22, 13:16
  4. NOKIA N95 Battery Issue (Please discuss all Nokia N95 battery issue here)
    By Waqar in forum General Development Questions
    Replies: 3
    Last Post: 2007-09-17, 01:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×