Mytaxi Documentation


To set up Flutter on both Windows and Mac OS, follow these step-by-step instructions:

Setting Up Flutter on Windows

➼ System Requirements
➼ Download Flutter SDK
➼ Add Flutter to System Path
➼ Install Android Studio
➼ Set Up an Android Emulator
➼ Final Setup Check

1. Enable

2. Enable Google Sign-In

3. Enable Apple Sign-In

1. Install Node.js and npm

2. Extract Database Files

3. Open Terminal or Command Prompt

4. Generate Firebase Service Account Key

5. Prepare config.json

6. Run Import Command in extracted database folder.

npm install firestore-export-import
node import
Important Notes:
  • Ensure you are inside the correct project directory before running any Firebase CLI commands.
  • You must have sufficient permissions (e.g., Editor or Owner role) in your Firebase project to deploy indexes.
  • Once deployed, Firestore queries will benefit from better performance as they’ll use the optimized indexes you’ve defined.

1. Navigate to Your Firebase Project Folder

1. Open terminal and run the Command : firebase init
2. Select Firebase features: Use the arrow keys to navigate and press Space to select
3. Choose Firebase Project
4. Set Up Firestore Rules and Indexes
5. Deploy Only Firestore Indexes
6. Deployment Complete

1. Install Firebase CLI Tools

2. Firebase Project Setup

Log in to Firebase:
Important Notes:
  • Run Below all Command in your project directory's command line, Below is the Path :
  • D:/Projects/my-firebase-app/function/
Initialize Firebase (if not already initialized):
During this process:

3. Install Function Dependencies

Here you will find all the setup guides for Admin Panel configuration.

Important Notes:
  • ⚠️ Some Firebase features require the Blaze plan.
  • If you are on the free Spark plan, please upgrade to Blaze Plan for full functionality.

Web

Update HTML Title:
<head>
...
<title>Your New App Name</title>
...
</head>

1. Install Firebase CLI Tools

npm install -g firebase-tools

2. Authenticate Firebase CLI

firebase login

3. Create a Firebase Project

firebase projects:create

OR

4. Initialize Firebase in Your Flutter App

dart pub global activate flutterfire_cli
flutterfire configure --project=fir-dd863

1. Generate a Google Maps API Key

2. Add API Key to Your Flutter Project

For Flutter Web:
<head>
    ...
    <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"><script>
</head>

Flutter Web

For Flutter web, you typically use the favicon to represent your application. To change the favicon:

Replace Favicon:

1. Open the Google Cloud Console

2. Select Your Project

3. Activate Google Cloud Shell

4. Create a CORS Configuration File using Below Command:

echo '[{ "origin": ["*"], "method": ["GET"], "maxAgeSeconds": 3600, "responseHeader": ["Content-Type"] }]' > cors-config.json 

5. Apply the CORS Configuration to Your Bucket

gsutil cors set cors-config.json gs://YOUR_BUCKET_NAME
Step 1 Step 2
Important Notes:

This All Command are run project folder and android studio terminal

1. Create the build to upload on server

Important Notes:

This All Command are run project folder and android studio terminal

1. Build and deploy the admin panel using Firebase Hosting

Here you will find all the setup guides for App configuration.

Changing the package name of a Flutter project involves updating multiple files and configurations for both Android and iOS platforms. Below are the detailed steps to change the package name.

Android

Update the applicationId in build.gradle:
defaultConfig{
    applicationId "com.new.package.name"
}
Rename Java Package Directories:
Update the Package Name in AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.new.package.name">
</manifest>
Update Other Manifest Files:

IOS

Update PRODUCT_BUNDLE_IDENTIFIER in Xcode:

Replace it with your new iOS bundle identifier (e.g., com.new.package.name).

Update Bundle Identifier in Info.plist:
<key>CFBundleName</key>
<string>Your New App Name</string>

Prerequisites

Android

Update AndroidManifest.xml:
<application
    android:name="${applicationName}"
    android:icon="@mipmap/ic_launcher"
    android:label="Customer"
    ... 
</application>
Update strings.xml:

IOS

Update Info.plist:
<key>CFBundleName</key>
<string>Your New App Name</string>
Update Display Name in Xcode:
Notes:
This All setup are Same apply for Admin Panel.

1. Install Firebase CLI Tools

npm install -g firebase-tools

2. Authenticate Firebase CLI

firebase login

3. Create a Firebase Project

firebase projects:create

OR

4. Initialize Firebase in Your Flutter App

dart pub global activate flutterfire_cli
flutterfire configure --project=fir-dd863

1. Create a Firebase Project

2. Add Your Flutter App to Firebase

Android Setup:
IOS Setup:

3. Start Using Firebase Services

Once the app is registered and files are added:

4. Configure DefaultFirebaseOptions

5. Initialize Firebase in main.dart

void main() async {
    WidgetsFlutterBinding.ensureInitialized();
    await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
    );
    runApp(MyApp());
}

1. Generate a Google Maps API Key

2. Add API Key to Your Flutter Project

For Android:
<application
 ...
 android:label="your_app_name">
 <meta-data
 android:name="com.google.android.geo.API_KEY"
 android:value="YOUR_API_KEY"/>
 ...
</application>
For iOS (Swift):
import GoogleMaps
GMSServices.provideAPIKey("YOUR_API_KEY")

1. Generate SHA-1 and SHA-256 Keys

For Windows (Android Debug Keystore)
For macOS/Linux

2. Add SHA Keys to Firebase Console

Important Notes:
  • For release builds, use your custom keystore (not the default debug one).
  • Keep your keystore file secure and never expose it publicly.
  • You may need to regenerate SHA keys if you change your signing configuration or keystore.
Important Notes:

This All Command are run project folder and android studio terminal

1. generate the APK

2. generate the AAB File

1. Using Command-Line Interface (CLI)

Open Terminal
Run the Flutter App

Using an Integrated Development Environment (IDE)

Android Studio
Visual Studio Code (VS Code)
  • Open Project:
  • Run the App:
  • 1. Get Notification SenderId

    2. Get Json File

    3. where to add in admin Panel ?

    1. Change below credentials in Landing Page Folder

    2. How to get credentials