Skip to content
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

Notification not working in windows 11 neutralino vue app #72

Open
orizzontiholding opened this issue Apr 13, 2023 · 4 comments
Open

Notification not working in windows 11 neutralino vue app #72

orizzontiholding opened this issue Apr 13, 2023 · 4 comments
Labels

Comments

@orizzontiholding
Copy link

I've integrated my vue app with neutralino and I'm trying to use the functions of the framework.
I've imported in my component the os module and I'm trying to show a notification in windows 11 when a certain method is called in the vue app, but this seems not working.

        saveData() {
            //supabase.from('').insert({}).then( (status) => {}).catch( (e) => console.log(e) )
           os.showNotification('Success', 'Dati salvati correttamente')
        }

the way I'm importing neutralino components is this

import { os } from '@neutralinojs/lib'

Is there something wrong or is a bug of neutralino library?

@Kanai2003
Copy link

@orizzontiholding is your websocket connected properly?

@Kanai2003
Copy link

Kanai2003 commented Feb 26, 2024

Hey, @shalithasuranga @orizzontiholding
The code is properly working, I think using async/await this problem will be solved

async saveData() {
     try {
                await os.showNotification('Success', 'Dati salvati correttamente');
       } catch (error) {
                console.error('Error displaying notification:', error);
       }
}

@Sadaf-A
Copy link
Contributor

Sadaf-A commented Feb 29, 2024

@orizzontiholding the same code works on linux but it doesn't work on windows 11 I'm not sure why that's the case.
I think it is because windows asks for permission to show notifications from apps
@shalithasuranga requesting you valuable inputs here

@NayanPatidar
Copy link

neutralinojs/neutralinojs#1219 Fixes this issue

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

No branches or pull requests

5 participants