Addon WindowsPhonePush #221
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
2025.02
2025.05
dependencies
Hackathon 2021
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#221
Loading…
Reference in a new issue
No description provided.
Delete branch "windowsphonepush"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Addon serves 3 tasks: 1) deliver settings in json format 2) update
settings with the device URL 3) cron-hook to regularly check and push
new entries
Instead of the cron hook, can't you use hooks "post_remote" / "post_local" ?
Your code will be called only when there is something new to notify to the user...
The idea behind the cron (instead of post__) was to keep the number of notifications lower if there are more than one new posts since last run. The maximum on Microsoft's push notification server is 30 notifications. This threshold could easier be reached if every single post__ run leads to a separate notification.
I forgot, there is another reason why I use the cron hook: if you have i.e. 4 unseen items, you get the count "4" pushed to the phone, which is shown on start screen on the App Icon. If you than open your profile on another device with a browser, you have seen the new items and the count should become "0". So if I would use the post_* only, the count get only updated on the next arrived new item, which could confuse the user. But with cron hook, the count get reset at the next cron run (assuming that no new items arrived meanwhile).
Ok.
You should add a source "message.po" file. You can
This will create
lang/C/messages.po
in your addon folder. This file will be added to Transifex ( https://www.transifex.com/projects/p/friendica/ ) where all translations are updated.Once in a while the language team coordinator will update the translation back in git.
The same command can be used to recreate the
lang/C/messages.po
file if you change something. Transifex will automagically update after the merge on github.I ran the script and commited the created messages.po file to the pull request here. Will the file now be loaded to Transifex automatically?
On Sun, 26 Oct 2014 07:48:16 -0700
gerhard6380 notifications@github.com wrote:
Not automatically, but it will be added there :-)