×

Discussion Board

Results 1 to 9 of 9
  1. #1
    (Retired) Nokia Developer Admin.
    Join Date
    Jan 2006
    Location
    Michigan
    Posts
    4,664

    S60 Platform Services 2.0 Javascript API (Beta Release)

    The beta release of Nokia Platform Services 2.0 is now available. This includes support for the APIs on the Nokia 5800 XpressMusic and the Nokia N97 mobile computer.

    Description
    Nokia Platform Services 2.0 provides an intuitive and easy-to-learn set of JavaScript™ APIs for accessing key device data and information, such as location information and contact records. It also adds a new API that enables use of a device’s camera.

    S60 platform support
    The emulator in the S60 5th Edition SDK for Symbian OS as well as the Nokia 5800 XpressMusic and the Nokia N97 mobile computer are supported.

    Download here

  2. #2
    Registered User
    Join Date
    Jul 2009
    Posts
    3

    Re: S60 Platform Services 2.0 Javascript API (Beta Release)

    I'm trying to install the sis file on the N97 emulator and am getting the following error "Certificate Error. Check with application provider". Any ideas on how to get around this?

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    1

    Re: S60 Platform Services 2.0 Javascript API (Beta Release)

    For emulator we can have one of the following workarounds:

    1) Copy the platformsrvices.js to "%EPOCROOT%\epoc32\winscw\c\system\widgetlibs\platformservices.js". We can do this manually in the emulator.

    2) Use the platformsrvices.js locally in the widget.

    FYI, the platformservices_v2_0_alpha.sis installs(copies) the platformservices.js to the "c\system\widgetlibs\" as mentioned in workaround 2.

    Hope this information helps.

  4. #4
    Registered User
    Join Date
    Aug 2009
    Posts
    3

    Exclamation Re: S60 Platform Services 2.0 Javascript API (Beta Release)

    I'm using the com.nokia.device.messaging.start_editor API to start the SMS editor with pre-populated message data. start_editor fails silently, if the message argument has no non-empty "to" value. Shouldn't all message parameters be optional, except for "type"?

    var message = {
    type: 'SMS',
    body: 'Hello'
    };
    var messaging = com.nokia.device.load("", "com.nokia.device.messaging", "");
    messaging.startEditor(message); // nothing happens, not even an error

    message.to = '...'; // insert a real phone number
    messaging.startEditor(message); // now it works


    Dennis

  5. #5
    Registered User
    Join Date
    Sep 2009
    Posts
    16

    Re: S60 Platform Services 2.0 Javascript API (Beta Release)

    You are right, TO should be optional. If there is no To value I think it should force the Editor to start (override LaunchEditor:false) instead of throwing an error.

    Also, it does not allow email addresses as valid values for TO although many operators all SMS & MMS to be sent to e-mail addresses. Secondly, the Messaging application allows this natively (and changes the message format to MMS) but the platform services do not allow this. When will you fix this?

    Lastly, when are you going to add e-mail services to the Messaging service? I really want e-mail more than SMS or MMS functionality.



    Quote Originally Posted by dhomann View Post
    I'm using the com.nokia.device.messaging.start_editor API to start the SMS editor with pre-populated message data. start_editor fails silently, if the message argument has no non-empty "to" value. Shouldn't all message parameters be optional, except for "type"?

    var message = {
    type: 'SMS',
    body: 'Hello'
    };
    var messaging = com.nokia.device.load("", "com.nokia.device.messaging", "");
    messaging.startEditor(message); // nothing happens, not even an error

    message.to = '...'; // insert a real phone number
    messaging.startEditor(message); // now it works


    Dennis

  6. #6
    Registered User
    Join Date
    Sep 2009
    Posts
    16

    Re: S60 Platform Services 2.0 Javascript API (Beta Release)

    Webkit needs to be updated for S60. The current version on v30 firmware for 5800 XM does not handle many webkit css properties well or at all. The animations for packages such as jQuery UI and jqTouch, which work perfectly fine on the iPhone and Android, are non-existant or terribly rendered on the 5800.

    Webkit for S60 is a very old version of webkit and it needs to be updated badly.

  7. #7
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    57

    Re: S60 Platform Services 2.0 Javascript API (Beta Release)

    Just to clarify, is Platform Services 2.0 a Javascript wrapper library which wraps calls to the WRT Services API?

    Or is it the next version of the WRT's native javascript services API?

    Thanks!

  8. #8
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: S60 Platform Services 2.0 Javascript API (Beta Release)

    Hi wildabeast,

    the current Nokia Platform Services 2.0 version is a beta of the next version of Platform Services, that include new and extended functionalities, and that will (hopefully soon ) be supported by WRT enabled devices.

    Pit

  9. #9
    Regular Contributor
    Join Date
    Aug 2009
    Posts
    57

    Re: S60 Platform Services 2.0 Javascript API (Beta Release)

    Thanks Jappit. So please let me know if this is correct:

    In order to use the BETA release of Platfrom Services 2.0, we must include platformservices.js (which after examining, appears to simply wrap calls to platform services 1.1). However once Platform Services 2.0 is built into WRT, the platformservices.js file will no longer needed and calls to PS2.0 will be native.

Similar Threads

  1. Python for S60 1.9.2 released
    By tvijayan in forum Python
    Replies: 26
    Last Post: 2009-03-11, 09:28
  2. s60 5th edition platform services
    By hp3 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2008-10-03, 09:06
  3. [Moved] I hate symbian
    By mehdy13 in forum General Development Questions
    Replies: 39
    Last Post: 2008-09-12, 11:47
  4. Problem with Camera API (S60 2.0)
    By tpikkara in forum Symbian C++
    Replies: 20
    Last Post: 2008-05-26, 06:39
  5. Replies: 4
    Last Post: 2008-04-16, 11:29

Posting Permissions

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