×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    6

    S40 web apps SMS URI

    Hi, i develop a S40 web app and i want to know how many characters the SMS body support.
    I ask this question because when i try to send SMS like this :
    onclick="mwl.loadURL('sms:+221773006054?body=JeggePharma')" it work fine but whe i change the body content like this

    onclick="mwl.loadURL('sms:+221773006054?body=jesuisdansvotrclasse')" nothing happend no message sent et not any issue.

    Please help about more documentation about SMS URI in S40 web apps .

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

    Re: S40 web apps SMS URI

    Hi,

    Is there a certain device where this happens?

    Br,
    Ilkka

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    19

    Re: S40 web apps SMS URI

    We are testing on C3-00 and X3-02.
    Christelle
    Last edited by scharffc; 2012-06-28 at 19:36.

  4. #4
    Registered User
    Join Date
    Jun 2008
    Location
    Port Elizabeth, South Africa
    Posts
    37

    Re: S40 web apps SMS URI

    Hi,

    Another thing to check is that the body of the sms consists of percent-encoded UTF-8 characters. It is possible that any extended characters in the body might cause problems. You can use Javascript's escape() function on the string to prepare it.

    The length of the body should be the standard sms length. Aim for 140 if you are using extended characters and 160 if you only use plain (7 bit) ASCII.

    For various examples you can refer to the wiki article.

    Hopefully it is not a newly introduced bug in the latest Nokia Browser.

    Regards,
    Stephen

  5. #5
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: S40 web apps SMS URI

    Hi,

    I tried with C3-00 and X3-02 and both of the links work fine for me.
    However special characters like "Ö Ä" etc.. do not work properly in C3-00 and X3-02.
    This is not a new bug, since they did not work with 1.5 Browser in the first place.
    Proper way to escape SMS is to use encodeURI()

    I'll try to find more facts on special character usage in SMS for you. I'll be back to you a soon as I know more.

    Br,
    Ilkka

  6. #6
    Registered User
    Join Date
    Oct 2011
    Posts
    6

    Re: S40 web apps SMS URI

    Hello i already have same bug sometimes sometimes not working, i try to do it as easy as possible but nothing. SMS box appear but no number and no data in the boxes.
    I use button to sens sms like this :

    <input type="button" name="bouton" value="Envoyer" onclick="mwl.loadURL('sms:'+encodeURI("+221773006054")+'?body='+encodeURI("hello word")+' ')" \>

  7. #7
    Registered User
    Join Date
    Jun 2008
    Location
    Port Elizabeth, South Africa
    Posts
    37

    Re: S40 web apps SMS URI

    Quote Originally Posted by noumounthi View Post
    Hello i already have same bug sometimes sometimes not working, i try to do it as easy as possible but nothing. SMS box appear but no number and no data in the boxes.
    I use button to sens sms like this :

    <input type="button" name="bouton" value="Envoyer" onclick="mwl.loadURL('sms:'+encodeURI("+221773006054")+'?body='+encodeURI("hello word")+' ')" \>
    I'm afraid I am no longer able to test these scenarios on a handset. I wanted to see what the trailing space, highlighted in red above, would do. Only the body of the sms needs to be encoded and that space should be converted with the rest of the body text into a '%20'.

    I did find that the sms URI handling in Nokia Browser was very black and white. What I mean by this is that it is not very forgiving if you pass it something it cannot handle. It won't try to figure the content of the sms URI out and it will fail silently. So a space or extended character in the body text or a badly formed parameter should cause it to not work.

    Regards,
    Stephen

  8. #8
    Registered User
    Join Date
    Jul 2012
    Posts
    5

    Re: S40 web apps SMS URI

    Hi all, why u not using <a href="sms:+221773006054?body=jesuisdansvotrclasse">Send</a>
    it's work bro...

  9. #9
    Nokia Developer Expert
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: S40 web apps SMS URI

    Hi,

    A bug report was created for special characters not working in SMS in older devices. So at the moment it is a known issue.
    Good news is, that special characters do work properly in new full touch devices.

    Br,
    Ilkka

Similar Threads

  1. Hub / home-screen apps for third party apps
    By arifzub in forum Windows Phone General
    Replies: 2
    Last Post: 2011-06-22, 12:34
  2. Replies: 9
    Last Post: 2011-05-15, 22:10
  3. Can N8 run QML apps?
    By wenz in forum Qt
    Replies: 2
    Last Post: 2010-12-09, 15:25
  4. to develop Symbian apps(j2me client and j2ee server apps)
    By harish_goel in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2010-07-29, 10:09
  5. Replies: 0
    Last Post: 2003-02-20, 04:46

Posting Permissions

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