From f639283a3e175a178a4d23e6b2f58ddc26d108e6 Mon Sep 17 00:00:00 2001 From: mrdavidorok Date: Wed, 13 Aug 2025 13:58:48 +0100 Subject: [PATCH 1/3] updated content --- .../notifications/push-notifications.md | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/docs/ff-concepts/notifications/push-notifications.md b/docs/ff-concepts/notifications/push-notifications.md index 0fe7c3e5..6d155b31 100644 --- a/docs/ff-concepts/notifications/push-notifications.md +++ b/docs/ff-concepts/notifications/push-notifications.md @@ -282,4 +282,40 @@ Also, ensure that these principals (emails) and their roles are present in the p Below is a sample image for App Engine Default service account. ![pn-faq-img-2](imgs/pn-faq-img-2.png) - \ No newline at end of file + + +
+How do I test push notifications locally in FlutterFlow? + +Push notifications cannot be fully tested in a browser or most emulators — they require a real device with proper push notification service configuration. + +**To Test lLcally:** + +1. **Use a Physical Device** + - Connect an Android or iOS device via USB or Wi-Fi. + - Notifications do not work reliably in Flutter web builds or most simulators. + +2. **Set Up Your Push Notification Service** + - **For Firebase Cloud Messaging (FCM):** + - Add your Android package name and/or iOS bundle ID in Firebase Console. + - Download `google-services.json` (Android) or `GoogleService-Info.plist` (iOS) and add it to your project. + - **For OneSignal:** + - Create an app in OneSignal Dashboard. + - Configure the app ID and platform keys in FlutterFlow. + +3. **Run the App Locally** + - Use FlutterFlow **Run Mode** or `flutter run` after exporting code. + - Ensure push notification permissions are requested on launch. + +4. **Send a Test Notification** + - **Firebase Console:** Go to **Cloud Messaging** → **Send message** → target your device. + - **OneSignal Dashboard:** Go to **Messages** → **New Push**. + +5. **Grant Notification Permissions on Device** + - iOS will prompt the first time; make sure to allow. + - Android 13+ will also prompt for permission. + + :::tip + Keep your device connected and reuse the same build for repeated tests to avoid re-granting permissions each time. + ::: +
From de4d9cd9cdfaa10a5cd77432aebdd019f3e8b486 Mon Sep 17 00:00:00 2001 From: mrdavidorok Date: Wed, 13 Aug 2025 15:59:29 +0100 Subject: [PATCH 2/3] updated content --- .../adding-customization/custom-functions.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/ff-concepts/adding-customization/custom-functions.md b/docs/ff-concepts/adding-customization/custom-functions.md index 0398d1ba..3a2ad8a9 100644 --- a/docs/ff-concepts/adding-customization/custom-functions.md +++ b/docs/ff-concepts/adding-customization/custom-functions.md @@ -101,5 +101,32 @@ function code. Instead, you can pass the app state variable as a parameter and t +
+How do I convert a string to a double in FlutterFlow using a custom function? + +If you need to convert a string (for example, `"123.45"`) into a `double` in FlutterFlow, you can do this with a Custom Function. + +Below is a simple Dart example: + +```dart +double stringToDouble(String value) { +return double.tryParse(value) ?? 0.0; +} +``` +Steps to use in FlutterFlow: + +- Go to Custom Functions in the left panel. +- Click + Add Function. +- Name the function (e.g., stringToDouble). +- Add a String parameter (e.g., value). +- Paste the code above. +- Save and use the function anywhere in your app (such as in a binding or conditional logic). + +:::tip +- You don’t always need to write your own function — FlutterFlow’s **[Utility Functions Library](https://marketplace.flutterflow.io/item/ZVBmWMGpXe6vqnASRHDA)** already contains a stringToDouble method (and many others) that can save you time. +- You can install it from the Marketplace and use it immediately without creating custom code. +::: +
+ ## Utility Functions Library Instead of building everything from scratch, explore our **[Utility Functions Library](https://marketplace.flutterflow.io/item/ZVBmWMGpXe6vqnASRHDA)** — packed with 50+ helpful functions for everyday tasks like formatting text, manipulating dates, validating input, and more. Easily plug them into your custom logic to save time and reduce errors. From 9b033651f7a62bb1e057d6cf3f46eb812d8acaae Mon Sep 17 00:00:00 2001 From: mrdavidorok Date: Wed, 13 Aug 2025 16:01:40 +0100 Subject: [PATCH 3/3] deleted wrongly committed content to this PR --- .../adding-customization/custom-functions.md | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/docs/ff-concepts/adding-customization/custom-functions.md b/docs/ff-concepts/adding-customization/custom-functions.md index 3a2ad8a9..6fe2ea1f 100644 --- a/docs/ff-concepts/adding-customization/custom-functions.md +++ b/docs/ff-concepts/adding-customization/custom-functions.md @@ -100,33 +100,5 @@ function code. Instead, you can pass the app state variable as a parameter and t - -
-How do I convert a string to a double in FlutterFlow using a custom function? - -If you need to convert a string (for example, `"123.45"`) into a `double` in FlutterFlow, you can do this with a Custom Function. - -Below is a simple Dart example: - -```dart -double stringToDouble(String value) { -return double.tryParse(value) ?? 0.0; -} -``` -Steps to use in FlutterFlow: - -- Go to Custom Functions in the left panel. -- Click + Add Function. -- Name the function (e.g., stringToDouble). -- Add a String parameter (e.g., value). -- Paste the code above. -- Save and use the function anywhere in your app (such as in a binding or conditional logic). - -:::tip -- You don’t always need to write your own function — FlutterFlow’s **[Utility Functions Library](https://marketplace.flutterflow.io/item/ZVBmWMGpXe6vqnASRHDA)** already contains a stringToDouble method (and many others) that can save you time. -- You can install it from the Marketplace and use it immediately without creating custom code. -::: -
- ## Utility Functions Library Instead of building everything from scratch, explore our **[Utility Functions Library](https://marketplace.flutterflow.io/item/ZVBmWMGpXe6vqnASRHDA)** — packed with 50+ helpful functions for everyday tasks like formatting text, manipulating dates, validating input, and more. Easily plug them into your custom logic to save time and reduce errors.