File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
resources/views/docs/mobile/1 Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ use Native\Mobile\Facades\Biometrics;
1414
1515## Methods
1616
17- ### ` promptForBiometricID ()`
17+ ### ` prompt ()`
1818
1919Prompts the user for biometric authentication.
2020
2121``` php
2222use Native\Mobile\Facades\Biometrics;
2323
24- Biometrics::promptForBiometricID ();
24+ Biometrics::prompt ();
2525```
2626
2727## Events
Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ use Native\Mobile\Facades\PushNotifications;
1313
1414## Methods
1515
16- ### ` enrollForPushNotifications ()`
16+ ### ` enroll ()`
1717
1818Requests 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
50501 . User taps "Enable Notifications"
51- 2 . App calls ` enrollForPushNotifications ()`
51+ 2 . App calls ` enroll ()`
52523 . System shows permission dialog
53534 . If granted, FCM generates token
54545 . ` TokenGenerated ` event fires with token
Original file line number Diff line number Diff 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
5858use Native\Mobile\Facades\PushNotifications;
5959
60- PushNotifications::getPushNotificationsToken ();
60+ PushNotifications::getToken ();
6161```
6262
6363If the user has approved your app to use push notifications and the request to FCM succeeded, a ` TokenGenerated ` event
You can’t perform that action at this time.
0 commit comments