5.0.7 • Published 3 months ago

@rolster/capacitor-contacts v5.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Rolster Capacitor Contacts

Use plugin for manage contact list of Device.

Installation

Package only supports Capacitor 5

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.Contacts;

public class MainActivity extends BridgeActivity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
    registerPlugin(Contacts.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 getContacts().

5.0.7

3 months ago

5.0.6

8 months ago

5.0.5

8 months ago

5.0.3

8 months ago

5.0.2

9 months ago

5.0.1

9 months ago

5.0.0

9 months ago