should I add to clickable.yaml here
clickable_minimum_required: 8.6.0
builder: rust
kill: conversejs
install_root_data:
- manifest.json
- content-hub.json
- conversejs.apparmor
- conversejs.desktop
- assets
- www
the folder of the module?
should I add to clickable.yaml here
clickable_minimum_required: 8.6.0
builder: rust
kill: conversejs
install_root_data:
the folder of the module?
@pparent ubuntu-phablet aa-exec[74446]: qrc:/qml/Main.qml:27:1: module "Pparent.Notifications" is not installed yes i see this in clickable logs
said in New ConverseJS (XMPP) app with broken source links?:
import Pparent.Notifications 1.0
It's building and installing the app it runs but freezes.
I did ./setup-project.sh [PROJECT-PATH] so it must be installed.
@pparent The problem now is that I can't import your code. This is main.qml https://pastebin.com/raw/kt9cpWBz I get :/qml/Main.qml:37 NotificationHelper is not a type
I'm doing something wrong the app froze
I'm trying this now onFeaturePermissionRequested: {
grantFeaturePermission("http://127.0.0.1:9090/index.html", Notifications, true);
}
I saw the examples here https://doc.qt.io/qt-6/qml-qtwebengine-webengineview-obsolete.html#featurePermissionRequested-signal
@pparent I have a question about onFeaturePermissionRequested: {
grantFeaturePermission(securityOrigin, feature, true);
}
should I replace feature with notification or whatever name it has in qml or leave it like that ?
@pparent desktop notifications are enabled in covnerejs by default, but I don't know how to enable them in QML to be able to interact with your module.
@pparent It's not ideal for sure. But QML is to confusing for me to be able to implement the push notifications properly with the js code of conversejs. If you have any ideas how to do it exactly I will appreciate it.
Ok I fixed that now sound notifications are working, but we need to make the app not suspend from the tweak tool if we want to get notifications on locked screen.
I'm wondering why the sound notifications don't work even if I use the tweak tool and prevent app suspension. On my computers browser works. On the app don't work.
@pparent That would be great yes! I have one question. Where should I put helper.send("Hello world") ? in the main.qml? I see that it use desktop web notification, page title change, and notification audio playback. So does that mean I can just put the code on top of the main.qml and when i receive message in the app it will automatically send notification?
@pparent I need to find in the conversejs source where messages are received and hook that to the push notifications with js. On theory should work. But I will first try your implementation. I already executed your script.
@pparent Thank you! I will check it now. 
@poVoq To be honest you have right. They get logs on servers from IP and browser metrics. I will use local files and implement hook notifications now. I will try. At least we can use it with that type of notifications till I found out how to implement the ubports push notifications.
@poVoq OK I will delete the app from the store.
@poVoq Anti Privacy ? You can see the code from the links in the CDN. If I download the dist files from the release of ConverseJS official github account I will need to always download and replace the files, also that makes the app heavier.
@poVoq Yes, github just sucks for me. Do you have any suggestions on how to implement the push notifications https://docs.ubports.com/en/latest/appdev/guides/pushnotifications.html in a web app ? Or I should try to implement web hook to email.
I'm currently thinking how to implement push notifications or some other way like a JavaScript hook to send notifications on email(Dekko) which I saw has push notifications.