Skip to Content
0

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

Apr 19, 2017 at 07:53 PM

144

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Virinchy P Apr 20, 2017 at 12:14 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0