FAQ & Troubleshooting

Common questions and solutions to frequent issues

Frequently Asked Questions

What are the system requirements?

You need Flutter SDK 3.24+, Node.js 18+, and Firebase CLI. For iOS development, you need macOS with Xcode 14+. For Android, you need Android Studio with SDK 23+.

Can I use this with an existing Firebase project?

Yes! Run flutterfire configure --project=YOUR_PROJECT_ID to connect to your existing project. Make sure to enable the required services (Auth, Firestore, Storage, Functions).

Do I need the Blaze (paid) plan?

Yes, for Cloud Functions. However, Firebase offers a generous free tier, and small-to-medium apps typically stay within free limits. Set up budget alerts in Google Cloud Console to monitor costs.

How do I change the app language?

The app supports Portuguese and English by default. Users can change the language in settings. To add more languages, create new ARB files in lib/l10n/ and run flutter gen-l10n.

Can I remove features I don't need?

Yes! Each feature is modular. Remove the feature folder from lib/features/ and its corresponding module from the DI configuration. Use feature flags for runtime toggling.

How do I update to a new version?

Download the new version from CodeCanyon, backup your customizations, and merge changes. Pay attention to migration notes in the changelog for breaking changes.

Is the source code included?

Yes! You get full source code for the Flutter app, Cloud Functions, and Design System package. You can modify anything to fit your needs.

Do you provide customization services?

Yes, for an additional fee. Contact us through CodeCanyon comments or our support email for custom development quotes.

Installation Issues

Flutter pub get fails with version conflicts

Solution:

# Clean and retry
flutter clean
flutter pub cache repair
flutter pub get

CocoaPods installation fails (iOS)

Solution:

# Update CocoaPods
sudo gem install cocoapods

# Clean and reinstall
cd ios
pod deintegrate
pod install --repo-update
cd ..

Gradle build fails (Android)

Solution:

# Clean Gradle cache
cd android
./gradlew clean
./gradlew --stop

# Delete cache and retry
rm -rf ~/.gradle/caches/
cd ..
flutter run

Node modules installation fails

Solution:

# Clear npm cache
npm cache clean --force

# Delete node_modules and reinstall
cd functions
rm -rf node_modules
rm package-lock.json
npm install
cd ..

Firebase Issues

Firebase initialization failed

Cause: Missing or incorrect Firebase configuration files.

Solution:

# Reconfigure Firebase
flutterfire configure --project=YOUR_PROJECT_ID --yes

# Verify files exist:
# - lib/firebase_options.dart
# - android/app/google-services.json
# - ios/Runner/GoogleService-Info.plist

Cloud Functions deploy fails

Possible causes:

  • Not on Blaze plan
  • Node.js version mismatch
  • TypeScript compilation errors

Solution:

# Check Node.js version (should be 18+)
node --version

# Build functions locally to check for errors
cd functions
npm run build
npm run lint

# Deploy with verbose logging
firebase deploy --only functions --debug

Authentication not working

Checklist:

  • Verify auth providers are enabled in Firebase Console
  • Check SHA-1 fingerprint is added for Android (Google Sign-In)
  • Verify URL schemes are configured for iOS
  • Check if using emulators (USE_FIREBASE_EMULATORS=true)

Firestore permission denied

Solution:

# Deploy security rules
firebase deploy --only firestore:rules

# Check rules in Firebase Console → Firestore → Rules
# Use Rules Playground to test

Push notifications not received

Checklist:

  • iOS: APNs key uploaded to Firebase Console
  • iOS: Push Notification capability added in Xcode
  • Android: Check if running on emulator (use real device)
  • Web: VAPID key configured correctly
  • Verify FCM token is being saved to Firestore

Build & Runtime Issues

Google Maps not showing

Checklist:

  • API keys are correct in environment files
  • Maps SDK is enabled in Google Cloud Console
  • API keys have correct restrictions
  • Billing is enabled for the Google Cloud project

App crashes on startup

Debug steps:

# Run with verbose logging
flutter run --verbose

# Check for Firebase initialization
# Verify all env variables are set
# Check for null safety issues in logs

iOS build fails with signing error

Solution:

  1. Open ios/Runner.xcworkspace in Xcode
  2. Select Runner target → Signing & Capabilities
  3. Select your Team
  4. Let Xcode manage signing automatically

Android build fails: "SDK version issue"

Solution: Update compile and target SDK in android/app/build.gradle.kts:

android {
    compileSdk = 34

    defaultConfig {
        minSdk = 23
        targetSdk = 34
    }
}

Web build shows blank page

Checklist:

  • Check browser console for errors (F12)
  • Verify Firebase config for web platform
  • Check if hosting rewrites are configured correctly
  • Try building with --web-renderer html

Admin Panel Issues

Cannot login to admin panel

Checklist:

  • User exists in Firebase Authentication
  • Admin document exists in admins collection
  • Admin status is "active"
  • Cloud Functions are deployed

Debug: Check function logs:

firebase functions:log --only validateAdminAccess

Admin invite email not sent

Checklist:

  • Trigger Email extension is installed
  • SendGrid API key is valid
  • Sender email is verified in SendGrid
  • Check mail collection for pending emails

Debug: Check extension logs in Firebase Console → Extensions

Dashboard metrics not loading

Solution:

  • Ensure getDashboardMetrics function is deployed
  • Check user has admin permissions
  • Verify Firestore indexes are created

Performance Issues

App is slow on first load

Causes:

  • Cold start for Cloud Functions
  • Large initial data load

Solutions:

  • Use pagination for lists
  • Enable function min instances for critical functions
  • Implement proper loading states

Map performance issues

Solutions:

  • Limit number of markers displayed
  • Use clustering for many markers
  • Load markers on demand based on viewport

Getting Support

CodeCanyon Comments

Post your question in the item comments section. We respond within 24-48 hours (business days).

Email Support

For private inquiries: contato@douglaspossasdev.com.br

Documentation

Check all sections of this documentation for detailed guides.

Before Contacting Support

Please provide:

Support Scope: We provide support for installation, configuration, and bug fixes. Custom development and modifications are available for additional fees.

Changelog

Version 1.0.0 (Initial Release)

Release Date: January 2025

  • Complete Flutter mobile app (iOS & Android)
  • Web-based admin panel
  • Firebase Cloud Functions backend
  • Custom Design System package (Possas DS)
  • Multi-language support (PT/EN)
  • Parish search with Google Maps
  • Event management
  • Push notifications
  • User authentication (Email, Google, Apple)
  • Admin management with roles
  • Dashboard with metrics