Package Name
ANDROID PACKAGE NAME:
Step 1
- Open Gradle Scripts → build.gradle (Module: app)
- Change the application ID with your own id name
- Standard naming procedure: com.yourdomainname.yourappname
- Change the id, make it as unique as possible, because application id is very important if you want to publish the application in the store.
Important: your applicationId or package name must be the same to the package name you’ve create in your firebase console when generating google-services.json
Step 2
- Click once on your package and then press on the settings icon at the top next to "Project".
- Unselect Compact Middle Packages
- Right click on "com", "example", and "answerme" folders and rename it to your package name. (replace "example" by your domain name and "answerme" by your app name)
IOS PACKAGE NAME:
In iOS, the package name is found in "Runner.xcodeproj/project.pbxproj":
PRODUCT_BUNDLE_IDENTIFIER = com.example.appname;
But there are 3 lines of PRODUCT_BUNDLE_IDENTIFIER in "project.pbxproj" which you have to edit, locate it by pressing CTRL + F and look for PRODUCT_BUNDLE_IDENTIFIER.
Last Step
In order for the rate option to work in the application you have to update your Google Play and your App Store identifiers. To do that go to "lib/constants.dart" and change the GooglePlayIdentifier value to your package name and the AppStoreIdentifier value to your App store identifier.