cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to send text/sms notification from a SAP fiori app?

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Virinchy
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you so much for the input, i will try that

Answers (0)