Please look at the below versions
flutter version for Android & Ios project is 'Channel stable, 3.3.0'
This issue comes due to missing the below steps. You should not run the project in excode without making the required changes in the code.
Please follow the required changes below
change some details in given files,
Note : File Location : "project/ios/Runner/Runner.xcodeproj/project.pbxproj"
PRODUCT_BUNDLE_IDENTIFIER = 'your bundle id here'; (change in 3 places in same file)
<key>CFBundleDisplayName</key>
<string>project name here</string>
project file is in location,
change map api key in file, Note : File Location : project/ios/Runner/appDelegate.swift
GMSServices.provideAPIKey("your map key here")
Please make sure the below Firebase Setup
We need to create nodes in firebase realtime database, please find the sample json database below or refer firebase setup.
call_FB_OTP node is used to configure whether the firebase otp should used or dummy otp should use for our testing purpose call_FB_OTP should be (boolean)true
{
"rules": {
"drivers": {
".read": true,
".write":true,
".indexOn":["is_active","g","service_location_id","vehicle_type","l","ownerid"],
},
"requests": {
".read": true,
".write": true,
".indexOn":["service_location_id"],
},
"SOS": {
".read": true,
".write": true
},
"call_FB_OTP": {
".read": true,
".write": true
},
"driver_android_version": {
".read": true,
".write": true
},
"driver_ios_version": {
".read": true,
".write": true
},
"user_android_version": {
".read": true,
".write": true
},
"user_ios_version": {
".read": true,
".write": true
},
"request-meta": {
".read": true,
".write": true,
".indexOn":["driver_id","user_id"]
},
"owners": {
".read": true,
".write": true,
".indexOn":["driver_id","user_id"]
}
}
}
note: change anyname with any specific name you like,
replace the jks key details in file,
Note : File Location "project/android/key.properties as given below"
storePassword=password you entered while creating jks file
keyPassword=password you entered while creating jks file
keyAlias=alias name you given in the command for creating jks file
storeFile=jks file name with the location like ../../../jks
Generate SHA-1 and SHA-256 keys from the project
you will be able to get these keys in two ways these are
in terminal go to folder 'project/android/' and run the command './gradlew signinReport' then you will get debug and release SHA-1 and SHA-256
Run the below command in the terminal to get SHA keys
Finally copy that debug and release keys and paste those in Firebase where
Click Settings icon (presented right on project overview ) -> project settings -> Your App section -> SHA certificate fingerprints click add button and paste & Submit.
This issue comes due to mis configurations of firebase setup or base url mis configurations
Please make sure the below steps