Saturday, November 7, 2026
HomeiOS Developmentxamarin.kinds - Xamarin iOS dependency service information loss after leaving in background...

xamarin.kinds – Xamarin iOS dependency service information loss after leaving in background for some time

[ad_1]

I’ve construction like:

XamarinApp.csproj
  |-interfaces
    |-ISmth1
    |-ISmth2
iOS.csproj
  |-implemntation of interfaces with
  [assembly: Dependency(typeof(Smth))]
  public Smth : ISmth
Companies.csproj
  |-services utilizing DependencyService.Get< ISmth>()…

Every little thing works effective till iOS software goes to background for some time (roughly 10 minutes), once I come again, companies lose information from dependency service, however in “iOS” half it really works.. Solely in “Companies” it does not work, it crashes on null object exception when I attempt to get information from it.

Instance:
When i attempt to name dependency service from AppDelegate, it discover the information, however when I attempt to do the identical in a few of companies from Companies venture, it crashes..

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments