eRestro Rider App & Seller App
Author: WRTeam
Contact: CodeCanyon Profile
Thank you for purchasing the code. If you have any questions that are beyond the scope of this help file, please feel free to message me via my user page contact form here. Thanks so much!
How to Setup Flutter in Android Studio
-
Visit flutter official website : Get Flutter sdk
for full installation guide.
If you prefer video tutorials, we recommend this playlist for the full installation process
Flutter installation video - Now open Android Studio and create new flutter project then select your flutter sdk file to the location where we have downloaded earlier and that's it
Upgrade to flutter 3.x error
- for upgrade go to terminal in android studio and type flutter upgrade it will automatically pick latest version with stable channel
- If you have updated flutter 3.x after upgrade run flutter doctor. and in flutter doctor if you see below error like licence status unknown.
- then go to sdk manager from upar right corner then go to android sdk inside that sdk tools and then uncheck hide obsolute package then check android sdk command line tool latest then apply and then ok. it will download latest version as shown in below fig.
- now run flutter doctor again your error will be removed
How to first run project
- Go to file > open > then choose your downloaded project location then your project will open.and if you see upar right part 'enable dart support' then click that and go to pubspec.yaml file and in uper right part click pub get or package get and then press run button.
- If your are getting error then you can perform below hack
- if in your system firewall is on, then you can temporary disable firewall and then try to run project
- if your flutter channel is not stable then you need to change it to stable. you can check your flutter channel by terminal.
- go to android studio in bottom line click on terminal, in terminal write flutter channel.as shown below.
- if your are not in stable then write flutter channel stable
- go to Tools > Flutter > Flutter Clen.
- go to file > invalidate cache/ restart
How to change AppName
- For Android, to change label that is shown below android app icon, open android > app > src > main > open mainfest.xml and inside that label change that string as shown in below fig.
- For iOS, to change label that is shown below ios app icon, open ios > Runner >
Info.plist inside that
CFBundleName change that string as shown in below fig.
How to change App Version
- go to pubspec.yaml
- EX.Update version:A.B.C+X in pubspec.yaml.
- For Android: A.B.C represents the versionName such as 1.0.0. X (the number after the +) represents the versionCode such as 1, 2, 3, etc.
- Do not forget to execute flutter packages get, flutter build or flutter run after this step
- For iOS
- A.B.C represents the CFBundleShortVersionString such as 1.0.0. X (the number after the +) represents the CFBundleVersion such as 1, 2, 3, etc.
- Do not forget to execute flutter packages get, flutter build or flutter run after this step
How to Change app logo
- For Android, open android > app > src > main > res > mipmap add here your logo according to device screen size
- For iOS, open ios > Runner > Assets.xcassets > AppIcon.appiconset here you need to put your logo according to diffrent size.
How to Change app color
- To change app color, your need to add your color code in lib > helper> color.dart
- In flutter color code start from 0xff so your have to add your color hex after this 4 digit.your can change primary,second,fontcolor as shown in below image.
How to Add language
- To Add New Languge
- If you want to Add new language then copy one json file from language folder and add it to languge folder then rename it to language code of your new language
- now open that json file and change value of string to your language string. remember here you need to add all string in file if any one string is missing in any file then when you change that language then it will give you error. so add all string in all json file.
- now search in whole project "en", by pressing ctrl shift f. now where you see languge code in list add your new lanaguge code there.
- now go to Home.dart file inside that find languageList method in add your new languge string name here as shown in below image.now add this new language string to all json file here you have to use same string name as you have specified in language list in left side.in right side give language name
- Add your language name in each and every language file
- To remove language
- now search in whole project "en", by pressing ctrl shift f. now where you see languge code in list remove lanaguge code that you don't want.
How to change default language of app
- Go to lib > Localization > language_constant.dart inside that go to getLocale() method. here you have to change default language code "en" to your language code.
How to change package name
- In the Android pane, click on the little gear icon.Uncheck/Deselect the Compact Empty Middle Packages option.
- Your package directory will now be broken up in individual directories.
- Individually select each directory you want to rename, and: Right-click it Select Refactor Click on Rename current In the Pop-up dialog.
- Enter the new name and hit Refactor.Allow a minute to let Android Studio update all changes.
- Now press ctrl + shift + R and replace old packagename with your new packagename
- For ios open ios > Runner > info.plist > there is the key CFBundleIdentifier change the string value for that as shown in below
How to Change Images in app
- Go to Assets > images folder. here you have to change all image to your app image according to diffrent folder diffrent dimension images is used
How to Change App font
- Go to Assets > font folder .here you have to copy your font.now go to pubspec.yaml in font section change your font name as shown in below image.
How to Change server url
- go to your admin panel in that go to system and inside that client api key, here you have to copy API link as shown in below fig and paste it in app baseURL.
- Go to lib > helper > constant.dart. here you have to change your API server url. don't forget to add slash after api keyword
How to Create firebase project
- Go to firebase console.and then click on add project.
- after that below given step will come. here you have to enter your project details.Enter your project name and then press on continue.then select email and then press continue. >
- after that your project is created
- For android,now first click on android
- after that below given screen will appear, in that you have to enter your packagename and appname.and then click register app.
- after that below given screen will appear, now click on download google-services.json.after that open the file and copy content of file and replace in android > app > google-service.son.
- now click on next next and in last step press continue to the console button.
- for ios,perform below step. now click on add app.
- and then click on ios button.in this same as android step will be come here you have to enter your appname.then next and on next screen download google service info.plist file.
- now copy the content of that file and replace in ios > Runner > GoogleServie-info.plist
- now press next next on firebase console and that's it your project is created on ios.
How to enable Firebase Phone Authentication(OTP).
- Open your firebase console.
- Go to Authentication and open Sign-in method.
- Enable Phone Sign-in method and save.
- Now, we have to add sha1 and sha256 key in firebase, for that perform below given step for that you can do one of the below method
- From terminal
- Go to the android folder. Right click gradlew file and select Open in Terminal as shown in below image.
- Go to the terminal view and paste- gradlew signingReport as shown in below
- for mac it should be ./gradlew signingReport
- From gradle
- click on android > app > build.gradle. in upar right corner there is option open for editing in android studio.
- then dialog come here choose new window.in new window wait until gradle build finish after that in right side open gradle panel.in that go to android > app > signingReport.
- now take debug sha and sha256 will print copy that and add it in firebase console.and also add sha-256 to firebase console.
- now enable SafetyNet for use with Firebase Authentication.In the Google Cloud Console, enable the Android DeviceCheck API for your project.first make sure your correct project is selected then press enable button.
- When we are releasing apk then we need to add release sha in firebase panel otherwise otp will not work.
- after release you can get sha from play console here
- or another way you can also get release sha from below given command in cmd
- go to run and type cmd
- here first go to java jdk bin path
- then here edit this command and replace your keystore path and alias in this command keytool -list -v -keystore "D:\keystore\erestro.jks" -alias erestro
- then it will ask for password.enter and then it will show your release sha
- for ios you need to set following.
- Open your project configuration: double-click the project name in the left tree view. Select your app from the TARGETS section, then select the Info tab, and expand the URL Types section.
- Click the + button, and add a URL scheme for your reversed client ID. To find this value, open theGoogleService-Info.plist configuration file, and look for the REVERSED_CLIENT_ID key. Copy the value of that key, and paste it into the URL Schemes box on the configuration page. Leave the other fields blank.
- When completed, your config should look something similar to the following (but with your application-specific values):
Remember:
Add custom URL schemes to your Xcode project:
How to Add Map API key
- First add google api key in lib -> Helper ->Constant.dart file.
-
You have to setup those above API keys for both Platform.
- Android Setup
-
Next, open android ‣ app ‣ src ‣ main ‣ AndroidManifest.xml and
paste the Google Maps meta data tag into your application tag
before
the activity tag, placing the API key you copied before to
replace
{{YOUR_API_KEY_HERE}}.
Note: For the value field, please paste in your API Key from the Google
Maps
API registration process. -
Next, open android ‣ app ‣ src ‣ main ‣ AndroidManifest.xml and
paste the Google Maps meta data tag into your application tag
before
the activity tag, placing the API key you copied before to
replace
{{YOUR_API_KEY_HERE}}.
- iOS Setup
-
Next, open the ios ‣ Runner ‣ AppDelegate.swift file and paste the
following
code at shown in image.
GMSServices.provideAPIKey("YOUR KEY HERE")
-
Next, open the ios ‣ Runner ‣ AppDelegate.swift file and paste the
following
code at shown in image.
Note: Again, for the value field please paste in your API Key from the
registration process. - Android Setup
How to Change default country code for OTP.
- go to sentOtp.dart file inside that go to setCountryCode() method here you have to change country code to your language code.
How to set Notification
- Get server key from your firebase project and set in panel.
- now add in admin panel
- for ios your need to perform below given step
- In Xcode, open the project.
- In the Project Navigator (the left-hand menu), select the project icon that represents your app.
- In the top-left corner of the right-hand pane in Xcode, select your app's target.
- Navigate to the Capabilities tab.
- Enable Push Notifications.
- Check Remote Notifications and Background Fetch from Enabling Background Modes.
- APNs (Apple's Push Notification service) currently supports two types of connections: token-based (.p8) and certificate-based (.p12).you can follow either one of them
- Log in to the Apple Developer Portal.
- Navigate to Certificates, IDs & Profiles > Identifiers > App IDs and click the App ID associated with your app.
- On the screen for your App ID, check Capabilities > Push Notifications.
- Select App ID in next page & click continue.
- And then create Development SSL Certificate & Production SSL Certificate by adding CSR certificate. follow Apple's Create a certificate signing request instructions.
- Navigate to Certificates, IDs & Profiles > Keys Section and add a Universal key for Notifications,which you can use for more than one apps as well. >
- Just save and Download & keep it safe, as it will be downloaded only once.
- Then go to Firebase and add this .p8 file along with Your Key ID and Team ID.
- Log in to the Apple Developer Portal.
- Navigate to Certificates, IDs & Profiles > Identifiers > App IDs and click the App ID associated with your app.
- On the screen for your App ID, check Capabilities > Push Notifications.
- Click Save and respond to the Modify App Capabilities dialog box that appears.
- To create the certificate, we will use to communicate with Apple when sending push notifications:
- In a new browser tab, follow Apple's Create a certificate signing request instructions.
- In the Apple Developer Portal, navigate back to your App ID.
- Click Capabilities > Push Notifications > Configure.
- Click one of the following buttons:
- Development SSL Certificate > Create Certificate (for testing push notifications while developing an iOS app)
- Production SSL Certificate > Create Certificate (for sending push notifications in production)
- Click Choose File and select the certificate signing request you created above.
- Click Continue.
- Click Download to download the certificate.
- Use this file to export a .p12 file in the next step.
- Navigate in the Apple Developer Portal to Certificates, IDs & Profiles > Provisioning Profiles.
- Click the provisioning profile you'd like to edit.
- Edit the provisioning profile as necessary, and click Save.
- Click Download, and double-click the downloaded provisioning profile to install it.
- Make sure your Xcode project is configured to use the provisioning profile as necessary.Next, export the downloaded certificate (.cer file) as a .p12 file that can be uploaded to firebase:
- On your Mac, double-click the .cer file to open it in Keychain Access.
- In Keychain Access, in the lower-left corner, select Category > Certificates.
- Select the certificate to export.
- Choose File > Export Items.
- Enter a name in the Save As field.
- Accept the default .p12 file format and click Save. Respond to the prompts, and enter a password for the file if necessary.
- Keep track of this file, since you'll upload it to firebase in a later step.
- How to change notification sound in rider android->app->src->main->res->raw
- How to change notification sound in partner android->app->src->main->res->raw
For Token-based (.p8).
FOR certificate-based (.p12) :
How to Increase Product Load Limit
- you can chnage at a time when request send to server how many item will fetch.go to lib > helper > Constant.dart
- Please check below given image.
Change Api Parameter
- You can change or add api parameter from lib > Helper > String.dart. here all list of api and api paramater is listed that is used in app.
How to generate release apks
-
Create an upload keystore
Running the following at the command line:
-
On Mac/Linux, use the following command:
keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
-
On Windows, use the following command:
keytool -genkey -v -keystore c:\Users\USER_NAME\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload
-
On Mac/Linux, use the following command:
-
Reference the keystore from the app
Create a file named [project]/android/key.properties that contains a reference to your keystore:
Copy below code, Paste in to key.propertirs file and change as per shown in image.
storePassword=
keyPassword=
keyAlias=upload
storeFile=location of the key store file, such as /Users/user name/upload-keystore.jks
-
Run following commands in Terminal as per your need:
-
To generate an APK
flutter build apk -
To generate an App Bundle
flutter build appbundle
-
To generate an APK
Steps to Publish iOS App to App Store
- Open your Project's Runner.xcworkspace file in Xcode, and Add your Team [Your Apple Developer ID] and also Insert GoogleService-Info.plist file [Downloaded From Firebase Project] inside folder named Runner.
- and then Select Any iOS Device (armv7,arm64) as shown in image below.
- After that Select Archive From Product Menu of Xcode as shown below.
- Once Build / Archive Generated, pop up window will be shown. Validate app First, and After Successfull Validation of App, You Can Distribute App to AppStore.
- After SuccessFull Submission of Build File, it will be Reflected to your Apple Developer Account in which we have created app with same Bundle ID. Click here for Detailed Help
How to solve Data Safety Issue in play store?
Need Support?
Its our pleasure to serve our service and support. please contact our support team.
Head of Customer Support : Hency Pithadiya
Skype: Hency Pithadiya
To help our customers, we constantly be in touch with every customer if they need any assistance regarding our product. We offer our customers a support from Mon – Fri 9.00am to 6.00pm IST (GMT +5.30) – We are a Team located in India – Asia.
Typically we reply our customers for all the questions and queries within 24 hours of time via comments, support forum or emails.
Your Feedback
Dear valuable customer, Thank you very much for choosing our product. It's our pleasure to serve top-notch service to you. Please give us your honest feedback that will help us to make a more strong and reliable product by click here Rate Us. Thank you very much.
Contact Us
WRTeam has creative and dedicated group of developers who are mastered in Apps Developments and Web Application Development with a niche in delivering quality solutions to customers across the globe. Contact us today to find out how we can help you or for freelance work.
Head of Customer Support : Hency Pithadiya
Skype: Hency Pithadiya
Mail Us : support@wrteam.in
Thank you very much.
Rating
If you like our app, we will highly appreciate if you can provide us a rating of 5. You can rate us from your CodeCanyon Menu > Download page.