Repository navigation
Replies: 1 comment
|
The Flutter client should not need any package-specific header or customization. This package captures requests on the Laravel side by appending A useful way to isolate this is:
php artisan route:list -vv --path=apiIf those routes are registered with custom/global middleware only (or outside
'capture' => [
'api' => true,
],Then clear cached configuration after changing it: php artisan optimize:clear
Sanctum/Bearer authentication affects identifying the user, but it should not determine whether the request itself is captured. |
Uh oh!
There was an error while loading. Please reload this page.
I noticed an issue with the
me-shaon/laravel-request-analyticspackage.The package is recording analytics data correctly for API requests made from the web application. However, when the same API endpoints are called from the mobile app built with Flutter, the request analytics data is not being recorded.
Expected behavior:
The package should record analytics data for all API requests, whether the request comes from the web application or the mobile app.
Current behavior:
Requests made from the web application are recorded successfully, but requests made from the Flutter mobile app are not recorded.
Issue summary:
API requests from the Flutter mobile app are not being tracked by
me-shaon/laravel-request-analytics, even though web API requests are working fine.Please help me understand whether this requires additional middleware configuration, request headers, guard handling, or package customization to support mobile API request tracking.
All reactions