Commit 3c8e10c
committed
fix(ios): fix Fleet Engine location reporting on iOS
Fixes two critical iOS bugs preventing Fleet Engine location reporting:
1. Fixed module export names to match JavaScript expectations
- Changed RCTDeliveryDriverModule -> DeliveryDriverModule
- Changed RCTRideSharingModule -> RideSharingModule
- JavaScript code expects NativeModules.DeliveryDriverModule, not RCTDeliveryDriverModule
2. Fixed event dispatcher initialization to enable event emission
- Added startObserving() call after allocating DriverEventDispatcher
- Without this, hasListeners remained false and all events were silently dropped
- Affects didSucceedVehicleUpdate and didFailVehicleUpdate events
These changes enable proper location reporting to Fleet Engine on iOS,
achieving parity with the Android implementation.
Fixes #701 parent 85be976 commit 3c8e10c
File tree
4 files changed
+4
-2
lines changed- ios
4 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
0 commit comments