Skip to main content

iOS Setup

1. Add GoogleService-Info.plist

  1. Download GoogleService-Info.plist from Firebase Console
  2. Add to ios/Runner/ directory in Xcode
  3. Ensure it’s added to target

2. Update Info.plist

Add required permissions to ios/Runner/Info.plist:
Location keys are only required if you use Location Tracking.

3. CocoaPods (Default)

Run pod install:
To enable the optional location module with CocoaPods, add the location subspec inside the Runner target:
Then run pod install again.

4. Swift Package Manager (Optional)

To use SPM instead of CocoaPods, update pubspec.yaml:
Then run:
With SPM, enable location by setting zixflow_location_enabled=true in android/gradle.properties (same flag as Android). See Location Tracking.

Android Setup

1. Add google-services.json

  1. Download google-services.json from Firebase Console
  2. Place in android/app/ directory

2. Add Google Services Plugin

Prefer the plugins DSL (as in the Flutter example). android/settings.gradle:
android/app/build.gradle:
For Push Notifications capability, ZX_2BTN, Notification Service Extension, and App Groups, see Push Notifications.

3. Permissions

Add permissions to android/app/src/main/AndroidManifest.xml:

4. Enable Location (Optional)

To enable location tracking, add to android/gradle.properties:
See Location Tracking for tracking modes and APIs.