push notifications
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user