Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Expo config plugin #406

Open
4 tasks done
code4break opened this issue Jun 20, 2022 · 1 comment
Open
4 tasks done

Expo config plugin #406

code4break opened this issue Jun 20, 2022 · 1 comment

Comments

@code4break
Copy link

code4break commented Jun 20, 2022

It would be cool, if this lib supports managed Expo projects. So that it will be easy to integrate.

Description

  1. Sample code (provide repo url or sample code)
    https://docs.expo.dev/guides/config-plugins/#creating-a-plugin
  1. Platform
  • iOS
  • Android
  1. Device
  • Simulator
  • Real device
@jessemezini
Copy link

Hi @FireFighter80, I think you can use without the need of a plugin.

In the app.json

{
  "expo": {
    "name": "my-app",
    "ios": {
      "infoPlist": {
        "UIBackgroundModes": ["audio"]
      },
    },
    "android": {
      "permissions": ["FOREGROUND_SERVICE"]
    },
  }
}

https://docs.expo.dev/guides/config-plugins/#using-a-plugin-in-your-app

Plugins are mostly meant to be used with expo prebuild or eas build commands.

I tested on android with prebuild and eas build.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants