hazems / cordova-sms-plugin Goto Github PK
View Code? Open in Web Editor NEWA custom Cordova plugin which allows sending SMS messages in Android, iOS and Windows Platforms.
A custom Cordova plugin which allows sending SMS messages in Android, iOS and Windows Platforms.
how do i send an sms with an onclick funtion?
hello, I get the error:
"code: SMS_GENERAL_ERROR, message: SMS general error"
I'm testing in Android 7.0
Hi ,
We have hybrid app , and we are using cordova-sms-plugin for Windows phone 8.0 app it works fine with 8.0 , But as we moved to windows phone 8.1 , this plugin is not working.
Please can you suggest.
THanks,
Sachin Sharma
I'm using phonegap 3.4.0 on android and the sms reference in my javascript is undefined if I access them. The plugin got installed with phonegap plugin add com.jsmobile.plugins.sms
Did I miss a setup step or should this plugin just work out of the box? Does it work with the latest phonegap 3.4.0?
Hi ,
I am getting error response SMS_GENERAL_ERROR while calling sms.sendMessage() method.
Can you pls help me regarding this.
Hello thanks for this awesome piece. it is working perfectly for me when sending only one sms. I am however facing difficulties when i want to send two different messages to two different numbers simultaneously. I am getting the numbers from a formbuilder form and when i hit the send button, sometimes the two messages are delivered immediately while in other instances only one message is delivered while the other takes up to 30 minutes to be delivered or not delivered at all, meaning only one is sent.
It is however very important that the two messages are delivered.
i am calling the sms.send() functions one after the other as below
sms.send(sendernumber, 'your packages has been sent to '+recipientnumber);
sms.send(recipientnumber, sendernumber+'has sent you a package');
i would appreciate any help from this forum.I am testing my application in deployment mode
Hello,
I am getting this error. SMS is not sent because no service is available.
Error code is: "NO_SMS_SERVICE_AVAILABLE"
Can anyone please help me what exactly is going wrong.
Thanks
Gaurav
I was looking for send multiple recipients for ios and windows, found this for ios..
NSArray *recipients = [[options objectForKey:@"recipients"] componentsSeparatedByString:@","];
Maybe you could be interested in use that, that is a really nice future considering that ios opens native message application.
Thanks!
Even no mentioning INTENT to our our native functionality but sms is still getting send silently, plus there is no permission for send_sms in plugin itself
var options = {
replaceLineBreaks: false, // true to replace \n by a new line, false by default
android: {
intent: 'INTENT' // send SMS with the native android SMS messaging
//intent: '' // send SMS without opening any other app
}
};
Sending SMS is good, but it would be better if the plugin supported reading SMS log as well. Can that be done?
Hello,
I have the following error when i'm trying to build my app on build.cordova.
This is what I have in the config.xml file:
<gap:plugin name="com.jsmobile.plugins.sms" version="0.0.1" />
Thanks for the great plugin,
Bogdan
For android -
android: {
//intent: 'INTENT' // send SMS with the native android SMS messaging
intent: '' // send SMS without open any other app
},
works fine to send the sms silently.
Any idea for the iOS -
ios: {
intent: '' // send SMS without open any other app
}
Doesn't work.
I took the sample code and pasted, but appears white screen below ionic tabs. It should appear at least in the html h1
tag but not this. No way I debug? I am intermediate developer of mobile.
When I use this for sending sms. In sender option my number is shown. Instead of my number i set another number with name.
How can i do this ?
Hi,
I'm trying to run your plugin however it looks like the sms sending is always cancelled.
error SMS_MESSAGE_CANCELLED
I have also in Xcode de following logs :
timed out waiting for fence barrier from com.apple.mobilesms.compose
Any idea where it could come from ?
Thx
What's is a restriction version in Android, Ios and Windows Phone ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.