Skip to content

UnifiedPush uses third-party gateway server #362

@WGH-

Description

@WGH-

I assume that UnifiedPush implemention was taken from MercuryGram mostly as is, including the use of third-party simple push gateway hosted on https://p2p.belloworld.it/:

@Override
public void onNewEndpoint(Context context, String endpoint, String instance){
Utilities.globalQueue.postRunnable(() -> {
SharedConfig.pushStringGetTimeEnd = SystemClock.elapsedRealtime();
String savedDistributor = UnifiedPush.getSavedDistributor(context);
if (savedDistributor.equals("io.heckel.ntfy")) {
PushListenerController.sendRegistrationToServer(PushListenerController.PUSH_TYPE_SIMPLE, endpoint);
} else {
try {
PushListenerController.sendRegistrationToServer(PushListenerController.PUSH_TYPE_SIMPLE, "https://p2p.belloworld.it/" + URLEncoder.encode(endpoint, "UTF-8"));
} catch (UnsupportedEncodingException e) {
FileLog.e(e);
}
}
});
}

Telegram is supposed to support Web Push directly, without third-party gateway. MercuryGram however claims that Web Push is unreliable. Perhaps that's true, but relying on random third-party gateway server isn't ok either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions