RaphaelWoude / capacitor-native-settings

Capacitor plugin to open native settings screens for android and iOS
MIT License
95 stars 30 forks source link

Update NativeSettingsPlugin.java #17

Closed Zack-Heisnberg closed 2 years ago

Zack-Heisnberg commented 2 years ago

Added 3 Methods for android

-- checkPermission() you can get with it "BatteryOptimizations" ,to check if the application isBackgroundRestricted; "Connectivity", check if the data restriction "Notification", check if notification are Enabled

--openNotification open notification settings if Notification for the app

--openBackground open BACKGROUND_DATA_RESTRICTIONS_SETTINGS

RaphaelWoude commented 2 years ago

Thank you for your contribution. Would you be able to fix the linting errors & prettier?