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/notifications/push-notifications.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -282,4 +282,40 @@ Also, ensure that these principals (emails) and their roles are present in the p
282
282
283
283
Below is a sample image for App Engine Default service account.
284
284

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.
0 commit comments