Setup iOS App

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:

  1. Place the GoogleServices-Info.plist & ringtone.caf & blank.caf in the path mobijet/assets/ios_assets/.
  2. Open Xcode, right click on runner > Add files to runner, then select the GoogleServices-Info.plist & ringtone.caf & blank.caf present in the path mobijet/assets/ios_assets/ and click Add.
  3. 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.
  4. 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.
  5. 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 – mobijet/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.

Powered by BetterDocs