Not working in release mode

Hi,

Not working in release mode. Any render stuff to be added, please let me know how and where I could do that?

Thanks and regards,
John 

4 Replies

SG Sri Gayathri Gopalakrishnan Syncfusion Team May 30, 2018 01:03 PM UTC

Hi John,  
 
Thanks for contacting Syncfusion support.  
 
We are unable to reproduce the reported problem as “circular gauge not shown in release mode” in our basic scenario. When you initialize the circular gauge with scale below appearance will be shown.  
  
Could you please ensure “Deploy” option enabled in your project configuration? 

 
 
Since we are not aware of the exact scenario in which issue reproduced, we would like to know the following details to provide you the solution sooner,  
-          Your application codes  
-          Application properties and configuration details 
-          Whether you run your application with device or emulator.  
-          Android API version and device details 
 
Regards, 
Sri Gayathri. G 



JS John Stephen Mangam May 30, 2018 01:09 PM UTC

Hi Sri Gayathri,

Could you please let me know where and how I could add renderer for release mode to work?

Thanks and regards,
John


JS John Stephen Mangam May 30, 2018 01:50 PM UTC

Hi Sri Gayathri,

I have a difficulty with adding the renderer in MainActivity.cs:

 protected override void OnCreate(Bundle bundle)
        {
            
            base.OnCreate(bundle);
            List assembliesToInclude = new List();
            assembliesToInclude.Add(typeof(Syncfusion.SfGauge.XForms.Droid.SfGaugeRenderer).GetTypeInfo().Assembly);
            assembliesToInclude.Add(typeof(Syncfusion.SfBusyIndicator.XForms.Droid.SfBusyIndicatorRenderer).GetTypeInfo().Assembly);
            assembliesToInclude.Add(typeof(Syncfusion.SfNavigationDrawer.XForms.Droid.SfNavigationDrawerRenderer).GetTypeInfo().Assembly);
          // how to pass assembliesToInclude 
            global::Xamarin.Forms.Forms.Init(this, bundle); 
}

Please help.

Thanks and regards,
John


SG Sri Gayathri Gopalakrishnan Syncfusion Team May 31, 2018 12:46 PM UTC

Hi John, 
 
Query: where and how I could add renderer for release mode to work? 
 
We have provided last update for Xamarin.Android as per your selected platform in this thread. In Xamarin.Forms, we no need to add any renderer for Android. By default, android will run properly in both release and debug mode. For iOS and UWP, need to add control renderer, since Xamarin does not load the renderer assemblies by default. You can manually load it by creating an instance of SfGaugeRenderer class in the respective projects. Please refer the following article, 
 
To render the UWP project in release mode, we must pass the custom renderer assemblies to Init method in OnLaunched method of App.Xaml.cs file. Please refer the following link, 
We have prepared the simple circular gauge Xamarin application. Please find the sample in below location.  
Sample:  
 
Regards, 
Sri Gayathri. G 


Loader.
Up arrow icon