Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 91519 articles
Browse latest View live

Xamarin forms Authentication how?

$
0
0

How do you people do authentication using google and facebook ? It seems to be very problematic and there is not easy way.
1) using web login (looks ugly but easiest way)
2) using native login (looks good, increases your app size and so much native programming)

which one is better out of these? microsoft claim, it is better to use web login as they provide for Azure Active Directory B2C
Which technology?
1) Xamarin Auth : full of open issues on their github. last time I tried UWP was failing.
2) Azure Mobile Services: this was the only working option for me last time I tried but I dont know after google changing their policy, how it works? because it was working based on webview and didnt didnt support native browser.
3) Azure Active Directory B2C: It looks like that it is the easiest solution but way toooooooooo expensive for poor developers.
5) Aspnet membership with custom web api. I achieved this very quick with own username password. very simple but external logins looks like impossible.
4) Others

Please share your thoughts and how you implemented?


Refit - How to set string array parameters for url

$
0
0

I have a url with the array parameter as follows: "?fields=[%27name%27,%27age%27,%27address%27]". I get a 500 error message when I put that string into the Interface parameter. Can anyone help me with this problem? Here is my code:
public interface IRestClient
     {
         [Get ("/ api / v1.0 / persons")]
         Task GetPersons (string fields);
     }
Here is the parameter string I want to include:
string fields = "%5B%27name%27%2C%27phone%27%2C%27mobile%27%2C%27website%27%2C%27street%27%2C%27street2%27%2C%27email%27%2C%27id%27%2C%27commercial_company_name%27%2C%27company_name%27%2C%27image%27%5D";

Xamarin Forms Master/Detail many pages (ContentPage)

$
0
0

Hi to all,
It is my 1st attempt in Master/Detail for Xamarin forms, so sorry for my newbie questions.
I have made a MasterDetailPage my code :

</p> <pre><code><MasterDetailPage.Master > <ContentPage Title="aaa"> <ContentPage.Content> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Button x:Name="SettingsBT" Grid.Row="1" Text="Ρυθμίσεις" Clicked="SettingsBT_Clicked" /> <Button x:Name="AboutBT" Grid.Row="2" Text="About" Clicked="AboutBT_Clicked" /> </Grid> </ContentPage.Content> </ContentPage> </MasterDetailPage.Master> <MasterDetailPage.Detail> <views:DetailPage /> </MasterDetailPage.Detail>

In my Master Page I have 2-3 buttons which I want to open ContentPages for my App SettingsPage, AboutPage etc.
In my Code behind I cannot have "Navigation.PushAsync" because Xamarin complains about not being "NavigationPage".
How can I have several pages from Master Page ?
Thanks in advance

How to implement a login with facial recognition?

$
0
0

Hi guys,

Do you know a way to implement a login with facial recognition in Xamarin Forms?
I´m trying show a stream from webcam emulating phone´s cams with Nuget Xam.Plugin.Media but I couldn´t get nothing.

Greetings.

How to force PLUS sign in the Entry?

$
0
0

Hi,

I want to ask how can I force a PLUS sign in the Entry to be used to enter phone number?

So user can't remove the + but he can just write numbers after the plus sign?

Thanks,
Jassim

InitializeComponent does not exist in the current context error

$
0
0

Hi,

The error CS0103 (The name 'InitializeComponent' does not exist in the current context) has started appearing after doing a build of our Xamarin Forms solution. The build, however, appears to have succeeded in spite of this error message?

This started happening after adding the first XAML ContentPage to the PCL project. If I remove the XAML ContentPage then the error disappears.

I've tried installing the latest Alpha channel update on both my Windows (Visual Studio) machine and my Mac build host but it hasn't made any difference.

Please advise ASAP as we would like to use XAML for our ContentPages but may have to revert to using C# code to build the UI if the XAML approach is not viable.

Regards,
Andy

Help: Upgrading from 2.3.4 to 3.0. Android Contents are offset downwards

$
0
0

I had to update a year-old app to the current version of forms. Unfortunately on Android, it seems to think the screen is taller then it actually is (see screen shot). Everything is working just fine for iOS, but all my pages are slightly taller than the screen on Android on multiple devices.

Some things I have tried:

  • Made sure I'm using the latest SDK's and latest Android Support files
  • Hacked in a padding (worked on modal pages, not on MainPage)

Layout description:
Depends on the idiom: On a phone, it's a MasterDetail with a Tabbed Page as Detail, a Navigation Page for the first Child of Tabbed Page (so Menu appears for only that page), and Content Pages for the rest. For Tablet, the Children of the Tabbed pages are all Content Pages. Modal Pages are all Content Pages.

Any help on this would be greatly appreciated.

Google sign in not working in Android

$
0
0

