Delete an SMS message from App Inventor App

107 views
Skip to first unread message

Ash

unread,
Aug 7, 2018, 1:19:00 PM8/7/18
to MIT App Inventor Forum
Hello All,
    I am trying to develop an app using App Inventor. When an SMS message is got in an android mobile, I have written an app to show the message if it contains a particular keyword. Also, I am planning on saving the message details in the database.  I would now like to delete that SMS. Can you please let me know how App Inventor can be used to delete SMS messages. Thanks 
-Ashwini

SteveJG

unread,
Aug 7, 2018, 2:36:42 PM8/7/18
to MIT App Inventor Forum
App Inventor 2 probably cannot delete SMS messages programably and no app can do it since KitKat (4.4).  This is probably one of Google's security precautions.  See https://stackoverflow.com/questions/46482005/delete-sms-from-another-activity-android for how it might be done using INTENTS for versions of Android lower than 4.4.  The advice might work.  Intents are implemented in App Inventor 2 by using the Activity Starter.

For practical purposes, this cannot be done other than manually using the page that displays the device's sms messages.

Regards,
Steve
Reply all
Reply to author
Forward
0 new messages