Skip to content

Commit 4f09047

Browse files
committed
Update method names
1 parent 9723da1 commit 4f09047

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

resources/views/docs/mobile/1/apis/biometrics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ use Native\Mobile\Facades\Biometrics;
1414

1515
## Methods
1616

17-
### `promptForBiometricID()`
17+
### `prompt()`
1818

1919
Prompts the user for biometric authentication.
2020

2121
```php
2222
use Native\Mobile\Facades\Biometrics;
2323

24-
Biometrics::promptForBiometricID();
24+
Biometrics::prompt();
2525
```
2626

2727
## Events

resources/views/docs/mobile/1/apis/push-notifications.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ use Native\Mobile\Facades\PushNotifications;
1313

1414
## Methods
1515

16-
### `enrollForPushNotifications()`
16+
### `enroll()`
1717

1818
Requests permission and enrolls the device for push notifications.
1919

2020
**Returns:** `void`
2121

22-
### `getPushNotificationsToken()`
22+
### `getToken()`
2323

24-
Retrieves the current FCM token for this device.
24+
Retrieves the current push notification token for this device.
2525

2626
**Returns:** `string|null` - The FCM token, or `null` if not available
2727

@@ -48,7 +48,7 @@ public function handlePushToken(string $token)
4848
## Permission Flow
4949

5050
1. User taps "Enable Notifications"
51-
2. App calls `enrollForPushNotifications()`
51+
2. App calls `enroll()`
5252
3. System shows permission dialog
5353
4. If granted, FCM generates token
5454
5. `TokenGenerated` event fires with token

resources/views/docs/mobile/1/concepts/push-notifications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ It's common practice to request push notification permissions during app bootup
5252
- The app is updated
5353
- Other internal FCM operations
5454

55-
To request a token, use the `PushNotifications::getPushNotificationsToken()` method:
55+
To request a token, use the `PushNotifications::getToken()` method:
5656

5757
```php
5858
use Native\Mobile\Facades\PushNotifications;
5959

60-
PushNotifications::getPushNotificationsToken();
60+
PushNotifications::getToken();
6161
```
6262

6363
If the user has approved your app to use push notifications and the request to FCM succeeded, a `TokenGenerated` event

0 commit comments

Comments
 (0)