Questions tagged [application-lifecycle]

It is usually used in enterprise programming contexts where application, session and request scopes (lifecycles) can be distinguished. In this case specific objects (e.g. an EJB if speaking about Java EE) can have different lifecycles according to these scopes managed by the container infrastructure.

221 questions
2
votes
0 answers

How to resolve registered services(worker objects) in an android service using mvvmcross?

I'm trying to use mvvmcross in a android service, this is the code : public interface IMyWorkerObject { void ShowNotificationIcon(); } [Service] public class MyAndroidService : Service { private Thread myThread; public override void…
Ehsan Zargar Ershadi
  • 24,115
  • 17
  • 65
  • 95
2
votes
1 answer

Sinatra/Rails: Persisting custom class instances during app lifetime

Can I assert rails/sinatra apps are initialized only once and all requests share the same app instance? or do new requests spawn new app instances? Is it possible to instance custom classes and persist them during app lifetime without using…
knoopx
  • 17,089
  • 7
  • 36
  • 41
2
votes
1 answer

How do I tell my page that the app has been resumed?

According to J. Likness on page 166 of "Building Windows 8 Apps with C# and XAML," in speaking of the OnResuming event: "The main reason [for this event ] is for applications that provide timely data to refresh their information." I have one page in…
2
votes
1 answer

Why would the Application_Start method being called a lot on my ASP.NET web service?

I have an ASP.NET Web Service (SOAP style) that is running in our production environment. Our server guys have set things up such that things like starting and stopping of Windows services, etc., are sent via email to the appropriate parties.…
Tom Kidd
  • 12,830
  • 19
  • 89
  • 128
1
vote
2 answers

Need singleton variable to be updated based on a timer in asp.net mvc application

I have a variable (custom object) in a singleton that I want to update based on a timer. So, every 30 minutes I would get the new values from the database and update this variable. Eventual consistency between various servers is the only thing…
rksprst
  • 6,471
  • 18
  • 54
  • 81
1
vote
1 answer

signalr method not being triggered in onSleep event xamarin.forms

i am trying to implement a way to detect the user's status if online or offline. so i used the lifecycle events in xamarin.forms. i set online flag to false when the app goes to the background, then send it using a signalr hub method: async …
1
vote
0 answers

Animation library is giving me this error about lifecycle state

Animation library is giving me this error about lifecycle state-- 'package:flutter/src/widgets/framework.dart': Failed assertion: line 4519 pos 12: '_lifecycleState != _ElementLifecycle.defunct': is not true. is was getting this error when i used…
1
vote
0 answers

Is it possible to manually control the flutter AppLifeCycleState?

Is it possible to manually control the flutter AppLifeCycleState? @override void didChangeAppLifecycleState(AppLifecycleState state) { switch (state) { case AppLifecycleState.resumed: debugPrint("Colorun - resumed"); …
안태준
  • 21
  • 3
1
vote
0 answers

ASP.NET Core 6 application lifetime on IIS - Startup.Configure firing multiple times

I have an ASP.NET Core 6 app running on IIS using the inProcess mode. In my Startup Class in the Configure method, I register for application lifetime…
Stephan Steiner
  • 1,043
  • 1
  • 9
  • 22
1
vote
1 answer

Does the iOS open all apps after a reboot?

I've turned off my iPhone. Then I turn it back on. I have my phone connected to the macOS console. I filter by process:SomeAppName And about 1 minute after reboot, I see app name appear with that filter. Is that expected?
mfaani
  • 33,269
  • 19
  • 164
  • 293
1
vote
0 answers

Vue JS lifecycle in iPadOS prevents alerts

The alert function does work in iPadOS, but when wrapped in Vue lifecycle methods - it is prevented. Curious to understand why and what is going on. Simplest example:

Alert

new Vue({ el: "#app", created() { …
JackLeo
  • 4,579
  • 9
  • 40
  • 66
1
vote
1 answer

Proper way to unregister a callback from an Application class

I have implemented a custom Application class in my app which handles updating the app theme before the app start up. I also registered a network callback to set a variable each time there is a connection change. My application class is as…
Mervin Hemaraju
  • 1,921
  • 2
  • 22
  • 71
1
vote
1 answer

Android Navigation Component - Store/Access Data throughout App Lifecycle

In Android, we can use Singleton pattern to store data that we require across multiple activities during the whole app lifecycle. This is considered a memory leak and has its cons, but practically speaking, this approach is used widely (at least in…
1
vote
3 answers

Every time open splash screen when application is resumed from background like WhatsApp fingerprint screen

I want to open a screen which contains an image and when my application is resumed then I want to show that screen. But the problem is, it shows the white screen first when the application is resumed. How to remove that white screen and open like…
1
vote
2 answers

Xamarin Native equivalent of Xamarin.Forms App OnSleep and OnResume

I'm working with a Xamarin Native application, and would like to perform some logic when the application is focused / out of focused in android - similar to Xamarin.Forms Application.OnSleep(), and Application.OnResume() (not to be confused with…