-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Description
The iOS implementation of the Driver SDK is missing status update callbacks that are available on Android. This creates a platform inconsistency where Android apps receive updateStatus events with status level/code information, but iOS apps do not.
Current Behavior
Android (works):
DriverContexthas.setDriverStatusListener()method- Receives callbacks with
statusLevel,statusCode,statusMsg - Events are emitted as
updateStatusto React Native - Example statuses:
INITIALIZATION_STARTED,VEHICLE_NOT_FOUND,UNAUTHORIZED, etc.
iOS (missing):
GMTDDriverContexthas no status listener API- No delegate protocol for status updates
- Only vehicle update events work:
didSucceedVehicleUpdate,didFailVehicleUpdate - No visibility into SDK initialization status, auth errors, or other diagnostic information
Expected Behavior
iOS should provide equivalent status callback functionality as Android, allowing apps to:
- Monitor SDK initialization progress
- Detect authentication/authorization failures
- Receive diagnostic status codes for troubleshooting
- Implement unified cross-platform error handling
Code References
Android implementation:
// android/src/main/java/com/google/android/react/driversdk/lmfs/DeliveryDriverModule.java
DriverContext driverContext = DriverContext.builder(application)
.setDriverStatusListener(
(statusLevel, statusCode, statusMsg, error) -> {
updateStatus(statusLevel, statusCode, statusMsg);
})Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.