aboutsummaryrefslogtreecommitdiffstats
path: root/src/standardPush/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-05-17 21:12:34 +0200
committerChristian Schneppe <christian@pix-art.de>2018-05-17 21:12:34 +0200
commitb245b8af5cd903c70d34841d7e871d5bfb4067fb (patch)
tree431173a75154337ee9a850d245bb700e8913b698 /src/standardPush/java/de/pixart/messenger
parenta68be2f67ea5472dd17611e4cd4a4acf6acdef5f (diff)
changed jid of push server
Diffstat (limited to 'src/standardPush/java/de/pixart/messenger')
-rw-r--r--src/standardPush/java/de/pixart/messenger/services/PushManagementService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/standardPush/java/de/pixart/messenger/services/PushManagementService.java b/src/standardPush/java/de/pixart/messenger/services/PushManagementService.java
index 2d3ec0ee2..b68cec70e 100644
--- a/src/standardPush/java/de/pixart/messenger/services/PushManagementService.java
+++ b/src/standardPush/java/de/pixart/messenger/services/PushManagementService.java
@@ -20,7 +20,7 @@ import rocks.xmpp.addr.Jid;
public class PushManagementService {
- private static final Jid APP_SERVER = Jid.of("push.siacs.eu");
+ private static final Jid APP_SERVER = Jid.of("p2.siacs.eu");
protected final XmppConnectionService mXmppConnectionService;
@@ -31,8 +31,8 @@ public class PushManagementService {
void registerPushTokenOnServer(final Account account) {
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": has push support");
retrieveGcmInstanceToken(token -> {
- final String deviceId = Settings.Secure.getString(mXmppConnectionService.getContentResolver(), Settings.Secure.ANDROID_ID);
- IqPacket packet = mXmppConnectionService.getIqGenerator().pushTokenToAppServer(APP_SERVER, token, deviceId);
+ final String androidId = PhoneHelper.getAndroidId(mXmppConnectionService);
+ IqPacket packet = mXmppConnectionService.getIqGenerator().pushTokenToAppServer(APP_SERVER, token, androidId);
mXmppConnectionService.sendIqPacket(account, packet, (a, p) -> {
Element command = p.findChild("command", "http://jabber.org/protocol/commands");
if (p.getType() == IqPacket.TYPE.RESULT && command != null) {