Skip to content

Async await not working on openSettings and openNotificationSettings #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sivo1981 opened this issue Mar 29, 2025 · 3 comments
Open

Comments

@sivo1981
Copy link

On latest release 3.0.4 await not working correctly for open settings, response is received immediately.

Tested on Android emulator.

import * as perms from '@nativescript-community/perms'

async openNotificationSettings() {
  const result = await perms.openNotificationSettings()
  console.log('result', result)
}
@farfromrefug
Copy link
Member

@sivo1981 and it was working fine in older version ?

@sivo1981
Copy link
Author

sivo1981 commented Apr 2, 2025

@farfromrefug honestly i don't know because i did not use this dependency before. I had my own implementation of opening notification settings. I can post it here if needed.

@farfromrefug
Copy link
Member

farfromrefug commented Apr 3, 2025

@sivo1981 OK it would help if you could test old versions. I am without computer until September. I.can do.small bug fixes directly on github.

EDit: I looked at the code and everything seems fine. Would be nice if you could.investigate further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants