Flutter iOS
Add new app into Appfigurate Simulator
Run Appfigurate in the iOS Simulator.
Tap ≡
Add app
.
Select app type iOS
.
Enter the URL scheme quickstart
that will be used by Appfigurate to launch your app in order to read or apply configuration. The URL scheme must be 4-64 ascii characters in length and must be unique to your app.
Tap Add app
.
Create APLConfiguration subclass
In your app, add a new Swift class, subclassing APLConfiguration
, called Configuration
.
In your apps Configuration.swift
file, paste the .swift implementation file output to the Console in Output source code snippets.
Note: your public key output to the Console in Output source code snippets will be different to the public key in the following example.
Edit Info.plist
In your apps Info.plist
file (right click, Open As ‣ Source Code). Paste the Info.plist
snippet output to the Console in Output source code snippets.
If you already have an existing CFBundleURLTypes
array in your Info.plist
file, then insert just the <dict> ... </dict>
portion.
Note: Unlike iOS native integration, the Appfigurate Flutter Plugin automatically calls APLApplicationOpenURL
and APLDidFinishLaunchingWithOptions
at the appropriate time.
Test your configuration
To test that you've successfully updated your iOS app to use Appfigurate:
Compile and run Quickstart
to the same Simulator instance that Appfigurate Simulator was run from previously.
Press Shift-Cmd-H
to get back to the Simulator home screen.
Tap the Appfigurate app icon.
Tap the Quickstart
row. The Simulator screen will briefly flicker as it swaps to the Quickstart
app, reads its configuration and swaps back to Appfigurate.
Appfigurate will now be displayed and showing the following screen:
Since we added a
@BoolProperty
fordebugLogging
and@StringPropertyListEdit
forserverURL
, you can now change these configuration items at runtime. TapApply⌄
to apply the configuration to theQuickstart
app.
Now jump to Flutter Android.
Last updated