Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit ae7db5d

Browse files
committed
update to ejabberd 18.01
1 parent dfeda40 commit ae7db5d

7 files changed

+254
-461
lines changed

client.py

100644100755
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env nix-shell
2+
#! nix-shell -i python -p python python2Packages.sleekxmpp
23
import logging
34
import sys
45
import base64
@@ -91,6 +92,7 @@ def _command_error(self, iq, session):
9192
def usage():
9293
print >>sys.stderr, 'usage: client.py jid password text jid msg'
9394
print >>sys.stderr, 'usage: client.py jid password register-push-apns token'
95+
print >>sys.stderr, 'usage: client.py jid password register-push-fcm token'
9496
print >>sys.stderr, 'usage: client.py jid password list-push-registrations'
9597
print >>sys.stderr, 'usage: client.py jid password unregister-push'
9698
sys.exit(1)

include/mod_pushoff.hrl

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-type bare_jid() :: {binary(), binary()}.
2+
-type backend_type() :: apns | fcm.
3+
-type backend_id() :: {binary(), backend_type()}.
4+
5+
-record(pushoff_registration, {bare_jid :: bare_jid(),
6+
token :: binary(),
7+
backend_id :: backend_id(),
8+
timestamp :: erlang:timestamp()}).
9+
10+
-type pushoff_registration() :: #pushoff_registration{}.

mod_pushoff.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
author: "Vlad Ki <[email protected]>"
22
category: "service"
3-
summary: "Push Notifications for Offline Messages"
3+
summary: "APNS/FCM Push Notifications for Offline Messages"
44
home: "https://github.com/proger/mod_pushoff"
55
url: "https://github.com/proger/mod_pushoff"

0 commit comments

Comments
 (0)