Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access sms inbox from javascript on android (phonegap)

I just discovered PhoneGap and was wondering if there's a way to access the SMS inbox from Javascript with it. Or if there's another easy way to do it in an app created from a HTML/CSS/JS solution.

There's no info about SMS access in the phonegap docs, but maybe the inbox is avaliable as a url or a folder?

I would like to stick with phonegap so that the app would work on many devices, but an android only solution is satisfactory too.

like image 857
naugtur Avatar asked Dec 22 '10 08:12

naugtur


1 Answers

This functionality is not currently in PhoneGap though it might come in a future release. This is something that whole community would probably appreciate!

I think you will want to create a plugin to achieve this functionality for the moment. Some examples of plugins are here: https://github.com/phonegap/phonegap-plugins.

Here is an example of using an Android ContentProvider to interact with the SMS inbox How to delete an SMS from the inbox in Android programmatically?

like image 152
davejohnson Avatar answered Oct 02 '22 12:10

davejohnson