Files
Ontime/ontime_user_flutter/README.md
T
2026-03-11 15:29:37 +07:00

36 lines
1.0 KiB
Markdown

# Ontime User (Flutter)
Flutter app for Ontime **user** (pelanggan), using backend API at `https://apitest.semestaterpadu.my.id/api/`.
## Setup
- Flutter SDK (e.g. 3.19+)
- Android: run `flutter create . --platforms=android` if the project was scaffolded without platform folders.
- API uses HTTP Basic Auth; configure in backendpanel if required.
## Run / Build
```bash
flutter pub get
flutter run
# or
flutter build apk --release
```
APK output: `build/app/outputs/flutter-apk/app-release.apk`.
## Firebase (FCM)
To enable push notifications:
1. Add `google-services.json` to `android/app/`.
2. Ensure `android/build.gradle` and `android/app/build.gradle` apply the Google services plugin.
If Firebase is not configured, the app still runs; FCM token is sent to the backend on login when available.
## Validation
- **Login**: `Pelanggan/login` (email or no_telepon + password, optional token).
- **Home**: `Pelanggan/home` (slider, fitur, merchant nearby).
- Compare with native app `OnTime_User_live` and backend responses for parity.