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
To obtain the SHA-1 and SHA-256 keys from the project, follow one of the methods below:
Using Terminal Commands:
./gradlew signinReport
.Using Keytool Command:
keytool -genkey -v -keystore release.keystore -alias [your_alias_name] -keyalg RSA -keysize 2048 -validity 10000
[your_alias_name]
with the desired alias name.Ensure to use either of these methods to obtain the required SHA-1 and SHA-256 keys for your project.
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