Skip to content

Commit 0c82494

Browse files
committed
use expo-notifications plugin
1 parent 2f4dc5b commit 0c82494

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

apps/mobile/app.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
4747
infoPlist: {
4848
LSApplicationCategoryType: "public.app-category.news",
4949
ITSAppUsesNonExemptEncryption: false,
50-
UIBackgroundModes: ["audio", "remote-notification"],
50+
UIBackgroundModes: ["audio"],
5151
LSApplicationQueriesSchemes: ["bilibili", "youtube"],
5252
CFBundleAllowMixedLocalizations: true,
5353
// apps/mobile/src/@types/constants.ts currentSupportedLanguages
@@ -154,6 +154,12 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
154154
},
155155
],
156156
"react-native-video",
157+
[
158+
"expo-notifications",
159+
{
160+
enableBackgroundRemoteNotifications: true,
161+
},
162+
],
157163
],
158164
experiments: {
159165
typedRoutes: true,

0 commit comments

Comments
 (0)