Class RegistrationConstants
- Namespace
- RustPlusApi.Fcm.Registration
- Assembly
- RustPlusApi.Fcm.Registration.dll
Firebase / Expo / Rust Companion constants and endpoints for the registration flow.
[SuppressMessage("Minor Code Smell", "S1075:URIs should not be hardcoded", Justification = "These are the fixed Google/Expo/Facepunch API endpoints for the flow.")]
[SuppressMessage("Security", "S6418:Hard-coded secrets should not be used", Justification = "Firebase Web API keys are public client identifiers embedded in the app, not secrets.")]
public static class RegistrationConstants
- Inheritance
-
RegistrationConstants
- Inherited Members
Remarks
These values are read from liamcottle/rustplus.js (the fcm-register CLI) and the
@liamcottle/push-receiver source. They drift when Google/Facepunch change
their apps — if registration starts failing, re-check them against those upstream sources
rather than trusting this file. This is the most upstream-fragile code in the repo.
Fields
AndroidPackageCert
SHA-1 certificate fingerprint of the Rust Companion APK.
public const string AndroidPackageCert = "E28D05345FB78A7A1A63D70F4A302DBF426CA5AD"
Field Value
AndroidPackageName
Android package name of the Rust Companion app.
public const string AndroidPackageName = "com.facepunch.rust.companion"
Field Value
ApiKey
Firebase Web API key for the Rust Companion app (public client identifier, not a secret).
public const string ApiKey = "AIzaSyB5y2y-Tzqb4-I4Qnlsh_9naYv_TD8pCvY"
Field Value
CheckinUrl
GCM check-in endpoint (protobuf over HTTPS).
public const string CheckinUrl = "https://android.clients.google.com/checkin"
Field Value
ChromeVersion
Chrome identity used for the GCM check-in (mirrors push-receiver).
public const string ChromeVersion = "63.0.3234.0"
Field Value
CompanionRegisterUrl
Rust Companion device registration endpoint.
public const string CompanionRegisterUrl = "https://companion-rust.facepunch.com/api/push/register"
Field Value
ExpoProjectId
Expo project ID for the Rust Companion app used when requesting an Expo push token.
public const string ExpoProjectId = "49451aca-a822-41e6-ad59-955718d0ff9c"
Field Value
ExpoPushTokenUrl
Expo push token exchange endpoint.
public const string ExpoPushTokenUrl = "https://exp.host/--/api/v2/push/getExpoPushToken"
Field Value
FcmRegisterUrl
FCM token registration endpoint.
public const string FcmRegisterUrl = "https://android.clients.google.com/c2dm/register3"
Field Value
FirebaseInstallationsUrl
Firebase Installations Service (FIS) endpoint for the Rust Companion project.
public const string FirebaseInstallationsUrl = "https://firebaseinstallations.googleapis.com/v1/projects/rust-companion-app/installations"
Field Value
GcmSenderId
GCM sender ID (Firebase project number) for the Rust Companion app.
public const string GcmSenderId = "976529667804"
Field Value
GmsAppId
Google Mobile Services application ID for the Rust Companion Android app.
public const string GmsAppId = "1:976529667804:android:d6f1ddeb4403b338fea619"
Field Value
ProjectId
Firebase project identifier for the Rust Companion app.
public const string ProjectId = "rust-companion-app"
Field Value
SteamLoginUrl
Facepunch Steam login page for the Rust Companion OAuth flow.
public const string SteamLoginUrl = "https://companion-rust.facepunch.com/login"