Skip to content

provinzial/capacitor-metadata-reader

 
 

Repository files navigation


Metadata Config

capacitor-metadata-reader

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

Installation

npm install capacitor-metadata-reader
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!

About

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

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 22.5%
  • Kotlin 19.2%
  • Java 17.4%
  • Ruby 13.7%
  • TypeScript 10.8%
  • Objective-C 9.6%
  • JavaScript 6.8%