RaphaelWoude/capacitor-native-settings

Android/iOS Settings are not imported

Closed this issue · 1 comments

Both AndroidSettings and IOSSettings need to be imported in order for the example in the docs to work. If they are not, the error is that they are not defined.
image

So this is what worked for me:

import {NativeSettings, AndroidSettings, IOSSettings} from 'capacitor-native-settings'

export default {
  methods: {
    onInput(value) {
      NativeSettings.open({
        optionAndroid: AndroidSettings.AppNotification,
        optionIOS:     IOSSettings.App,
      })
      ...

Will update the README tonight.