AFCore

AFCore is the Advanta Health SDK for Android, iOS and watchOS: member sign-in, activities and gym visits, step tracking, places, content and rewards, through one Kotlin Multiplatform API. Examples are shown in Kotlin and Swift.

Start here

  • AFCore: the entry point. Call initialize once, then reach each feature through its accessor, such as AFCore.authentication().

  • AFCoreConfig: the configuration builder.

  • Authentication: sign-in, the session and logout.

  • Locations: favorite places, map search, nominations, problem reports and automatic gym visits.

  • Activities: the member's activity history.

  • SmartWalking: step tracking with Health Connect and HealthKit.

  • Content: bottom navigation, banners and the Explore menu.

  • ActivePerks: rewards, gift cards and cash back.

Most calls are suspend functions. Failures arrive as AFException, whose message is safe to show a member. facilities(), map() and the heartbeat API are deprecated in favor of Locations, which lists each replacement.

AFCore is the Advanta Health SDK for Android, iOS and watchOS: member sign-in, activities and gym visits, step tracking, places, content and rewards, through one Kotlin Multiplatform API. Examples are shown in Kotlin and Swift.

Start here

  • AFCore: the entry point. Call initialize once, then reach each feature through its accessor, such as AFCore.authentication().

  • AFCoreConfig: the configuration builder.

  • Authentication: sign-in, the session and logout.

  • Locations: favorite places, map search, nominations, problem reports and automatic gym visits.

  • Activities: the member's activity history.

  • SmartWalking: step tracking with Health Connect and HealthKit.

  • Content: bottom navigation, banners and the Explore menu.

  • ActivePerks: rewards, gift cards and cash back.

Most calls are suspend functions. Failures arrive as AFException, whose message is safe to show a member. facilities(), map() and the heartbeat API are deprecated in favor of Locations, which lists each replacement.

AFCore is the Advanta Health SDK for Android, iOS and watchOS: member sign-in, activities and gym visits, step tracking, places, content and rewards, through one Kotlin Multiplatform API. Examples are shown in Kotlin and Swift.

Start here

  • AFCore: the entry point. Call initialize once, then reach each feature through its accessor, such as AFCore.authentication().

  • AFCoreConfig: the configuration builder.

  • Authentication: sign-in, the session and logout.

  • Locations: favorite places, map search, nominations, problem reports and automatic gym visits.

  • Activities: the member's activity history.

  • SmartWalking: step tracking with Health Connect and HealthKit.

  • Content: bottom navigation, banners and the Explore menu.

  • ActivePerks: rewards, gift cards and cash back.

Most calls are suspend functions. Failures arrive as AFException, whose message is safe to show a member. facilities(), map() and the heartbeat API are deprecated in favor of Locations, which lists each replacement.

AFCore is the Advanta Health SDK for Android, iOS and watchOS: member sign-in, activities and gym visits, step tracking, places, content and rewards, through one Kotlin Multiplatform API. Examples are shown in Kotlin and Swift.

Start here

  • AFCore: the entry point. Call initialize once, then reach each feature through its accessor, such as AFCore.authentication().

  • AFCoreConfig: the configuration builder.

  • Authentication: sign-in, the session and logout.

  • Locations: favorite places, map search, nominations, problem reports and automatic gym visits.

  • Activities: the member's activity history.

  • SmartWalking: step tracking with Health Connect and HealthKit.

  • Content: bottom navigation, banners and the Explore menu.

  • ActivePerks: rewards, gift cards and cash back.

Most calls are suspend functions. Failures arrive as AFException, whose message is safe to show a member. facilities(), map() and the heartbeat API are deprecated in favor of Locations, which lists each replacement.

Packages

Link copied to clipboard
Common
iOS
watchOS

The entry point and SDK-wide types: AFCore, its configuration, session state, logging, realms and errors.

Link copied to clipboard
Common

ActivePerks rewards: enrollment, merchants, gift card checkout, the wallet and cash back. Requires the ActivePerks capability on your client.

Common

