Closed piotr-cz closed 1 month ago
URL Configuration Values > Accessing Configuration Values
For iOS, use the getConfigValue() method: if let style = getConfigValue("style") as? String { // Set the style }
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
getConfigValue
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
getConfig()
For reference I found a commits with migration getConfigValue -> getConfig in
getConfigValue -> getConfig
@capacitor/splash-screen
@capacitor/push-notifications
URL Configuration Values > Accessing Configuration Values
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/5495Documentation 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 platformsFor reference I found a commits with migration
getConfigValue -> getConfig
in@capacitor/splash-screen
repo: https://github.com/ionic-team/capacitor-plugins/pull/962/files@capacitor/push-notifications
repo: https://github.com/ionic-team/capacitor-plugins/commit/aa623eb8ff88c1fc26d92e72873d659a588cdfc7