You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ff-concepts/adding-customization/configuration-files.md
+76-20Lines changed: 76 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,8 +114,8 @@ For more complex changes, you can enable **Manual Edit Mode**, which essentially
114
114
115
115
To manually edit native files, navigate to **Custom Code** (from the left-side menu) > **Configuration Files**, select the file you want to edit, and click the **lock** button to unlock it. You can now freely modify the file.
116
116
117
-
:::tip
118
-
Once unlocked, the file stays in manual editing mode until you lock it again. Locking it will reset the file to a version generated by FlutterFlow.
117
+
:::warning
118
+
Once unlocked, the file stays in manual editing mode until you lock it again. Re-locking it will reset the file to a version generated by FlutterFlow, which will overwrite any manual changes you've made.
119
119
:::
120
120
121
121
<div style={{
@@ -226,7 +226,19 @@ Here are some scenarios where you may need to modify the `AndroidManifest.xml` f
226
226
For including additional screens (activities), background processes (services), or listeners (broadcast receivers), you must declare them in `AndroidManifest.xml`.
This registers `NewScreenActivity` so the system knows it exists.
@@ -236,8 +248,23 @@ This registers `NewScreenActivity` so the system knows it exists.
236
248
If your app requires access to restricted resources like wake locks (to keep the device awake) or audio recording, you must declare the necessary permissions in `AndroidManifest.xml` by [manually editing](#option-2-manual-edit-mode) the file. **Tip:** You can also add custom permissions directly through the [**Permission Settings**](../../resources/projects/settings/project-setup.md#adding-custom-permission) in FlutterFlow.
Without these, the app cannot keep the device awake or record audio.
@@ -247,37 +274,66 @@ Without these, the app cannot keep the device awake or record audio.
247
274
Many third-party packages (Google Maps, Firebase, AdMob, etc.) require `<meta-data>` tag in `AndroidManifest.xml` to pass configuration values. For example, the [**Mapbox Flutter**](https://pub.dev/packages/mapbox_flutter) plugin requires adding your Mapbox access token as a metadata entry for initialization. A real example: to initialize Mapbox, you’d add:
This prevents installation on devices without a camera.
276
316
277
-
**Example 6: Enabling Cleartext Traffic**
317
+
**Example 5: Enabling Cleartext Traffic**
278
318
279
319
If your app needs to communicate over HTTP (unencrypted) for testing or legacy reasons, you might need to add `android:usesCleartextTraffic="true"` in the `<application>` tag. This is to relax network security for HTTP URLs.
android:usesCleartextTraffic="true"> <!-- Add this line -->
329
+
330
+
<!-- Other components -->
331
+
332
+
</application>
333
+
334
+
</manifest>
335
+
```
336
+
281
337
:::tip
282
338
You can modify the `AndroidManifest.xml` file by either [**adding a snippet**](#snippet-placement-for-android) or [**editing it manually**](#option-2-manual-edit-mode).
0 commit comments