Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit f923b84

Browse files
Update MESSAGING.md
1 parent 04d6eaf commit f923b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/MESSAGING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ This results in a payload of:
192192
- App in the background: `{"gcm.message_id":"0:1522952757954843%3194ccac3194ccac", "foo":"bar", "foreground":false}`
193193

194194
## What if iOS doesn't show/receive notifications in the background?
195-
Make sure you [`require` the plugin in `app.ts`](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/55cfb4f69cf8939f9101712fed22383196b08d36/demo/app/app.ts#L5)
195+
Make sure you [`require` the plugin in `app.ts` / `main.ts` / `main.aot.ts`](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/55cfb4f69cf8939f9101712fed22383196b08d36/demo/app/app.ts#L5)
196196
*before* `application.start()`, and do `init()` *after* the app has started (not in `app.ts` - not even in a timeout; move it out of `app.ts` entirely!).
197197

198198
> Make sure to use `require`, *not* `import` in `app.ts` because TSC will remove the import in case you're not using it.

0 commit comments

Comments
 (0)