push notifications

This commit is contained in:
2026-11-03 20:26:24 +05:30
parent a1b2b41912
commit 3ee348c09f
221 changed files with 9440 additions and 4899 deletions
+10
View File
@@ -145,6 +145,7 @@ public class LoginManager : MonoBehaviour
else
StartKeepalive();
#endif
PushNotificationService.EnsureCreated();
}
void Start()
@@ -238,7 +239,10 @@ public class LoginManager : MonoBehaviour
}, true));
if (ok)
{
PushNotificationService.OnGameSessionReady();
ProceedToMainMenu();
}
else
{
InvalidateStoredSession();
@@ -310,6 +314,11 @@ public class LoginManager : MonoBehaviour
/// <summary>Full logout, then reload the login scene so a fresh <see cref="LoginManager"/> can bind UI.</summary>
public static void LogoutAndReturnToLogin()
{
PushNotificationService.UnregisterThen(FinishLogoutAndReturnToLogin);
}
static void FinishLogoutAndReturnToLogin()
{
Logout();
AddressableSceneLoader.Load(AddressableSceneLoader.IntroScene);
@@ -735,6 +744,7 @@ public class LoginManager : MonoBehaviour
_pendingSessionPassword = null;
enteredMenu = true;
StartKeepalive();
PushNotificationService.OnGameSessionReady();
ProceedToMainMenu();
}
else