Android/iOS Settings are not imported
Closed this issue · 1 comments
aleksandar-brkic commented
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,
})
...
RaphaelWoude commented
Will update the README tonight.