Closed webserveis closed 7 years ago
I don't think it is possible, this link need authentication
@omegaes when I try this library why the error to open the wa database
@nian88 can you attach your logcat history ? wa database contains your whatsapp contacts
this my logcat history
@nian88 Are you sure your device is rooted and grant your application root privileges and have Whatsaap application, not whatsapp plus or whatever ?!?
yes my device is rooted..I try on a different device but experiencing the same problem
this my project https://github.com/nian88/wanian
I had the same problem, check your builder, and add this line
Shell.SU.run("chmod 777 /data/data/com.whatsapp/databases/wa.db");
And solved.
I hope it helps you.
@JavierSolis you are right, I will use
Shell.SU.run("chmod -R 777 /data/data/com.whatsapp"); this one will solve all issues
@webserveis to check if the number has whastapp, you could add it to your contacts, after a moment and if there is internet, check the list of users
WhatsappApi.getInstance().getContacts(Context, GetContactsListener)
@JavierSolis @omegaes awesome.. thanks.. solved
Recently whatsapp add feature in link, start chat without add contact in contacts database, using direct link
https://api.whatsapp.com/send?phone=XXXXXXXX
is posible check if the phone have a whatsapp?