18 lines
484 B
Java
18 lines
484 B
Java
package app.fedilab.android.services;
|
|
|
|
import android.content.Context;
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.unifiedpush.android.connector_fcm_added.GetEndpointHandler;
|
|
|
|
public class HandlerFCM implements GetEndpointHandler {
|
|
|
|
@Override
|
|
public @NotNull String getEndpoint(@Nullable Context context, @NotNull String token, @NotNull String instance) {
|
|
return "https://gotify.fedilab.org/UP?token=" + token;
|
|
}
|
|
|
|
|
|
} |