@nativescript-community/perms
Advanced tools
Comparing version 2.2.7 to 2.2.8
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.2.8](https://github.com/nativescript-community/perms/compare/v2.2.7...v2.2.8) (2022-06-30) | ||
**Note:** Version bump only for package @nativescript-community/perms | ||
## [2.2.7](https://github.com/nativescript-community/perms/compare/v2.2.6...v2.2.7) (2022-03-08) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@nativescript-community/perms", | ||
"version": "2.2.7", | ||
"version": "2.2.8", | ||
"description": "An unified permissions API for NativeScript on iOS and Android.", | ||
@@ -35,3 +35,3 @@ "main": "./permissions", | ||
"readmeFilename": "README.md", | ||
"gitHead": "3a575acaf9972477a9a764f9b0ee452f49d666c1" | ||
"gitHead": "07b9ed880b159250bbee775108692305a0a1a394" | ||
} |
@@ -436,3 +436,3 @@ import { Device, Trace } from '@nativescript/core'; | ||
if (osVersion >= 10) { | ||
isEnabled = await (new Promise(resolve => UNUserNotificationCenter.currentNotificationCenter().getNotificationSettingsWithCompletionHandler(resolve))) !== UNAuthorizationOptionNone; | ||
isEnabled = (await (new Promise(resolve => UNUserNotificationCenter.currentNotificationCenter().getNotificationSettingsWithCompletionHandler(resolve)))).authorizationStatus === (2); | ||
} | ||
@@ -439,0 +439,0 @@ else { |
Sorry, the diff of this file is not supported yet
117123