Helpers that filter, sort and validate the merchant catalog the same way on Android and iOS.

Link copied to clipboard
Common

ActivePerks data: enrollment, merchants, orders, gift cards, payment methods and cash back.

Link copied to clipboard
Common

The member's activity history by month: gym visits, self-reports, Fit@Home and walking.

Link copied to clipboard
Common

Activity history data, the result of a submission, and activity events.

Link copied to clipboard
Common

Sign-in, session state, token injection and logout.

Link copied to clipboard
iOS

iOS background tasks that deliver pending submissions while the app is suspended.

Link copied to clipboard
Common

Check in at a location by scanning its barcode or QR code.

Link copied to clipboard
Common

Server-managed app content: bottom navigation, home banners and the Explore menu.

Link copied to clipboard
Common

Content items, menu pages and sections, targets and images.

Link copied to clipboard
Common

Send diagnostic information, such as device settings or permission status.

Link copied to clipboard
Common

Send location events, such as entering or leaving a place.

Link copied to clipboard
Common

The member's submission history, shared with Locations, and the deprecated facility types.

Link copied to clipboard
Common

Fit@Home: submit and delete the selfie that verifies an at-home workout.

Link copied to clipboard
Common
iOS
watchOS

Geofencing used by automatic gym-visit detection.

Link copied to clipboard
Common

Geofences, geofence events and monitoring status.

Link copied to clipboard
iOS
watchOS

Access to HealthKit and Health Connect.

Link copied to clipboard
Common

Health data and the availability and permission state of Health Connect and HealthKit.

Link copied to clipboard
Common

The result of each location-sharing attempt.

Link copied to clipboard
Common

A location reading from the device.

Link copied to clipboard
Common

Places: favorites, map search by radius or viewport, nominations, problem reports, place search, automatic gym visits and location sharing.

Link copied to clipboard
Common

Helpers for map viewports and merchant pins.

Link copied to clipboard
Common

Location data: favorites, map markers, nominations, problem reports, categories, types and search filters.

Link copied to clipboard
Common

The deprecated map marker type.

Link copied to clipboard
Common

Mental Fitness: the SpotIt session, from situations and symptoms to spots and feedback.

Common

SpotIt data: situations, symptoms, spots, endorsements and results.

Link copied to clipboard
Common

Register this device for push notifications.

Link copied to clipboard

Android motion state, moving or stationary, from activity recognition.

Link copied to clipboard
Common

Movement Health: register the member and read their profile.

Common

Movement Health profile data.

Link copied to clipboard
Common

MyCarePath: open the member's care path pages.

Link copied to clipboard
Common

MyCarePath sections and links.

Link copied to clipboard
Common

The member's payment history.

Link copied to clipboard
Common

Payment and credit records.

Link copied to clipboard
iOS
watchOS

Request and check runtime permissions.

Link copied to clipboard
Common

Runtime permissions and their status.

Link copied to clipboard
Common

Read and update the member's profile.

Link copied to clipboard
Common

Member profile, address and colleague data.

Link copied to clipboard
Common

The programs and entitlements available to the member.

Link copied to clipboard
Common

Program, entitlement and feature data.

Link copied to clipboard
Common

Self-reported gym visits: list, submit and delete.

Link copied to clipboard
Common

Self-report history data.

Link copied to clipboard
Common

Organization settings, onboarding state and gender options.

Link copied to clipboard
Common

Settings, onboarding and gender profile data.

Link copied to clipboard
Common

SmartWalking: connect Health Connect or HealthKit and sync steps.

Link copied to clipboard
Common

SmartWalking events, profile and diagnostics.

Link copied to clipboard
Common

Navigation, menu and banners from the Mobile API. New apps can use Content.

Link copied to clipboard
Common

Navigation, menu, banner and tray notification items.

Link copied to clipboard
iOS
watchOS

Platform helpers: callbacks and the context and user agent providers.

Link copied to clipboard
Common

Virtual Fitness partners: status, sign-up and registration.

Common

Virtual Fitness partner, status and sign-up data.