Base solution for your next web application
Open Closed

Mobile application is getting crashed when application is in background for a while and also when we try to open it through notification #11015


User avatar
0
shedspotter created

What is your product version? 11.0.0

What is your product type (Angular or MVC)? Angular

What is product framework type (.net framework or .net core)? .NET 6

If issue related with ABP Framework

-What is ABP Framework version = 7.0.1

Hi , We are facing some issue in xamrin form.Andriod application is getting crashed in few cases:

  1. Android: If App is in killed mode an we open the App by clicking on Notification (for notification we are using firebase).
  2. Android: If App is in background for a while and we start the App from Recent App section.

Logs which we get from azure app center : AppCenter log:

DependencyResolver.Resolve[T] () System.NullReferenceException: Object reference not set to an instance of an object

DependencyResolver.Resolve[T] () App.OnStart () AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) SyncContext+<>c__DisplayClass2_0.<Post>b__0 () Thread+RunnableImplementor.Run () IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.35(intptr,intptr)

When we debug it We are getting null reference exception for ApplicationBootstrapper.AbpBootstrapper in DependencyResolver class. for getting this we have made some changs in "DependencyResolver" class rosolve method

public static T Resolve<T>() { if (ApplicationBootstrapper.AbpBootstrapper == null) throw new System.Exception("ApplicationBootstrapper.AbpBootstrapper is null"); if (ApplicationBootstrapper.AbpBootstrapper.IocManager == null) throw new System.Exception("ApplicationBootstrapper.AbpBootstrapper.IocManager is null"); return ApplicationBootstrapper.AbpBootstrapper.IocManager.Resolve<T>(); } so that we can find the exact root casuse

Please provide a solution asap.

Thanks


1 Answer(s)