×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Sep 2010
    Location
    India
    Posts
    61

    Exclamation RegisterAlarm and signing

    Hello,

    I am developing an app on Nokia C2-00
    in which i am using push registry for auto start of app on some fix time

    ex.
    PushRegistry.registerAlarm("ClassName", alarm.getTime());

    this is working perfect and it starts app on that time.

    But this is asking me for permitions two times.
    1) when i am registering alarm using PushRegistry.registerAlarm("ClassName", alarm.getTime());
    2) when app start on that defined time.

    in this
    and this link i found that if my application is signed then it will not ask for permittion when app autostart.

    but i am not sure about the time when my code will register alarm.

    It will ask for permittion or not.

    Please clear my doubt.

    Thanks.

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

    Re: RegisterAlarm and signing

    Hello mihirp,

    based on the information on the table the permission will be asked on startup (accordingly the information on the 'App auto start' row).

    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 2010
    Location
    India
    Posts
    61

    Re: RegisterAlarm and signing

    i know if app is not trusted then it will ask for permition
    but my question is will it ask for registering alarm permmition
    PushRegistry.registerAlarm("ClassName", alarm.getTime());
    if app is signed?

    Because it is not cleared in that documentation.

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

    Re: RegisterAlarm and signing

    Hello mihirp,

    according to other link http://www.developer.nokia.com/Commu..._Series_40_6th

    Trusted 3rd party domain

    App auto start

    No access = yes
    Ask always = default
    Ask first time = yes
    Always allowed = yes

    So 'default' means that right after signing the permission notification will be prompted, unless end-user configures the MIDlet to remove the prompts.

    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]

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

    Re: RegisterAlarm and signing

    Quote Originally Posted by mihirp View Post
    when app start on that defined time.
    This is not a permission asked from Java, but a platform request to start another context. In Series 40, I see no way how to remove this. Actually, the other permisson request (while registering in code) goes away with signing and if the user changed the permission for your MIDlet manually.

    Another way to test this: Gor for a Series 40 emulator and play around with the standard permission (available in the menu bar, Preferences of a running emulator). There you will see the current behaviour. Then change to ‘overwrite permissions’ in that Preferences. You MIDlet behaves like a signed one and you see what happens.

    Short story: In Series 40, do not go for signing just because of PushRegistry.registerAlarm. Near to useless, because teaching your user to change the default permission does not help in your case either.

  6. #6
    Registered User
    Join Date
    Sep 2010
    Location
    India
    Posts
    61

    Re: RegisterAlarm and signing

    Quote Originally Posted by traud View Post
    do not go for signing just because of PushRegistry.registerAlarm. Near to useless, because teaching your user to change the default permission does not help in your case either.
    hey traud
    Thanks for idea.

    i just want to confirm that even after signing application with verysign
    my Midlet will ask for permission when PushRegistry.registerAlarm will invoke?

    user is ready to set Always Allow permission manually.
    And my app is close on fix time and at that time i am Registering alarm for that midlet invocation.

    in short i don't want any prompt for permission at close and start time of Midlet.

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

    Re: RegisterAlarm and signing

    Still with VeriSign, there is a question when starting-up your MIDlet. The one you face right now. However, this is not related to Java permissions but a Series 40 platform notification to change user contexts.
    Quote Originally Posted by mihirp View Post
    even after signing application with verysign
    my Midlet will ask for permission when PushRegistry.registerAlarm will invoke?
    No, if (and only if) your user changes that permission manually.
    Quote Originally Posted by mihirp View Post
    i don't want any prompt for permission at close and start time of Midlet.
    For this, I am not aware of a solution.

Similar Threads

  1. PushRegistry and RegisterAlarm in QT?
    By anton_duca in forum [Archived] Qt Mobility Project
    Replies: 1
    Last Post: 2010-12-19, 15:01
  2. PushRegistrey.registerAlarm
    By eyalmnm in forum Mobile Java General
    Replies: 2
    Last Post: 2008-12-08, 12:12
  3. PushRegistry.registerAlarm
    By kamalinfo2k2@yahoo.com in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-17, 11:17
  4. registerAlarm() problem again!
    By henkkapa in forum Mobile Java General
    Replies: 0
    Last Post: 2006-03-09, 11:46
  5. PushRegistry.registerAlarm
    By nstamps in forum Mobile Java General
    Replies: 0
    Last Post: 2004-04-13, 15:49

Posting Permissions

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