Jump to content









Photo

SMS Notifiaction is not working

SMS

  • Please log in to reply
3 replies to this topic

#1 sariputra

sariputra

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 24 December 2014 - 06:22 AM

SMS notification is not working .Below is the code and i have tested in Carriots debug console also.Its not working .I know there only 5 sms/day ,but still ii dint get sms notificatiion.

 

Note : Im from "INDIA" where i need to add Country code as well ?

 

import com.carriots.sdk.utils.Sms;
def sms = new Sms ();
sms.to="My number";
sms.message="Alarm ON";
sms.send();

 

 

regards,

sariputra



#2 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 26 December 2014 - 09:41 AM

Hello sariputra

 

I'm testing your code and it's working perfectly.

 

Attached File  sms.jpg   17.55K   28 downloads


Perhaps the problem is in the phone number. For India, try 0091 + phone number.

 


Hope it helps



#3 sariputra

sariputra

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 13 January 2015 - 06:26 AM

Still its not working :( :( .. In debugger mode it says 

Message: OK 
Details: 'OK'

 

But Im not able to recieve SMS to my mobile ...



#4 jpastor

jpastor

    Development leader

  • Administrators
  • 159 posts

Posted 13 January 2015 - 11:06 AM

Hello sariputra

Please review your phone number.

 

If you are receiving
Message: OK
Details: 'OK'
The SMS has been sent to your operator

Perhaps our SMS provider does not work properly in your country







Also tagged with one or more of these keywords: SMS

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users