0

I am working on mobile application which was created using cordova, here i need to query some user details from third party content provider. If any one know how to access the data from content provider using any of cordova plugins?

Currently am using https://github.com/phearme/cordova-ContentProviderPlugin and am getting

"Unknown error".

please help

YanetP1988
  • 1,346
  • 3
  • 18
  • 43
Randy
  • 1
  • 4
  • Please provide more informations, did you run the plugin correctly? – proofzy Feb 17 '18 at 11:14
  • @proofzy, I have added content provider plugin using "cordova plugin add https://github.com/phearme/cordova-ContentProviderPlugin" and added permission tag in my AndroidManifest.xml whic was located on "platforms\android\app\src\main\AndroidManifest.xml" – Randy Feb 18 '18 at 03:49
  • while clicking the button with help of onclick method am calling the content provider query exection. function getquery(){ window.plugins.contentproviderplugin.query({ contentUri: "content://sms/inbox", projection: ["address", "date", "body"], selection: null, selectionArgs: null, sortOrder: "date DESC" }, function (data) { console.log(JSON.stringify(data)); }, function (err) { console.log("error query"); }); } – Randy Feb 18 '18 at 03:49
  • Now my application says "xxxx, stopped Unfortunately" and closed. – Randy Feb 18 '18 at 04:01
  • Try to update platform cordova – proofzy Feb 18 '18 at 09:26
  • Am working with latest android platform only. – Randy Feb 19 '18 at 06:23
  • @Randy, were you able to solve your problem? – dariru Jun 20 '18 at 23:58

0 Answers0