Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "alper"

In AppDelegate.cs class there's no call to UserConfigurationManager.GetAsync()

this code

 ApplicationBootstrapper.InitializeIfNeeds<AbpZeroTemplateXamarinIosModule>();

runs the below


 if (IsInitialized)
            {
                return;
            }

            AbpBootstrapper = AbpBootstrapper.Create<T>(options =>
            {
                //Interceptors (dynamic proxying) are not supported in IOS platform. Also, it's not needed on the client side.
                options.DisableAllInterceptors = true;
            });

            AbpBootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(f =>
            {
                f.LogUsing<TraceLoggerFactory>();
            });

            AbpBootstrapper.Initialize();

don't use WebRequestExecuter in AppDelegate.cs and use it as is.

duplicate of https://github.com/aspnetzero/aspnet-zero-core/issues/3558

hi,

you cannot run it in release mode, you can only run it in debug mode. if you want to see it in release mode, then you need to publish it as an APK. See https://support.aspnetzero.com/QA/Questions/5936/Build-Project-in-Release-Mode https://support.aspnetzero.com/QA/Questions/5346/deploying-mobile-app#answer-82a79ec1-b7dd-481b-a888-055862ffdb9a

firstly, you must run in Debug mode. Xamarin needs extra configuration for running in release mode...

Check that you have enabled "Use shared runtime"

result is null because it cannot get a response with the existing token.the host address maybe incorrect!

Did you configure DefaultHostUrl when you run it in Release mode.

check the host address in your device mobile browser that you can reach it.

@chrskrs wrote :

In UserConfigurationManager.GetIfNeedsAsync(), the following code is executed:

        await WebRequestExecuter.Execute(
            async () => await userConfigurationService.GetAsync(AccessTokenManager.IsUserLoggedIn),
            async result =>
            {
                AppContext.Value.Configuration = result;
                SetCurrentCulture();  

RELEASE MODE : result = null !!!! DEBUG MODE: result has a value

The app fails during this call : SetCurrentCulture(); I do not know whether this has to do with the null result in AppContext.Value.Configuration Unfortunately I do not know how to debug SetCurrentCulture(); as iI cannot make the call async and then the messages do not show

But I am fairly sure the error occurs in SetCurrentCulture() . ( UserConfigurationManager.cs)

Can you replace LoadPersistedSession method with the following So that we can understand what's the exception.

Mobile.Shared > App.xaml.cs

        public static void LoadPersistedSession()
        {
            var step = 0;

            try
            {
                var accessTokenManager = DependencyResolver.Resolve<IAccessTokenManager>();
                var dataStorageService = DependencyResolver.Resolve<IDataStorageService>();
                var applicationContext = DependencyResolver.Resolve<IApplicationContext>();
                step = 1;

                accessTokenManager.AuthenticateResult = dataStorageService.RetrieveAuthenticateResult();
                step = 2;

                applicationContext.Load(dataStorageService.RetrieveTenantInfo(), dataStorageService.RetrieveLoginInfo());
                step = 3;

            }
            catch (Exception e)
            {
                UserDialogs.Instance.Alert("Error step: " + step + ". Ex: " + e.ToString());
            }
        }

can you try to replace the L.Localize("Error") with simple text Error in the corresponding code part. if it solves, we can understand the issue better.

hi,

try this fix => https://support.aspnetzero.com/QA/Questions/9288/Xamarin-App-after-few-hours-of-inactivity-the-user-gets-an-error-Something-went-wrong#answer-e1306c5e-250f-9e99-dc04-39f7ad5fbd78

@Jorahealth, you can add your GitHub user to the AspNet Zero private GitHub repository. go to this link https://aspnetzero.com/LicenseManagement and add your GitHub username

Showing 11 to 20 of 1371 entries