Bookmark Topic Watch Topic
  • New Topic

What are the APIs for SMS in Java?  RSS feed

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi there

I want to add SMS functionality in my Java application.
my question is what are the 3rd party APIs are available in Java for SMS

I have heared about Simplewire,Ozeski they both are paid
Then I try to use kannel but that is written in C.(I have also downloaded its Java version http://www.javacodegeeks.com/2010/05/java-api-for-kannel-smswap-gateway-v_24.html) but that is not working

So anyone has suggestion what and How I can use 3rd API in my java programs?

Thanks
 
Tim Cooke
Marshal
Posts: 4041
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
What did you think of Ron's suggestion in your other near identical thread?
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Report post to moderator
Kishor Joshi wrote:I want to add SMS functionality in my Java application.

Do you mean allow your application to send/receive text messages to/from mobile handsets?
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Report post to moderator
@Ron

Ya I need both send and receive functionality in my web application
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Report post to moderator
@Tim Cooke

that thread is very old that do not answar my question
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have used jsmpp for this, but an issue you may have is gaining access to the mobility network. SMS and other mobile services are carried over the PLMN, and access is generally restricted to telecom operators.

There are providers which offer gateway services in and out of the PLMN for text messaging only (often using SMPP protocol), but the per-messages prices are quite high when dealing with low volumes (generally between 5 and 20 cents US). We do about 500,000 messages per month and pay 0.5 cents US per message, which still seems a bit high.

Amazon also have an SMS relay service, Amazon Simple Notification Service, but I have never looked in to it.

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Report post to moderator
How about Kannel?
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Report post to moderator
Kishor Joshi wrote:that thread is very old that do not answar my question

It might help to explain what you are trying to do. My last post gave an answer to your question (JSMPP), but really I don't think it will solve your problem.
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Report post to moderator
Kishor Joshi wrote:How about Kannel?

How do you think Kannel will allow your app to send and receive messages with mobile devices?
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let me tell you my reason why I want to use SMS functionality

I want to verify user Mobile Number when they are registered in my web application.

What are the seneraio I can use in this?


(Mobile phone can be android or non-android)
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Report post to moderator
Well .. did you look at what I posted earlier as Tim suggested? Android has an API to read the handset's mobile number. Your app can send what it reads to your web application for verification. In fact, with the API, you don't even need to ask the user for their mobile phone number, your app will already know it.

Edit: I assume IOS (and other mobile platforms) has a similar API.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Report post to moderator
@Ron
What you suggested in this thread
http://www.coderanch.com/t/649520/java/java/ways-send-SMS-Java-Program

I think for that user needs some kind of android app already Install on their device.

But I am assuming when I am sending mobile number for verification NOT ANY SUCH KIND OF APP THERE.

And second one phone can be Ios,WindowsOS or others
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ok - so the use case is more like someone signs-up for a service (which does not use a mobile app), you ask for their mobile telephone number, and you want to verify that the they are in-control of the mobile which they provided the number for. You then send them a numeric of other code via SMS and have them enter that code to verify. Is that correct?

Is there any other use for SMS? Would you ever want to receive messages? What volume messages do you expect per month or per year?
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Report post to moderator
You could take a look at this SMS gateway provider. I have never dealt with them, but it looks like they offer something that you could use (and they are a fellow Canadian operation).

They do not have a native Java API, but they do support three network APIs: REST/JSON, SOAP/XML, and SMPP (you could use jsmpp with that). Cost seems like 1 cent to send to Canada/US, and 3 cents for the rest of world. They offer a free trial.
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ok I have found some APIs information by googling

I will later update my post with some more informations
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
Since there are several references to another thread, this thread shall be closed.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!