Skip to content

Commit be85eb1

Browse files
chore(update-plugins): Tue Jul 23 08:06:56 UTC 2024
1 parent 79f482d commit be85eb1

File tree

2 files changed

+45
-43
lines changed

2 files changed

+45
-43
lines changed

plugins/contacts.md

Lines changed: 40 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,37 @@ A plugin that allows you to access Contacts directory on iOS and Android. You ca
1414

1515
## Contents
1616

17-
- [Installation](#installation)
18-
- [Permissions requirements](#permissions-requirements)
19-
- [iOS Permission Requirements](#ios-permission-requirements)
20-
- [Android Permission Requirements](#android-permission-requirements)
21-
- [Use @nativescript/contacts](#use-nativescriptcontacts)
22-
23-
- [Get a contact](#get-a-contact)
24-
- [Create a new contact](#create-a-new-contact)
25-
- [Update a contact](#update-a-contact)
26-
- [Delete a contact](#delete-a-contact)
27-
- [Check if a contact is unified/linked](#check-if-a-contact-is-unifiedlinked-ios-specific)
28-
- [Get contacts by name](#get-contacts-by-name)
29-
- [Get all the contacts](#get-all-the-contacts)
30-
- [Get a contact by id](#get-a-contact-by-id)
31-
- [Get a group or groups of contacts](#get-a-group-or-groups-of-contacts)
32-
- [Create a new contacts group](#create-a-new-contacts-group)
33-
- [Delete a group of contacts](#delete-a-group-of-contacts)
34-
- [Add a contact to a group](#add-a-contact-to-a-group)
35-
- [Remove a contact from a group](#remove-a-contact-from-a-group)
36-
- [Get all the contacts of a group](#get-all-the-contacts-of-a-group)
37-
38-
- [API](#api)
39-
- [Group object structure](#group-object-structure)
40-
- [Contact class](#contact-class)
41-
- [PhoneNumber/EmailAddress structure](#phonenumberemailaddress-structure)
42-
- [Url structure](#url-structure)
43-
- [PostalAddress structure](#postaladdress-structure)
44-
- [Known Labels (for Urls, Addresses and Phones)](#known-labels-for-urls-addresses-and-phones)
45-
- [GetFetchResult object structure](#getfetchresult-object-structure)
46-
- [iOS contact object](#ios-contact-object)
47-
- [Credits](#credits)
48-
- [License](#license)
17+
- [@nativescript/contacts](#nativescriptcontacts)
18+
- [Contents](#contents)
19+
- [Installation](#installation)
20+
- [Permissions requirements](#permissions-requirements)
21+
- [iOS Permission Requirements](#ios-permission-requirements)
22+
- [Android Permission Requirements](#android-permission-requirements)
23+
- [Use @nativescript/contacts](#use-nativescriptcontacts)
24+
- [Get a contact](#get-a-contact)
25+
- [Create a new contact](#create-a-new-contact)
26+
- [Update a contact](#update-a-contact)
27+
- [Delete a contact](#delete-a-contact)
28+
- [Check if a contact is unified/linked (iOS Specific)](#check-if-a-contact-is-unifiedlinked-ios-specific)
29+
- [Get contacts by name](#get-contacts-by-name)
30+
- [Get all the contacts](#get-all-the-contacts)
31+
- [Get a contact by id](#get-a-contact-by-id)
32+
- [Get a group or groups of contacts](#get-a-group-or-groups-of-contacts)
33+
- [Create a new contacts group](#create-a-new-contacts-group)
34+
- [Delete a group of contacts](#delete-a-group-of-contacts)
35+
- [Add a contact to a group](#add-a-contact-to-a-group)
36+
- [Remove a contact from a group](#remove-a-contact-from-a-group)
37+
- [Get all the contacts of a group](#get-all-the-contacts-of-a-group)
38+
- [Contact class](#contact-class)
39+
- [PhoneNumber/EmailAddress structure](#phonenumberemailaddress-structure)
40+
- [Url structure](#url-structure)
41+
- [PostalAddress structure](#postaladdress-structure)
42+
- [Known Labels (for Urls, Addresses and Phones)](#known-labels-for-urls-addresses-and-phones)
43+
- [Group object structure](#group-object-structure)
44+
- [GetFetchResult object structure](#getfetchresult-object-structure)
45+
- [iOS contact object](#ios-contact-object)
46+
- [Credits](#credits)
47+
- [License](#license)
4948

5049
## Installation
5150

@@ -95,24 +94,22 @@ For API level `23+`, inform Android about which permissions your app needs from
9594

9695
## Use @nativescript/contacts
9796

98-
Once you've indicated the permissions your app needs from a user, you can request the permissions from the user by calling the `requestPermissions()` method from the `nativescript-permissions` plugin.
97+
Once you've indicated the permissions your app needs from a user, you can request the permissions from the user by calling the `request()` method from the `@nativescript-community/perms` plugin.
9998

10099
```ts
101100
import { Contact } from '@nativescript/contacts'
102-
import { requestPermissions } from 'nativescript-permissions'
101+
import { request } from '@nativescript-community/perms'
103102

104103
const contact = new Contact()
105104
// build a new contact...
106105

107-
requestPermissions(
108-
[
109-
android.Manifest.permission.GET_ACCOUNTS,
110-
android.Manifest.permission.READ_CONTACTS,
111-
android.Manifest.permission.WRITE_CONTACTS,
112-
android.Manifest.permission.GLOBAL_SEARCH
113-
],
114-
"I need these permissions because I'm cool"
115-
).then(() => {
106+
requestPermissions({
107+
contacts: {},
108+
'android.permission.GET_ACCOUNTS': {},
109+
'android.permission.READ_CONTACTS': {},
110+
'android.permission.WRITE_CONTACTS': {},
111+
'android.permission.GLOBAL_SEARCH': {}
112+
}).then(() => {
116113
contact.save()
117114
})
118115
```

plugins/geolocation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ The following are the properties of the options object that you pass to the geol
138138
| `iosAllowsBackgroundLocationUpdates` | `boolean` | _Optional_: Indicates whether to allow the application to receive location updates in the background (ignored on Android). Defaults to `false`. If enabled, the `UIBackgroundModes` key in `Info.plist` is required. A. Read more in [Apple document](https://developer.apple.com/documentation/corelocation/cllocationmanager/1620568-allowsbackgroundlocationupdates?language=objc) |
139139
| `iosPausesLocationUpdatesAutomatically` | `boolean` | Indicates whether to allow the deactivation of the automatic pause of location updates (ignored on Android). Read more in [Apple document](https://developer.apple.com/documentation/corelocation/cllocationmanager/1620553-pauseslocationupdatesautomatical?language=objc) |
140140

141+
## Breaking changes
142+
143+
- 9.0+:
144+
- `watchLocation` is now `async` in order to check for permissions before attempting to watch
145+
141146
## Known issues
142147

143148
### openSettingsIfLocationHasBeenDenied on Android API level 30

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy