on 04-19-2017 8:53 PM
I would like to have my SAP fiori application to send out text message to the users instead of the fiori app triggering the SMS app on the phone to send the text. Is it something we can do?
HI Abhimayu,
Yes it can be achieved using the Cordova SMS plugin which can be found here . Add the plugin to Fiori Client or your hybrid app and send SMS via below line
app.sendSms()
leave the Intent property to be empty while specifying the configuration options. See the link above for more details on the usage of Plugin.
//CONFIGURATION
var options = {
replace LineBreaks: false, // true to replace \n by a new line, false by default
android:
{ intent: '' // send SMS without open any other app
// intent: 'INTENT' // send SMS with the native android SMS messaging
}
};
The href="sms" like below would launch the default SMS app of the device
<a href="sms:0412345678&body=testing">send sms</a>
This is just for handling of sending the SMS from client side. I believe there are few SMS gateways / API available to handle sending SMS with server side logic.
Regards
Virinchy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.