How to add a custom button on contact's to open with my app?

烂漫一生 提交于 2021-01-28 11:09:08

问题


Well, I wanna know if it possible open a contact with a cordova app from "contacts" app like WhatsApp.

See here a example:

I search on Google and npm, but nothing... Thanks


回答1:


There's really good documentation about this on Android's website here: https://developer.android.com/guide/topics/providers/contacts-provider

Make sure you read the entire post, but specifically check out this section that talks about adding your stuff into the Contact's screen: https://developer.android.com/guide/topics/providers/contacts-provider#SocialStreamInteraction

Also, if you haven't yet, you might want to create your own Account and SyncProvider, check out these tutorials: http://blog.udinic.com/2013/04/24/write-your-own-android-authenticator/ and http://blog.udinic.com/2013/07/24/write-your-own-android-sync-adapter




回答2:


You should probably investigate using a plugin to display Contacts, see:

https://cordova.apache.org/plugins/?q=contacts



来源:https://stackoverflow.com/questions/54511725/how-to-add-a-custom-button-on-contacts-to-open-with-my-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!