Closed aleksandar-brkic closed 2 years ago
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.
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.
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.
So this is what worked for me: