Skip to content

Commit f639283

Browse files
committed
updated content
1 parent 57085e9 commit f639283

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

docs/ff-concepts/notifications/push-notifications.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,4 +282,40 @@ Also, ensure that these principals (emails) and their roles are present in the p
282282

283283
Below is a sample image for App Engine Default service account.
284284
![pn-faq-img-2](imgs/pn-faq-img-2.png)
285-
</details>
285+
</details>
286+
287+
<details>
288+
<summary>How do I test push notifications locally in FlutterFlow?</summary>
289+
290+
Push notifications cannot be fully tested in a browser or most emulators — they require a real device with proper push notification service configuration.
291+
292+
**To Test lLcally:**
293+
294+
1. **Use a Physical Device**
295+
- Connect an Android or iOS device via USB or Wi-Fi.
296+
- Notifications do not work reliably in Flutter web builds or most simulators.
297+
298+
2. **Set Up Your Push Notification Service**
299+
- **For Firebase Cloud Messaging (FCM):**
300+
- Add your Android package name and/or iOS bundle ID in Firebase Console.
301+
- Download `google-services.json` (Android) or `GoogleService-Info.plist` (iOS) and add it to your project.
302+
- **For OneSignal:**
303+
- Create an app in OneSignal Dashboard.
304+
- Configure the app ID and platform keys in FlutterFlow.
305+
306+
3. **Run the App Locally**
307+
- Use FlutterFlow **Run Mode** or `flutter run` after exporting code.
308+
- Ensure push notification permissions are requested on launch.
309+
310+
4. **Send a Test Notification**
311+
- **Firebase Console:** Go to **Cloud Messaging****Send message** → target your device.
312+
- **OneSignal Dashboard:** Go to **Messages****New Push**.
313+
314+
5. **Grant Notification Permissions on Device**
315+
- iOS will prompt the first time; make sure to allow.
316+
- Android 13+ will also prompt for permission.
317+
318+
:::tip
319+
Keep your device connected and reuse the same build for repeated tests to avoid re-granting permissions each time.
320+
:::
321+
</details>

0 commit comments

Comments
 (0)