aboutsummaryrefslogtreecommitdiffstats
path: root/src/standardPush/java/de
diff options
context:
space:
mode:
Diffstat (limited to 'src/standardPush/java/de')
-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) {