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=androidif the project was scaffolded without platform folders. - API uses HTTP Basic Auth; configure in backendpanel if required.
Run / Build
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:
- Add
google-services.jsontoandroid/app/. - Ensure
android/build.gradleandandroid/app/build.gradleapply 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_liveand backend responses for parity.