×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Nokia Developer Expert
    Join Date
    Jul 2011
    Posts
    2

    Bug in the ContactsService.wgz demo application

    Hello,

    I’m using the PlatformServices2.0, I was testing the “ContactsService.wgz” example that comes with the library, because I will need to access the contacts list on the phone. In the simulator everything works fine, but when I deploy the application in the phone (Nokia C7-00), it crashes.

    It crashes inside the library in the “__sp_contact_iterator_get_next()” function in the following line:
    _3d4.close();
    You get the following error:
    getContactsCallBack: TypeError: Result of expression‘_3d4.close‘ [undefined] is not a function.

    The issue is that for some reason, the close function is always undefined for every contact of the list. Here’s a manual debug of the _3d4 object (corresponding to an entry in the contacts list).
    (string) id: -some random stuff-
    (Object) SyncClass
    (string) Label: Synchronisation
    (string) Value: private
    (undefined) close: null: undefined
    (object) LastName
    (string) Label: Last Name
    (string) Value: A
    (undefined) close: null: undefined
    (object) First Name
    (string) Label: FirstName
    (string) Value: Mr
    (undefined) close: null: undefined
    (object) LandPhoneGen
    (string) Label: Telephone
    (string) Value: 558999658
    (undefined) close: null: undefined
    (object) MobilePhoneGen
    (string) Label: Mobile
    (string) Value: 558999659
    (undefined) close: null: undefined
    (object) EmailGen
    (string) Label: Mail
    (string) Value: gaasda@akf.com
    (undefined) close: null: undefined
    (undefined) close: null: undefined
    When I debug in the simulator the last close becomes:
    (function) close: function() {}

    I solved the problem by changing the “__sp_contact_iterator_get_next()” code and adding :
    if(_3d4 && typeof(_3d4.close) === "function"){
    _3d4.close(); }
    Has anybody encountered this problem? Do you know if there is a more elegant solution?
    Any suggestions are welcome.
    Thanks in advance!

  2. #2
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Bug in the ContactsService.wgz demo application

    Thank you for reporting this. I have forwarded this to R&D for further investigation.

    -Ilkka

  3. #3
    Registered User
    Join Date
    Nov 2012
    Posts
    1

    Re: Bug in the ContactsService.wgz demo application

    is there any progress on this? it appears to be a minor problem. the API will be a waste if this function doesn't work and might have to give up developing on nokia and move to another phone

  4. #4
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Bug in the ContactsService.wgz demo application

    Hi,

    This issue is fixed in Browser 7.4.2 (and newer).

    For devices that does not have this browser, only solution is to modify platformservices.js, as pere.marti
    has done in the first post.

    Br,
    Ilkka

Similar Threads

  1. run wgz from the console application
    By driud in forum Symbian
    Replies: 0
    Last Post: 2011-02-08, 13:39
  2. Replies: 0
    Last Post: 2010-09-08, 09:17
  3. delete wgz file on the handset.
    By vempatisurya in forum Symbian
    Replies: 1
    Last Post: 2010-08-04, 11:59
  4. Replies: 4
    Last Post: 2007-06-22, 13:45
  5. Bug: Ukrainian language in the E70 is not supported in the QWERTY mode.
    By asb88 in forum Series 40 & S60 Platform Feedback Archive
    Replies: 3
    Last Post: 2007-03-29, 08:14

Posting Permissions

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