capacitor-metadata-config
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published


Metadata Config

capacitor-metadata-config

Capacitor plugin to read custom settings from AndroidManifest.xml and Info.plist


Maintainers

Maintainer GitHub Social
Nitish Sachar uioporqwerty LinkedIn

Installation

npm install capacitor-metadata-config
npx cap sync

Configuration

There 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>.

Usage

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' })

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Nitish Sachar

🚧 💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Readme

Keywords

Package Sidebar

Install

npm i capacitor-metadata-config

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

19.2 kB

Total Files

28

Last publish

Collaborators

  • uioporqwerty