JRoberts
09b51dc44f
ntf: retry to deliver notification with new push client ( #437 )
...
* ntf: retry to deliver notification with new push client
* update statuses
* remove token update
* increase tokenTTL
2022-06-28 22:03:06 +04:00
Evgeny Poberezkin
85d507d5d3
ntf-server store log ( #435 )
...
* ntf-server store log
* ntf serevr: restore log when server is started, save compacted store log
* log ntf server store changes
* test, store log works
* update ntf-server exe
2022-06-28 17:10:50 +01:00
Evgeny Poberezkin
b0ac0744e2
fix server ACK for v1 SMP clients ( #436 )
...
* fix server ACK for v1 SMP clients
* add import
2022-06-28 15:36:02 +04:00
Evgeny Poberezkin
ba40d75886
verifyNtfToken: change args order ( #434 )
2022-06-27 19:33:36 +01:00
Evgeny Poberezkin
0c7c0d066d
support dev/prod APNS hosts ( #433 )
...
* support dev/prod APNS hosts
* fix test
2022-06-27 19:20:23 +01:00
JRoberts
3d6ad64d62
ntf: registerNtfToken rework, notification modes ( #431 )
...
* check mode for new subscriptions
* check token inside actions
* migration - apple -> apns
* wip
* register logic, modes
* update mode, cron config, verify token changes
* refactor
* fix test
* NTFMODE
* server: delete subscriptions on deleteToken
* refactor markNtfSubscriptionForDeletion
* remove NTFMODE
* remove subscriptions when token is deleted
* refactor
* lint
* test
* check ntfMode
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2022-06-27 21:54:35 +04:00
Evgeny Poberezkin
51d0b48ce1
suspend/activate agent ( #432 )
...
* suspend/activate agent
* deliver pending messages before agent is suspended
* refactor
2022-06-26 14:15:33 +01:00
Evgeny Poberezkin
a8260290e7
token encodings ( #430 )
2022-06-25 16:17:39 +01:00
JRoberts
2809963a2e
ntf: register token with NotificationsMode ( #429 )
2022-06-25 17:34:08 +04:00
Evgeny Poberezkin
d2321b750d
get/set notification mode ( #428 )
...
* get/set notification mode
* update method
2022-06-25 14:48:15 +04:00
Evgeny Poberezkin
c2f1dabcd0
fix agent phase, test ( #427 )
2022-06-25 08:13:07 +01:00
JRoberts
9e0e6b1afc
ntf: server retry to deliver notification ( #426 )
...
* ntf: server retry to deliver notification
* refactor
* Update src/Simplex/Messaging/Notifications/Server.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2022-06-24 20:40:35 +04:00
JRoberts
58622c6aaf
ntf: catch worker errors ( #425 )
2022-06-24 20:40:25 +04:00
Evgeny Poberezkin
b82452fe03
add category to mutable content notification ( #424 )
2022-06-24 15:35:50 +01:00
JRoberts
70e7c71762
ntf: read rcv queue separately from ntf subscription, fix deletion race condition ( #423 )
2022-06-24 16:51:42 +04:00
JRoberts
a92827c986
ntf: notification server SDEL command; subscription deletion in agent ( #421 )
2022-06-23 17:05:43 +04:00
Evgeny Poberezkin
f10e3f697c
notification server TRPL command ( #420 )
...
* notification server TRPL command
* test
* client methods
* only remove current token registration
2022-06-23 08:35:33 +01:00
JRoberts
ef4d4c9e16
ntf: remove notification subscription ( #417 )
2022-06-22 20:32:32 +04:00
Evgeny Poberezkin
ffb4b4763c
allow repeated NKEY ( #419 )
...
* allow repeated NKEY
* test
2022-06-22 14:00:46 +04:00
Evgeny Poberezkin
0d9d549cea
unlock next GET with ACK ( #418 )
2022-06-22 08:12:18 +01:00
JRoberts
d78fb8761e
ntf: change default port for notifications server SMP client agent ( #415 )
2022-06-21 17:45:28 +04:00
JRoberts
08a4b41691
v2.3.2 ( #414 )
2022-06-21 12:47:40 +04:00
JRoberts
7a72488275
ntf: use separate key to encrypt NMsgMeta ( #410 )
...
* ntf: use separate key to encrypt NMsgMeta
* key negotiation
* save key on server, use for encryption
* refactor?
* store error
* NtfQueueCreds
* server - NtfCreds
* comment, rename
* fix type
* ClientNtfCreds
* encoding
2022-06-20 17:16:26 +04:00
Evgeny Poberezkin
7fa4862a83
Merge branch 'master' into f/notifications
2022-06-19 18:51:36 +01:00
Evgeny Poberezkin
0ab44b1836
get multiple messages when notification is processed ( #411 )
...
* get multiple messages when notification is processed
* change notification property
2022-06-19 13:23:35 +01:00
Evgeny Poberezkin
d1db7d6f79
withStore runs in a single transaction ( #408 )
...
* remove store typeclass
* make withStore run single transaction
* combine 2 store calls
* refactor
* add exports
* fix catch
* correction
2022-06-18 18:01:04 +01:00
JRoberts
ec70429106
ntf: getNotificationMessage' ( #406 )
...
* ntf: getNotificationMessage'
* refactor
* ntfTs
* fix parser
* length
* fix test
* fix encryption, test
* remove test focus
* getActiveNtfToken
* rename
* Update src/Simplex/Messaging/Protocol.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* getNtfRcvQueue
* refactor
* don't fail
* Update src/Simplex/Messaging/Notifications/Protocol.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* Update src/Simplex/Messaging/Notifications/Server.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* Update src/Simplex/Messaging/Server.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* import
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2022-06-18 18:21:35 +04:00
JRoberts
31c78e516d
remove FQHN validation during TLS handshake ( #409 )
2022-06-17 20:25:13 +04:00
Evgeny Poberezkin
b58523d4a2
v2.3.1
2022-06-16 17:17:08 +01:00
Evgeny Poberezkin
9f981042b9
v2.3.1
2022-06-16 17:15:16 +01:00
Evgeny Poberezkin
bca44ae54a
Merge branch 'master' into f/notifications
2022-06-16 15:41:30 +01:00
Evgeny Poberezkin
50ddcd3a13
log weekly and monthly active queues ( #404 )
...
* log weekly and monthly active queues
* update
2022-06-16 15:35:45 +01:00
JRoberts
3336f987c3
ntf: SCHK, cancel actions on errors, wait until action ts before executing ( #402 )
...
* SCHK
* NSACheck
* updateSubFutureTs
* dont execute too early
* fix diffTimeToMillis
* rename function
* errors
* nested status
* increase ntfSubCheckInterval
* adjust import
* Update src/Simplex/Messaging/Agent/NtfSubSupervisor.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* Update src/Simplex/Messaging/Agent/NtfSubSupervisor.hs
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
* refactor rescheduleAction
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2022-06-16 16:11:46 +04:00
Evgeny Poberezkin
1d56ef3a60
agent method to GET message ( #403 )
...
* agent method to GET message
* correction
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
2022-06-16 12:35:17 +01:00
Evgeny Poberezkin
0c45e0bf76
Merge branch 'master' into f/notifications
2022-06-16 08:49:26 +01:00
Evgeny Poberezkin
5ccebaeb21
fix transport (treat "" as eof, remove threadId), upgrade TLS to 1.6.0 ( #401 )
2022-06-16 08:49:07 +01:00
Evgeny Poberezkin
5f94240ed4
remove DB connection pool to prepare for using semaphores ( #400 )
2022-06-15 14:11:03 +01:00
JRoberts
331918bac7
ntf: agent tests ( #399 )
2022-06-15 14:22:55 +04:00
JRoberts
f7bd8a3982
ntf: agent ntf workers implementation, store methods ( #394 )
2022-06-14 14:34:18 +04:00
Evgeny Poberezkin
68c2682e70
ios: synchronizing processing between app & nse ( #398 )
...
* ios: synchronizing processing between app & nse
* update rfc
* add sequence diagram
* manage agent phase
* track agent operation and phase changes
* update
* remove APInactive
* Update src/Simplex/Messaging/Agent/Protocol.hs
Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com >
2022-06-14 13:27:45 +04:00
Evgeny Poberezkin
62485b9367
re-deliver duplicate message if it was not acknowledged by the user, ignore otherwise ( #397 )
...
* re-deliver duplicate message if it was not acknowledged by the user, ignore otherwise
* delete message after ACK
2022-06-13 08:27:08 +01:00
Evgeny Poberezkin
91802fe94f
Merge branch 'master' into f/notifications
2022-06-12 16:49:56 +01:00
Evgeny Poberezkin
0a71822dd0
v2.3.0: save and restore messages when the server is restarted ( #395 )
...
* save and restore messages when server is restarted
* read file line by line
* add import
* optmize restoring messages by reading the whole file
* update version to 2.3.0
* update scripts
* add script
* update readme
2022-06-12 15:59:14 +01:00
JRoberts
9c12b4edc0
ntf: agent spike, NtfSupervisor ( #392 )
...
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com >
2022-06-10 16:35:06 +04:00
Evgeny Poberezkin
c1348aa54f
SMP connection handshake v2 ( #390 )
...
* SMP connection handshake v2
* hadshake v2 [mostly] works
* all tests pass, some race conditions remain
* fix build
* fix race conditions, send CON after all HELLOs in duplexHandshake mode
* add comments
* comment
* add comments
2022-06-09 13:47:07 +01:00
Evgeny Poberezkin
4220c3bdaf
Merge branch 'master' into f/notifications
2022-06-08 09:49:58 +01:00
Evgeny Poberezkin
7736ef8576
v2.2.1
2022-06-08 09:08:34 +01:00
Evgeny Poberezkin
80309a0089
fix possible leak ( #391 )
...
* fix possible leak
* remove subscriptions map from the client
2022-06-08 08:59:12 +01:00
JRoberts
bfb556c860
ntf: test notification subscription ( #389 )
2022-06-07 19:14:51 +04:00
Evgeny Poberezkin
3f985e8fd7
Merge branch 'master' into f/notifications
2022-06-07 14:17:05 +01:00