flow_notifications
flow_notifications copied to clipboard
No notification when a file is created
i set up two rules:
The same test-tag is beeing used. When I (using a shared link of a tagged folder) delete a file I get the push notification to my phone and the bell in the webgui lights up too - so far so good.
If i create a file I sadly dont get the notification pushed to my phone, the webgui "bell" works.
Any insight/help would be much appreciated.
System details: NC version: 20.0.8 Flow Notifications version: 1.0.3
Client details: iOS version: 14.4.1 Nextcloud app version: 3.3.0
Sincerly Calvin
→ https://github.com/nextcloud/flow_notifications/issues/15#issuecomment-786540605 ?
I am aware of that. I used a shared folder to test. The user which is doing the actions in this case is the "remote user". The notification bell is working, but i never got a file created message pushed to my phone.
Can anybody help me? I have not found any solution yet and really need the option to push notifiy users
Update: It still doesnt work, but I found out that this does not only apply to group folders, but normal folders as well.
I am still getting a notification when a file is deleted, but not when a file is created. Also tested this in one rule (trigger file is created + deleted in the same rule to be sure i didnt missconfigure it.
Any ideas/workarounds would mean a lot.
Maybe this is because of the rule itself? A file in creating process has no tag, it is tagged after creating. So this condition is never true.
You should use the trigger for "file tagged" instead of "file created".
Edit: I tested the trigger "file tagged" in a group folder that is tagged. I don't get a notification from creating a new file, so this solution isn't working too.
I use an other solution for get notified on files creation. Maybe this will help you.: Trigger : "file created" Rule: "file name" "is like" "/.*FolderName.*/"
I only got the bell but could not at all get the push to ios working. Instead i now call:
php /config/www/nextcloud/occ user:list | sed 's/.*- \(.*\):.*/\1/' | xargs -I STR php /config/www/nextcloud/occ notification:generate STR "MESSAGE"
With workflow_script each time a tag has been assigned. This triggers push on the phone.
Inspired by: https://github.com/nextcloud/notifications/issues/121#issuecomment-567952529
@wiegell this is not connected to this issue, is it?