×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Is there any API in s40 to make silent http requests without the IAP prompt??

    Hi all,

    In my j2me application, i am trying to fetch some data over the network but i want to do it silently if the connection is available. I know that user settings are available for prompting/not prompting for IAP selection dialog but i want that even if the user has selected "Ask first", the request be made silently in my application.

    I think the problem is understood. Is there some API in s40 platform to achieve this?
    Any pointers will be appreciated.

    Thanks,
    Raj

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Is there any API in s40 to make silent http requests without the IAP prompt??

    Hello Raj,

    this is not possible to achieve with any Java ME based API since the prompts are part of the implementation of security policy for Java ME.

    As you have described, configuring the prompt settings it is possible to achieve the expected outcome: in addition, if you sign the application it should be possible (on the latest Nokia devices which support Java ME) to minimize the amount of prompts by default since the 'Ask first' will be shown during runtime of the signed application.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: Is there any API in s40 to make silent http requests without the IAP prompt??

    Hi r2j7,

    Thanks for the reply.
    I think signing won't help here. Using signing you can get rid of the general application specific prompts. Network selection prompt during application runtime
    is common to all applications. As you said that this is not possible, i was thinking on the same lines. Moreover, i read this quote on the forum nokia library:

    IAP selection prompt is shown every time when the connection is opened using a host name. This is mainly because of the way the native DNS resolver works.
    Do you think i shall i conclude on this now?

    Thanks,
    Regards,
    Raj

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Is there any API in s40 to make silent http requests without the IAP prompt??

    Quote Originally Posted by raj8nokiaforum View Post
    Hi r2j7,

    Thanks for the reply.
    I think signing won't help here. Using signing you can get rid of the general application specific prompts. Network selection prompt during application runtime
    is common to all applications. As you said that this is not possible, i was thinking on the same lines. Moreover, i read this quote on the forum nokia library:



    Do you think i shall i conclude on this now?

    Thanks,
    Regards,
    Raj
    Yeah that's correct...
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2003
    Posts
    4,104

    Re: Is there any API in s40 to make silent http requests without the IAP prompt??

    Are you talking about the IAP prompt? In Series, this prompt should be shown when your phone has Wi-Fi only. However, even than the user has to remove this prompt: Series 40 with Wi-Fi » Menu » Settings » Connectivity » Internet connection » Do not ask

    If you are talking about the permission prompt, then you have to sign your MIDlet in the domain operator; or you hack your own phone; or live with ‘Ask first time only’: Series 40 » Menu » Applications » highlight (not open) your MIDlet » Options » Application access » Communication » Network access » Ask first time only

    If the phone has not dropped the IAP (GPRS or WLAN) yet, then the IAP prompt is not shown. If one IAP is active before you start your MIDlet, however, the platform wil sho the promt at least once. I do not think this is related to DNS, but it would worth a try.

Similar Threads

  1. How to add Custom(my own Name=Value Pair) HTTP headers to HTTP requests?
    By symbian_ravi in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2012-01-10, 11:21
  2. How to make multiple http requests in a for loop?
    By raj8nokiaforum in forum Symbian C++
    Replies: 13
    Last Post: 2010-08-16, 09:41
  3. Threading HTTP requests
    By grayess in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2009-06-17, 11:31
  4. 2 http requests one after another
    By yazwas in forum Symbian C++
    Replies: 2
    Last Post: 2007-08-24, 06:38

Posting Permissions

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