I have implemented native Google sign-in into one of my Xamarin Forms project using page renderer for Android. Till now its working fine but now it isn't. I used GoogleSignInOptions class.

In Activity Result

GoogleSignInResult result = Auth.GoogleSignInApi.GetSignInResultFromIntent(e.Data);

result.IsSuccess always false. Prior it working fine. I have checked with my Google developer console and everything is just fine nothing changed there.

Please help.


Merge ResourceDictionary programmatically by reading it from iOS/Android (Documents) directory...

$
0
0

Hi, is there any way to merge or load resource dictionary programmatically by providing source as URI from iOS/Android directory xaml path?

Doubt about time of automatic update after publishing my app

$
0
0

Hello guys.
My clients recently said to me that they are not receiving the automatic update of my app after i publish on apple store or google play store.
I dont know why, is there a time between publishing the app and the update trigger for all the devices that has the app installed on their devices?

Thanks

Anyone else have missing XAML intellisense on newest projects?

$
0
0

Visual Studio 2017 v 15.7.2
If I open an older project my XAML intellisense is fine:

A brand-new "Welcome to Xamarin" off the latest templates... Plus "Xamarin Reload" if that matters... And no intellisense... No recognition that anything is wrong even if I give a property of Wonk .

Anyone else seeing that?

ZXing Crashes At LoadApplication

$
0
0

I'm having a problem where the ZXing.Net.Mobile.Forms is causing my app to crash at LoadApplication(new App()); At first I was trying to integrate the package into an existing solution. So, I tried creating a new one with the same results.

If I remove ZXing.Net.Mobile.Forms and just have ZXing.Net.Mobile installed, the app works just fine.

As always, thanks for any help.

rotation messes up label

$
0
0

I have a

I have tried playing around with xaml, but the label just keeps getting truncated. Makes no sense.

Years ago I did some Windows CE and Windows Mobile development. Really nice platforms to work on, logical and well thought out.

Xamarin LiveReload - Just does nothing

$
0
0

After 3 days of beating on a brand new "Welcome to Xamarin" solution trying to get LiveReLoad to work... The best I can get is for the solution to not crash at launch.

The solution runs on both emulator and physical device. But changes in the XAML are not reflected in the running solution.
The setup instructions are pretty cut and dried:

  • Install the VSIX
  • Install the Nuget
  • Add the init call in the app class.
  • Rebuild
  • Deploy
  • Debug (F5) (Instructions say its not required. That should be listening regardless to 1 or more clients. But tried anyway)
  • Make changes in XAML and save.
  • Changes are sent to the running app when you save.
    Only they aren't.
    Does anyone see a key step I missed there?

Firewall is off
VS2017 v15.7.2
XamForms: v.Today
LiveReload: v.0.3.27

I've tried Connect from Visual studio both before and after launching on the emulator and physical device.

I am on a corporate domain network. Anyone had success on a domain?

Changing Navigation Bar icon color in iOS and Android and Windows


Binding objects of more than one class from shared project to xaml in portable class library

$
0
0

Hello i'm having trouble in binding object from shared class. I successfully bind data of one class to listview in xaml but i'm trying to bind data from shared project of other class in list view. Any Help related to it.
Thanks in advance.

Closing a Native Form opened from within Forms and passing data back

$
0
0

I have opened a native form as per the example in GitHub. In the renderer I created, I start a new activity.

In the native activity, I'm capturing a barcode using the Scandit library. When I scan, I want to close the form and return the control back to my application. I've given this a few goes, and gone around in circles.

1st attempt was to not create a new activity, instead to put the barcode scanning in the Renderer. It does capture the barcode and because I can get access back to my forms page I can send the data I capture to that. However, I can't close the page. If I try Navigation.PopAsync() when I get the barcode I get an exception.

2nd attempt was to create a new activity, in the renderer just StartActivity. I can capture the barcode, and I can call Finish because I started an activity. But, I can't seem to figure out how to notify my original page that there is a barcode so I can't get back to the call to Navigation.PopAsync(). So I end up with an empty page once the barcode scanner goes away, that I have to hit back on to pop that.

A little bit more to this.

In my renderer I can't call StartActivityForResult, because I'm not able to create the event handler for the Activity Result to be handled by.

Autocomplete for textbox

$
0
0

i need autocomplete extender functionality for a entry field . Can any one suggest me how to implement in xamarin.forms

BottomBar dll

$
0
0

I have integrated Bottom bar dll to shared code. I couldn't change bottom bar icons color or import to color icons. that icons are showing selected is a white color & not selected is a gray color.
anyone tell me how to change the icons color.

Masterdetailpage upon logged in

$
0
0

is it possible to display masterdetailpage after the user has logged in

Viewing all 91519 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>