Can i develop an app that have a button to send a fix sms directly when i press a button without going to sms on the device

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi @Bowis Cvmpxell​

This API accesses the messaging application of the underlying platform and uses that application to send text message to the specified number. On iPhone this API opens the Messages application with a prepopulated text and number.

which api @Twvcey Rvndvll​

Hello @Bowis Cvmpxell​

The API is kony.phone.sendSMS(), which help you to send the SMS. Please check the doc link for more details,

http://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/Default.htm#kony.phone_functions.htm#sendSMS%3FTocPath%3DPhone%2520API%7Ckony.phone%2520Namespace%7CFunctions%7C_____7

@Twvcey Rvndvll​ That's right but this api open the message application with the text and number >>>>> that's not what iam ask for iam ask to send message directly without opening the message application

Hello @Bowis Cvmpxell​

As I mentioned in my previous comments, there is no provision to send the message directly to number, as mentioned in the documentation, it will open then messaging application.

@Bowis Cvmpxell​ , There is no direct api to achieve your requirement. You will have to write an FFI to achieve that requirement.

@Kevin Jones​ what do you mean with the FFI Exactly and what should it contain ?

@Twvcey Rvndvll​ as you answer ,there is no why to do that; so how truecaller perform that !!!!!!!!!!!

@Bowis Cvmpxell​ , As far as I know this requirement is possible only on Android and cannot be implemented on iPhone due to security restrictions.

And as I mentioned you need to write native code to achieve this on Android using FFI.

Check this link for the Native code: https://stackoverflow.com/questions/6361428/how-can-i-send-sms-messages-in-the-background-using-android

And if your looking for information on FFI then here is a webinar on it : https://www.youtube.com/watch?v=7PwTt_NjuHg

@Kevin Jones​ thanks