WebView in Xamarin Forms - xamarin

I set following properties to show my Website on WebView in info.plist of iOS project. Now my website is opening on iOS project properly. Now I want to set same properties on Android projects to but I don't know similar solution in Android.manifest of android project.
My code for WebView is-
public HomePage()
{
InitializeComponent();
var browser = new WebView();
browser.Source = "http://m.ugoparty.com/";
Content = browser;
}

Am Im missing something here you don't need to change any properties in your android project the webview should load your site just fine in your android project those settings are only needed for your iOS project because ios 9.x prevent you from accessing non https urls

Related

How to navigate between Xamarin Android to Xamarin forms?

is there anyway to navigate from android and iOS specific activity to Xamarin forms Content page in PCL. I have tried nearly everything I could.
SetPage(App.RetryOkPage(imagebytes))
MessagingCenter
LoadApplication(app) where app = new App();
and app.MainPage =
new NavigationPage(new RetryOkPage(photoCropByte));
I am getting this error all the time.
'Binary XML file line #1: Binary XML file line #1: Error inflating class '

Download Zip file through SFSafariViewController or Webview in Xamarin iOS

I am loading SFSafariViewController in my Xamarin iOS and loading https://osdn.net/projects/sfnet_fotohound/downloads/sample-pictures/Sample/Sample-Pictures.zip/ this URL.
When I hit this URL in my Safari App, a Zip file is automatically downloaded and a Open In.. option comes.
BUT nothing happens when i load this url in my App in SFSafariViewController or Webview

How to open Dropbox app from an another App in IOS Xamarin?

I am trying to open the dropbox App from my app. Here I can link and upload the files into the dropbox correctly. I have a link button to dropbox in my app, on clicking this I can be redirected to the dropbox app, I am using the code below.
if (!UIApplication.SharedApplication.OpenUrl(NSUrl.FromString("testscheme://com.account.appname")))
{
NSString urlString = new NSString(Session.DropboxAPIHost);
NSUrl myFileUrl = new NSUrl(urlString);
UIApplication.SharedApplication.OpenUrl(myFileUrl)
}
But nothing will happening. I am new to xamarin Please suggest a solution
I think you can use url scheme to open dropbox.
I tried it and it works ~
//dbapi-1 is Dropbox url scheme
NSUrl appurl = NSUrl.FromString("dbapi-1:");
UIApplication.SharedApplication.OpenUrl(appurl);
And maybe you can see this
Does dropbox app on iOS has a URL scheme?

Why are my Xamarin UWP Images not showing up on device?

I am developing a Xamarin UWP app using ffimageloading. The images show up just fine on the Windows Phone emulator that I am running through Visual Studio, but when I deploy it to a device through the device portal all of the images are missing.
<ffimageloading:CachedImage Grid.Column="0" Grid.Row="1"
Source="{helpers:ImageResource MyProject.Assets.Images.music-doublenote.png}" />
The issue was the build configuration. By turning off "Compile with .NET Native tool chain" on the Build tab of Properties for the Release configuration of the main UWP app and deploying the app with WinAppDeployCmd.exe
I had the same problem whenever I kept the image file inside any folder (for. eg assests). But later i started keeping the images file in the main project folder; I didn't keep them inside any folders and they started to show up in the application.
To get "Compile with .NET Native tool chain" working you have to use UWP-specific overload of the Forms.Init call which allows to correctly include FFImageLoading assemblies for Xamarin.Forms usage:
// you'll need to add `using System.Reflection;`
List<Assembly> assembliesToInclude = new List<Assembly>();
//Now, add in all the assemblies your app uses
assembliesToInclude.Add(typeof (FFImageLoadingAssembliesHere).GetTypeInfo().Assembly);
//Also do this for all your other 3rd party libraries
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
// replaces Xamarin.Forms.Forms.Init(e);
I also had the issue with images not showing up on my UWP app. The images were showing up on my Android project but not UWP. For me the solution was to add the file extension. For some reason "myimage" works on Android but not on UWP, has to include the file extension like "myimage.png". Just wanna leave this here for anyone else potentially experiencing the same issue.

How to force kendoui mobile to use ios theme for Android

Is there a way to force kendoui mobile to use same ios theme of my application for both iOs and android.
Check the Kendo UI Mobile docs for how to force a platform style.
The theme can be set in the app initialization.
var app = new kendo.mobile.Application(document.body,
{
platform: "android"
});
as per http://docs.telerik.com/kendo-ui/api/mobile/application#configuration-platform

Resources