element-hq / element-hq/element-ios
Live location sharing sends only a single update
- Dominant language
- Swift
- Stars
- 1.8k
- Forks
- 544
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
**Description:**
When using the Element iOS app to share a live location, the app sends only a single location update instead of continuously updating the location over time. This issue persists despite enabling all necessary permissions (location services permissions for Element app set to always allow) and verifying settings (background app refresh is enabled for Element).
**Steps to Reproduce:**
1. Open the Element iOS app
Element 1.11.22 (20241210111108)
Matrix SDK 0.27.17
3. Join a room and select the option to share a live location.
4. Choose a duration (e.g., 15 minutes, 1 hour) for live location sharing.
5. Share the live location in the room.
### Outcome
**Expected Outcome:**
When live location sharing is initiated, the Element iOS app should:
1. Send Location Updates Periodically:
- The app should periodically send updated location events (e.g., every few seconds or minutes, depending on the implementation) to the room for the entire duration selected by the user (e.g., 15 minutes, 1 hour).
2. Respect the Selected Duration:
- The app should automatically stop sending location updates once the selected duration expires.
3. Function in the Background:
- If the app is minimized or running in the background, location updates should continue to be sent as long as:
- Location permissions are set to Always Allow.
- Background App Refresh is enabled.
4. Show Visual Indicators:
- The user should see a visual indicator (e.g., a persistent banner or icon) in the app or system to confirm that live location sharing is active.
5. Correctly Expire Updates:
- The shared location should be removed or marked as expired in the room once the selected duration ends.
### Your phone model
iPhone SE
### Operating system version
iOS version 18.2
### Application version
Element 1.11.22 (20241210111108)
### Homeserver
matrix.org
### Will you send logs?
No
Contributor guide
Research direction
No files, tests, or entry points are named. Start by reproducing the issue on an iPhone SE with iOS 18.2 and Element 1.11.22, then trace live-location sharing in the iOS app, including background behavior. Done means periodic updates continue for the selected duration, stop on expiry, and show the expected active-state indication.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100