Before proceeding ahead, please make sure you have Completed setting up the Android App first, as it makes up most of the tasks required for this project.
Open the project folder in VS Code, In the terminal, run following command:
flutter clean flutter pub get cd ios pod install --repo-update
Drag & Drop the ios folder in Xcode & then perform the below steps:
- Place the GoogleServices-Info.plist & ringtone.caf & blank.caf in the path fiberchat/assets/ios_assets/.
- Open Xcode, right click on runner > Add files to runner, then select the GoogleServices-Info.plist & ringtone.caf & blank.caf present in the path fiberchat/assets/ios_assets/ and click Add.
- Check if all the app name, package name, version is correct in the General Section & Make sure your bundle name is showing correct in Info section in the Xcode.
- Go to Signing & Capabilities, select or add the team & bundle identifier. Also make sure, background fetch & Remote notification is ticked in the Background Modes & Push notification is also enabled.
- Set Custom URL Schemes :
Go to Firebase Dashboard > Project Settings > Select your iOS User APP > Copy the “Encoded App ID” value and Paste it inside your – fiberchat/ios/Runner/Info.plist file as shown below:
<key>CFBundleURLSchemes</key> <array> <string>PASTE ENCODED APP ID HERE</string> </array>
Please make sure you have already completed the iOS Push Notification Setup.