6.0.3 • Published 1 year ago

@rolster/capacitor-contacts v6.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Rolster Capacitor Contacts

Use plugin for manage contact list of Device.

Installation

Package only supports Capacitor 6

npm i @rolster/capacitor-contacts

iOS Config

To access the contact list make sure you provide a value for NSContactsUsageDescription; otherwise your app may crash on iOS devices. You should add something like the following example to App/info.plist:

<key>NSContactsUsageDescription</key>
<string>We need access to your contacts in order to do something.</string>

Android Config

For Android you have to add the permissions in your AndroidManifest.xml. Add the following permissions before the closing of the manifest tag.

<uses-permission android:name="android.permission.READ_CONTACTS" />

And register the plugin by adding it to you MainActivity's onCreate:

import com.rolster.capacitor.contacts.ContactsPlugin;

public class MainActivity extends BridgeActivity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    registerPlugin(ContactsPlugin.class);
    // Others register plugins

    super.onCreate(savedInstanceState);
  }
}

NOTE: On Android you have to ask for permission first, before you can fetch the contacts. Use the hasPermissions() method before you try to fetch contacts using request().

6.0.3

1 year ago

6.0.2

1 year ago

6.0.1

1 year ago

6.0.0

1 year ago

5.0.7

2 years ago

5.0.6

2 years ago

5.0.5

2 years ago

5.0.3

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago