From a1f332956efd0db83dd634c20a36a08c342c364e Mon Sep 17 00:00:00 2001 From: Christopher PIERO <50320822+christopherPiero@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:07:38 +0200 Subject: [PATCH] docs(messaging, expo): note iOS entitlement config requirement for expo SDK51+ (#7842) * docs(notifications): iOS entitlements Added new expo section for iOS entitlements since Expo SDK51 * style(lint): `yarn lint:markdown --write` * lint(spelling): added new technical words to dictionary for PR --------- Co-authored-by: Mike Hardy --- .spellcheck.dict.txt | 3 +++ docs/messaging/usage/index.md | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/.spellcheck.dict.txt b/.spellcheck.dict.txt index 6cb2afbb68..a0cbe72f6c 100644 --- a/.spellcheck.dict.txt +++ b/.spellcheck.dict.txt @@ -12,6 +12,7 @@ APNs AppAttest AppCheck AppDelegate.m +aps-environment async ATT ATT-compatible @@ -138,6 +139,7 @@ pre-configured pre-fetched pre-release pre-rendered +prebuild preflight preloaded prepended @@ -163,6 +165,7 @@ screenview scrollable SDK SDK. +SDK51 SDKs SDKs. serverless diff --git a/docs/messaging/usage/index.md b/docs/messaging/usage/index.md index a994b01902..69ee55c67b 100644 --- a/docs/messaging/usage/index.md +++ b/docs/messaging/usage/index.md @@ -30,6 +30,24 @@ cd ios/ && pod install If you're using an older version of React Native without auto-linking support, or wish to integrate into an existing project, you can follow the manual installation steps for [iOS](/messaging/usage/installation/ios) and [Android](/messaging/usage/installation/android). +# Expo + +## iOS - Notifications entitlement + +Since Expo SDK51, Notifications entitlement is no longer always added to iOS projects during prebuild. If your project uses push notifications, you may need to add the aps-environment entitlement to your app config: + +```json +{ + "expo": { + "ios": { + "entitlements": { + "aps-environment": “production” + } + } + } +} +``` + # What does it do React Native Firebase provides native integration of Firebase Cloud Messaging (FCM) for both Android & iOS. FCM is a cost