From 344cd67b568228358b9bdb001559b53a53bdf4c9 Mon Sep 17 00:00:00 2001 From: Castro Agbo Date: Sun, 5 Jan 2025 09:40:49 +0000 Subject: [PATCH 1/2] docs(messaging): add remote notification to Expo config --- docs/messaging/usage/index.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/messaging/usage/index.md b/docs/messaging/usage/index.md index ebf826d087..0e56818638 100644 --- a/docs/messaging/usage/index.md +++ b/docs/messaging/usage/index.md @@ -47,6 +47,21 @@ Since Expo SDK51, Notifications entitlement is no longer always added to iOS pro } } ``` +## iOS - Remote notification + +If you require `remote notification` on Expo, you can also add this to your Expo `app.json` or `app.config.js` + +```json +{ + "expo": { + "ios": { + "infoPlist": { + "UIBackgroundModes": ["remote-notification"] + }, + } + } +} +``` # What does it do From 2bfbe7c178251a25d50342dda88a7b1a66dbdf13 Mon Sep 17 00:00:00 2001 From: Castro Agbo Date: Sun, 5 Jan 2025 09:49:12 +0000 Subject: [PATCH 2/2] docs(messaging): improve iOS remote notification documentation --- docs/messaging/usage/index.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/messaging/usage/index.md b/docs/messaging/usage/index.md index 0e56818638..178072a342 100644 --- a/docs/messaging/usage/index.md +++ b/docs/messaging/usage/index.md @@ -47,6 +47,7 @@ Since Expo SDK51, Notifications entitlement is no longer always added to iOS pro } } ``` + ## iOS - Remote notification If you require `remote notification` on Expo, you can also add this to your Expo `app.json` or `app.config.js` @@ -55,9 +56,9 @@ If you require `remote notification` on Expo, you can also add this to your Expo { "expo": { "ios": { - "infoPlist": { - "UIBackgroundModes": ["remote-notification"] - }, + "infoPlist": { + "UIBackgroundModes": ["remote-notification"] + } } } }