Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 20, 2017 at 12:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded