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
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docs/MESSAGING.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,3 +181,9 @@ curl -X POST --header "Authorization: key=AAAA9SHtZvM:APA91bGoY0H2nS8GlzzypDXSiU
181
181
If you don't want a badge on the app icon, remove the `badge` property or set it to 0. Note that launching the app clears the badge anyway.
182
182
183
183
<imgsrc="images/push-server-key.png"width="459px"height="220px"alt="Push server key"/>
184
+
185
+
## What if iOS doesn't receive notifications in the background?
186
+
Make sure you [`require` the plugin in `app.ts`](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/55cfb4f69cf8939f9101712fed22383196b08d36/demo/app/app.ts#L5)
187
+
*before*`application.start()`, and do `init()`*after* the app has started (not in `app.ts`).
188
+
189
+
> 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