Addon WindowsPhonePush #221

Merged
gerhard6380 merged 2 commits from windowsphonepush into master 2014-10-31 14:41:36 +01:00
gerhard6380 commented 2014-10-17 13:38:11 +02:00 (Migrated from github.com)

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

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
fabrixxm commented 2014-10-17 15:28:50 +02:00 (Migrated from github.com)

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...

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...
gerhard6380 commented 2014-10-17 21:06:09 +02:00 (Migrated from github.com)

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.

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.
gerhard6380 commented 2014-10-20 22:13:18 +02:00 (Migrated from github.com)

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).

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).
fabrixxm commented 2014-10-22 10:15:54 +02:00 (Migrated from github.com)

Ok.

You should add a source "message.po" file. You can

cd [your friendica folder]/util
./run_xgettext.sh --addon windowsphonepush

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.

Ok. You should add a source "message.po" file. You can ``` cd [your friendica folder]/util ./run_xgettext.sh --addon windowsphonepush ``` 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.
gerhard6380 commented 2014-10-26 15:48:16 +01:00 (Migrated from github.com)

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?

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?
tobiasd commented 2014-10-26 16:44:03 +01:00 (Migrated from github.com)

On Sun, 26 Oct 2014 07:48:16 -0700
gerhard6380 notifications@github.com wrote:

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?

Not automatically, but it will be added there :-)

On Sun, 26 Oct 2014 07:48:16 -0700 gerhard6380 notifications@github.com wrote: > 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? Not automatically, but it will be added there :-)
Sign in to join this conversation.
No description provided.