capacitor-metadata-reader
Capacitor plugin to read custom settings from AndroidManifest.xml and Info.plist
npm install capacitor-metadata-reader
npx cap syncThere is no configuration required to setup this plugin. However, if you have custom key value pairs for a platform you'd like to read, the per platform instructions are as follows:
Android:
In <application> of AndroidManifest.xml add a <meta-data android:name="myCustomKey" android:value="your-value"></meta-data>.
iOS:
In Info.plist add your custom entry: <key>myCustomKey</key><string>your-value</string>.
See the Metadata Config page in the following repo:
https://github.com/uioporqwerty/capacitor-testapp
tldr;
import { MetadataConfig } from 'capacitor-metadata-config'
const { value } = await MetadataConfig.read({ key: 'myCustomKey' })
Thanks goes to these wonderful people (emoji key):
Nitish Sachar 🚧 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
