ionic-team / capacitor-docs

https://capacitorjs.com/docs
Apache License 2.0
20 stars 196 forks source link

Usage of deprecated `getConfigValue` method for iOS platform #270

Closed piotr-cz closed 1 month ago

piotr-cz commented 5 months ago

URL Configuration Values > Accessing Configuration Values

For iOS, use the getConfigValue() method:

if let style = getConfigValue("style") as? String {
  // Set the style
}

What is missing or inaccurate about the content on this page? Docs encourage use of getConfigValue method for iOS platform, but it has been deprecated in Capacitor 4.0.0-beta.0 here: https://github.com/ionic-team/capacitor/pull/5495

Documentation should be updated for v4, v5 and v6 to use getConfig() method, I'd say there doesn't have to be a distinction between iOS and Android platforms

For reference I found a commits with migration getConfigValue -> getConfig in