mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-26 12:16:07 +01:00
ios resumed
This commit is contained in:
parent
4bc837509d
commit
4b4757d0e5
@ -114,7 +114,7 @@ namespace Bit.App
|
||||
{
|
||||
if(Device.RuntimePlatform == Device.iOS)
|
||||
{
|
||||
SyncIfNeeded();
|
||||
ResumedAsync();
|
||||
}
|
||||
}
|
||||
else if(message.Command == "migrated")
|
||||
@ -179,13 +179,18 @@ namespace Bit.App
|
||||
protected async override void OnResume()
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine("XF App: OnResume");
|
||||
if(Device.RuntimePlatform == Device.Android)
|
||||
{
|
||||
ResumedAsync();
|
||||
}
|
||||
}
|
||||
|
||||
private async void ResumedAsync()
|
||||
{
|
||||
_messagingService.Send("cancelLockTimer");
|
||||
await ClearCacheIfNeededAsync();
|
||||
Prime();
|
||||
if(Device.RuntimePlatform == Device.Android)
|
||||
{
|
||||
SyncIfNeeded();
|
||||
}
|
||||
SyncIfNeeded();
|
||||
if(Current.MainPage is NavigationPage navPage && navPage.CurrentPage is LockPage lockPage)
|
||||
{
|
||||
await lockPage.PromptFingerprintAfterResumeAsync();
|
||||
|
@ -146,7 +146,7 @@ namespace Bit.iOS
|
||||
|
||||
public override void WillEnterForeground(UIApplication uiApplication)
|
||||
{
|
||||
_messagingService.Send("Resumed");
|
||||
_messagingService.Send("resumed");
|
||||
base.WillEnterForeground(uiApplication);
|
||||
}
|
||||
|
||||
@ -194,7 +194,7 @@ namespace Bit.iOS
|
||||
_pushHandler = new iOSPushNotificationHandler(
|
||||
ServiceContainer.Resolve<IPushNotificationListenerService>("pushNotificationListenerService"));
|
||||
_nfcDelegate = new NFCReaderDelegate((success, message) =>
|
||||
_messagingService.Send("GotYubiKeyOTP", message));
|
||||
_messagingService.Send("gotYubiKeyOTP", message));
|
||||
|
||||
var crashManagerDelegate = new HockeyAppCrashManagerDelegate(
|
||||
ServiceContainer.Resolve<IAppIdService>("appIdService"),
|
||||
|
Loading…
Reference in New Issue
Block a user