My requirement is to open native add contact interface using ionic. I googled but could not get proper answer.
Asked
Active
Viewed 730 times
2 Answers
0
I don't think that there is currently a plugin that will open the add contact interface.
But you could create such a plugin on your own, there is a good tutorial of cordova how a plugin is created:
Create a Cordova Plugin Tutorial
Then you have to find a way how to open the add contact interface. There is a plugin that opens the native settings interface, that will show you how you can do this:
Open Native Settings iOS Open Native Settings Android
Without testing it I think that will do it for Android:
this.cordova.getActivity().startActivity(new Intent(Intent.ACTION_INSERT, ContactsContract.Contacts.CONTENT_URI));
For iOS it will be a bit more complicated, take a look at this guide:
0
Install Open Native Settings plugin https://ionicframework.com/docs/native/open-native-settings/

hopper
- 4,230
- 8
- 36
- 49