get Pending Visits
Returns the visits captured on this device that are still waiting in the offline outbox for upload, in delivery (FIFO) order.
Covers automatic visits and self-reports — the submissions the server-backed calendar cannot show yet. Other queued event types (barcode check-ins, Fit@Home selfies, diagnostics) are not visits and are not included. Returns an empty list when nothing is pending or the SDK is not initialized.
Read-only snapshot. The queue is owned by the SDK: entries leave it when the outbox delivers them (see the offline-delivery notes on activityEvents) and cannot be edited or removed by the host app. Re-read it on every MemberActivityEvent — a MemberVisitAdded / SelfReportAdded emission means a pending visit just became a confirmed activity.
Android (Kotlin)
val pending = AFCore.activities().getPendingVisits()
pendingSection.render(pending) // badge rows as "waiting to upload"iOS (Swift)
let pending = AFCore.shared.activities().getPendingVisits()
pendingSection.render(pending) // badge rows as "waiting to upload"Return
The queued visits, oldest first; empty when none are pending.