The SSL connection could not be established

Yes, you can Bypass the certificate using below code… HttpClientHandler clientHandler = new HttpClientHandler(); clientHandler.ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => { return true; }; // Pass the handler to httpclient(from you are calling api) HttpClient client = new HttpClient(clientHandler);

PushAsync is not supported globally on Android, please use a NavigationPage – Xamarin.Forms

You are calling “PushAsync”: public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); } private void btnCourseList_Clicked(object sender, EventArgs e) { Navigation.PushAsync(new PageB()); } } but you did not start the NavigationPage, which normally is done in the App.cs class, or at least it should be started before any call to “PushAsync”: MainPage … Read more

Toast equivalent for Xamarin Forms

There is a simple solution for this. By using the DependencyService you can easily get the Toast-Like approach in both Android and iOS. Create an interface in your common package. public interface IMessage { void LongAlert(string message); void ShortAlert(string message); } Android section [assembly: Xamarin.Forms.Dependency(typeof(MessageAndroid))] namespace Your.Namespace { public class MessageAndroid : IMessage { public … Read more

What is the difference between Xamarin.Forms and Xamarin Native? [closed]

Xamarin.Forms Pros Create one UI for all platforms Use basic components that are available on all platforms (like Buttons, Textfields, Spinners etc.) No need to learn all the native UI frameworks Fast cross platform development process Custom native renderers give you the ability to adjust the appearance and feeling of controls Cons It’s still a … Read more

What is the difference between Xamarin.Form’s LayoutOptions, especially Fill and Expand?

Short answer Start, Center, End and Fill define the view’s alignment within its space. Expand defines whether it occupies more space if available. Theory The structure LayoutOptions controls two distinct behaviors: Alignment: How is the view aligned within the parent view? Start: For vertical alignment the view is moved to the top. For horizontal alignment … Read more