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

Problem with ReadAsStringAsync

$
0
0

Hi friends.
I read data (with PostAsync) from a WS.
It works with a lot of WS but now I have a WS that returns a lot of data (170000 characters).
When I call

            response = await httpClient.PostAsync(url, httpContent);

            if (response != null && response.IsSuccessStatusCode)
            {
                string s = response.Content.ReadAsStringAsync().Result;
            }

the "s" have not all data. It seems that ReadAsStringAsync terminate too fast.

How can I solve this problem?

Let me know if you need more informations


iOS ListView Cell remove MenuItem stays open on delete

$
0
0

Hi all,
I've got a ListView with a swipe-to-remove button in my ViewCell, using following XAML:

<ViewCell.ContextActions>
<MenuItem Text="Remove" IsDestructive="true" Command="{Binding Delete}"></MenuItem>
</ViewCell.ContextActions>

I got this code from http://developer.xamarin.com/guides/cross-platform/xamarin-forms/working-with/listview/

When tapping the Remove button, the cell item is removed from the ListView's ItemsSource and as a result the row is removed correctly from the table.
However, once the row is gone, the remove button of the row below it is shown (as if the user has also swiped on that row).

Has anyone seen the same behavior?

thanks,
Thomas

Label automatically use maximal font size usable

$
0
0

I have many Labels in my App that contain different words and text. Is there an easy way to automatically use the maximal available font size, so that
no line break occurs? I would like to be able to resize my containers (ContentView, etc.) and always ensure that the text is readable and uses the maximal
usable font size.
Any ideas?

Getting claims from Azure B2C JWT token?

$
0
0

I have an ASP .NET Web Api project that uses UseJwtBearerAuthentication with Azure B2C. When I call the following code from my Xamarin PCL project, I can get an AuthenticationResult successfully (I get ar.Token and ar.IdToken):

AuthenticationResult ar = await App.ClientApplication.AcquireTokenAsync(App.Scopes, "", UiOptions.SelectAccount, string.Empty, null, App.Authority, App.SignUpSignInpolicy);

I'm curious how to get claims from the token? I can't seem to get System.Security.Claims or System.IdentityModel.Tokens.Jwt installed in my PCL project. Is that the right approach or do I need to decode the token somehow? I have tried JsonWebToken.DecodeToObject and I get "Algorighm RS256 is not supported"

Thanks!

consuming WCF Rest Service in sample application using Xamarin.Forms PCL project

$
0
0

Hi,

We are consuming WCF Rest Service in sample application using Xamarin.Forms PCL project . The application is failing at run time and I am getting "System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation."

**
Kindly clarify if this is the best approach for consuming WCF Rest Service in Xamarin.forms .**

Because we are using the predefined WCF service in application and generating WCF Proxy client for predefined one.But we don't know where the client deploy the WCF service in known place. So how to fit this approach for unknown Webservice deployment in client .

Kindly clarify this.

Description of Problem:

1.I created a Xamarin.Forms PCL project which gave me a solution with PCL project for Android,iOS and Windows projects.

Target Properties of the PCL for the project
.NET Framework 4.5
Xamarin.iOS
Xamarin.Android
Windows 8

2.Created WCF Rest service with simple method which return"Hello World".
3.WCF service hosted in local machine(IIS server)in my case.
4.Consuming WCF Service method in client application.
For this , I have generated WCF Proxy client with SLSvcUtil.exe tool from the Silverlight SDK.

slsvcutil http://ipaddress/mobileservice/service.svc?WSDL /out:reference.cs

ipaddress- Local machine address which points to the WCF service deployment.

Adding the resulting reference.cs file to my project.

Adding the following code to access the service:

try
{
SampleWCFClient client = new SampleWCFClient(
new BasicHttpBinding(),
new EndpointAddress("http://192.168.0.225/SampleWCF/SampleWCF.svc"));
// Call the proxy - this should use the async versions
client.WorldCompleted += client_WorldCompleted;
client.WorldAsync();

        }
        catch (Exception ex)
        {
            String tedxt = ex.Message.ToString();
            String asetrgtedxt = ex.InnerException.ToString();
        }

void client_WorldCompleted(object sender, WorldCompletedEventArgs e)
{
Device.BeginInvokeOnMainThread(async () => {
string error = null;
if (e.Error != null)
error = e.Error.Message;
else if (e.Cancelled)
error = "Cancelled";
if (!string.IsNullOrEmpty(error))
{
await DisplayAlert("Error", error, "OK", "Cancel");
}
else
{

  //return Hello World if success
   string Helloworld = e.Result;
 }
});

}

The application is failing at run time and I am getting "System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

Invalid Cast Exception with FreshEssentials BindablePicker

$
0
0

@MichaelRidland
I have used FreshEssentials BindablePicker in other projects fine, but am having a very strange problem with a particular Page/PageModel.

I have stripped the Page and PageModel right down to the following:
Page:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="Manager.Pages.Config.RemoteConnectionsPage"
             xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:fe="clr-namespace:FreshEssentials;assembly=FreshEssentials">
    <ContentPage.Content>
        <StackLayout Orientation="Vertical">
            <Label HorizontalOptions="CenterAndExpand" Text="Main Page" />
            <fe:BindablePicker DisplayProperty="Name" ItemsSource="{Binding Environments}" />
        </StackLayout>
    </ContentPage.Content>
</ContentPage>

PageModel:

using System.Collections.Generic;
using FreshMvvm;
using PropertyChanged;

namespace Manager.PageModels.Config
{
    [ImplementPropertyChanged]
    public class RemoteConnectionsPageModel : FreshBasePageModel
    {
        public enum Environment
        {
            Live,
            Test,
            Third
        }

        public class EnvironmentPickerItem
        {
            public string Name {
                get {
                    return Env.ToString ();
                }
            }

            public Environment Env {
                get;
                set;
            }
        }
        public RemoteConnectionsPageModel ()
        {
            List<EnvironmentPickerItem> _Environments;
            _Environments = new List<EnvironmentPickerItem> ();
            _Environments.Add (new EnvironmentPickerItem () { Env = Environment.Live });
            _Environments.Add (new EnvironmentPickerItem () { Env = Environment.Test });
            _Environments.Add (new EnvironmentPickerItem () { Env = Environment.Third });
            this.Environments = _Environments;
        }

        public List<EnvironmentPickerItem> Environments {
            get;
            set;
        }
    }
}

The problem is when I run the application, I get the exception below (full stack trace truncated):

System.InvalidCastException: Specified cast is not valid.
at FreshEssentials.Droid.BindablePickerRendererDroid.OnElementChanged (Xamarin.Forms.Platform.Android.ElementChangedEventArgs

1[TElement] e) [0x00031] in C:\Users\Michael\Documents\FreshEssentials\src\Droid\Renderers\BindablePickerRendererDroid.cs:46
  at Xamarin.Forms.Platform.Android.VisualElementRenderer
1[TElement].SetElement (TElement element) [0x000f4] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:190
at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:131

Looking at the source for the BindablePickerRendererDroid from the FreshEssentials repository, it appears to be the line:

((ObservableCollection<string>)e.NewElement.Items).CollectionChanged += RowsCollectionChanged;

in this method.

protected override void OnElementChanged(ElementChangedEventArgs<BindablePicker> e)
        {
            if (e.OldElement != null)
                ((ObservableCollection<string>)e.OldElement.Items).CollectionChanged -= RowsCollectionChanged;

            if (e.NewElement != null)
            {
                ((ObservableCollection<string>)e.NewElement.Items).CollectionChanged += RowsCollectionChanged;
                if (Control == null)
                {
                    var button = new AButton(Context) { Focusable = false, Clickable = true, Tag = this, Text = e.NewElement.Title };
                    button.SetOnClickListener(PickerListener.Instance);
                    SetNativeControl(button);
                }
                UpdatePicker();
            }

            base.OnElementChanged(e);
        }

The strange thing is that taking the above exact code into a brand new project works fine. I have checked versions of FreshEssentials and FreshMVVM, and they're identical between the working and non-working projects.

Anyone come across this, and/or any thoughts?

Full Xamarin Studio and other version info below:

=== Xamarin Studio Community ===

Version 6.1.4 (build 1)
Installation UUID: 462e6ba8-9cb7-4b87-acc8-9dfb0ab2c6f7
Runtime:
Mono 4.6.2 (mono-4.6.0-branch/ac9e222) (64-bit)
GTK+ 2.24.23 (Raleigh theme)

Package version: 406020016

=== NuGet ===

Version: 3.4.3.0

=== Xamarin.Profiler ===

Version: 0.33.2
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: 7.0.2.42 (Xamarin Studio Community)
Android SDK: /Users/jameslavery/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
4.1 (API level 16)
4.3 (API level 18)
4.4 (API level 19)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.1

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 8.0 (11246)
Build 8A218a

=== Xamarin.iOS ===

Version: 10.3.1.8 (Xamarin Studio Community)
Hash: 7beaef4
Branch: cycle8-xi
Build date: 2016-12-20 02:58:14-0500

=== Xamarin.Mac ===

Version: 2.10.0.120 (Xamarin Studio Community)

=== Build Information ===

Release ID: 601040001
Git revision: e606823f2dd01b4552216c013b597a73bec2068f
Build date: 2017-01-10 17:28:57-05
Xamarin addins: c92d0626d347aaa02839689eaac2961d24c9f446
Build lane: monodevelop-lion-cycle8

=== Operating System ===

Mac OS X 10.11.6
Darwin Jamess-MacBook-Pro.local 15.6.0 Darwin Kernel Version 15.6.0
Thu Jun 23 18:25:34 PDT 2016
root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

StyleCop Support 1.0.1.9
Gorilla Player 0.9.1.2
XamlStyler 1.0.2

Set RelativeLayout constraint expression from code

$
0
0

How do i change the RelativeLayout of a view from code? I have this XAML:

<StackLayout
                    x:Name="SemiLayout"
                    RelativeLayout.HeightConstraint =
                        "{ConstraintExpression Type=RelativeToParent,
                                               Property=Height,
                                               Factor=1}"

                    RelativeLayout.WidthConstraint =
                        "{ConstraintExpression Type=RelativeToParent,
                                               Property=Width,
                                               Factor=1}">
                </StackLayout>

How do i change the constraint expression from code? I didn't find anything related to this in the forum.

View appearing on the background when using Task.Run

$
0
0

I'm trying to make a Loading View by adding a IsLoading parameter to a custom ContentPage and when set, a View with some Labels and a ActivityIndicator appears on top. Here is the custom page:

public class PageWithLoading : ContentPage, INotifyPropertyChanged
    {
      private bool isLoading;
      public bool IsLoading
      {
        get
        {
            return this.isLoading;
        }

        set
        {
            this.isLoading = value;
            RaisePropertyChanged("IsLoading");
        }
    }

    private string _subtitle;
    public string subtitle
    {
        get
        {
            return this._subtitle;
        }

        set
        {
            this._subtitle = value;
            RaisePropertyChanged("subtitle");
        }
    }

    public event PropertyChangedEventHandler PropertyChanged;

    public void RaisePropertyChanged(string propName)
    {
        PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
    }


    public PageWithLoading()
    {

    }

    public void Loading(bool loading, string text = "")
    {
        IsLoading = loading;
        subtitle = text;
    }
}

If I make a Page that inherits from this, and set IsLoading = true, this should appear:

<AbsoluteLayout x:Name="loadingView" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All" IsVisible="{Binding IsLoading}">
     <ContentView BackgroundColor="#222222" Opacity="0.75" AbsoluteLayout.LayoutFlags="All" AbsoluteLayout.LayoutBounds="0,0,1,1"/>

      <StackLayout BackgroundColor="White" AbsoluteLayout.LayoutBounds=".5,.35,.85,.85" AbsoluteLayout.LayoutFlags="All" VerticalOptions="Center">
       <Label Text="Carregando" FontSize="35" FontAttributes="Bold" VerticalOptions="Center" HorizontalOptions="Center" />
     <ActivityIndicator IsRunning="true" />
       <Label Text="{Binding subtitle}" FontSize="20" VerticalOptions="Center" HorizontalOptions="Center" />
     </StackLayout>

    </AbsoluteLayout>

And it works if I try to test with something simple, like:

Loading(true, "Logging in");

            await Task.Delay(3000);

            Loading(false);

but if I try to actually load something (in this case using two task to get some objects from a DynamoDB table) the view doesn't appear, but it seems to be under the rest of the page since you can see a glimpse of it when the page changes


How to set margin for NavigationPage.SetTitleIcon

$
0
0

Hello,

I use this line to set the logo of my application : NavigationPage.SetTitleIcon(this, "navbarlogo.png");

I want to set top and left margin.

Is it possible ? If not, I think some code inside renderers will do the job but I don't know how to do.

Is it possible to help me to achieve these change ?

Regards

Google Map API not showing the map data

$
0
0

I have a registred key and everything seems alright in my code but Google Map is Just not showing the map data

here is my android manifest

I also got this notification on my output console while building

Does anyone have any suggestion on this?

ListView Memory Leak

$
0
0

I am developing an enterprise application using xamarin.forms. It has been few days ListView's Memory leak issue become a nightmare for me. For the sake of simplicity I'll try to explain with sample code.
XAML Page Code - Page with ListView and two Button(Add & Remove)

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:ListViewTest"
             x:Class="ListViewTest.MainPage">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="10*" />
      <RowDefinition Height="1*"/>
      <RowDefinition Height="1*"/>
    </Grid.RowDefinitions>
    <ListView Grid.Row="0" BackgroundColor="White" x:Name ="ItemsListView">
      <ListView.ItemTemplate>
        <DataTemplate >
          <TextCell TextColor="Black" Text="{Binding ItemText}"
                    DetailColor="Black" Detail="{Binding ItemDetail}" />
        </DataTemplate>
      </ListView.ItemTemplate>
    </ListView>
    <Button Grid.Row="1" Text="Add" Clicked="AddItemClicked"/>
    <Button Grid.Row="2" Text="Remove" Clicked="RemoveItemClicked"/>
  </Grid>
</ContentPage>

C# Code Behind - Just adding and removing objects from collection.

public partial class MainPage : ContentPage
    {
        ObservableCollection<SampleData> itemsListCollection;
        public MainPage()
        {
            InitializeComponent();
            itemsListCollection = new ObservableCollection<SampleData>();
            ItemsListView.ItemsSource = itemsListCollection;
        }
        void AddItemClicked(object sender, EventArgs e)
        {
            SampleData data = new SampleData();
            data.ItemText = "An Item";
            data.ItemDetail = "Item - " + (itemsListCollection.Count + 1).ToString();
            itemsListCollection.Add(data);
        }

        void RemoveItemClicked(object sender, EventArgs e)
        {
            SampleData item = (SampleData)ItemsListView.SelectedItem;
            if (item != null)
            {
                itemsListCollection.Remove(item);
            }
        }
    }

Data class - Just two properties

class SampleData
    {
        public event PropertyChangedEventHandler PropertyChanged;
        private string itemText;
        public string ItemText
        {
            get
            {
                return itemText;
            }
            set
            {
                itemText = value;
                NotifyPropertyChanged("ItemText");
            }
        }
        private string itemDetail;
        public string ItemDetail
        {
            get
            {
                return itemDetail;
            }
            set
            {
                itemDetail = value;
                NotifyPropertyChanged("ItemDetail");
            }
        }
        private void NotifyPropertyChanged(string propName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propName));
            }
        }
    }

Add Button - Adds item to ListView
Remove Button - Removes item from ListView
Problem -
1.) Add some items to list.
2.) Remove few or all.
3.) All previously added SampleData objects remain in memory even after all the items have been removed using Remove button.

System.Threading.Thread

$
0
0

I would like to know why in so many examples, where we want to set current culture, Xamarin uses System.Threading.Thread. This cannot be obtained. Not in PCL and not in WindowsPhone. Why are these examples up on their pages. They are missleading.

Can anyone shed some light on this matter?

Problems with Focus()

$
0
0

Hello everyone!

I have this code:

public void recibeCodigoArticulo()
        {
            //Si la respuesta del MessagingCenter es "envio" pone como parametro strCodigo
            MessagingCenter.Subscribe<xamlPedido, string>(this, "CodigoArticulo", (sender, strCodigo) =>
            {
                DisplayAlert("Prueba","Entro recibe mensaje","OK");
                if (strCodigo != "")
                {
                    txtArticulo.Text = strCodigo;
                    clsGlobal.gblStrCodigo = "";
                    if (txtArticulo.Text.Trim() != "")
                    {
                        this.txtCantidad.Focus();
                        buscaArticulo();
                        buscaCantidad();
                        actualizaUnidad();
                    }
                }
            });
        }

The code works fine, but the .Focus () method does not display the keyboard, someone knows it can happen, because I have this same method on another screen and if it does, only in this one.

From time to time after compilation Xamarin.Forms App Layout is squeezed

$
0
0

From time to time after compilation Xamarin.Forms app Layout is squeezed
only clue i have is:
SetValue: Can not convert to type 'Xamarin.Forms.Color'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.Color'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.Color'
SetValue: Can not convert to type 'Xamarin.Forms.Color'
SetValue: Can not convert to type 'Xamarin.Forms.Color'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.Color'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.Color'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.Color'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'
SetValue: Can not convert to type 'Xamarin.Forms.LayoutOptions'

Solution:
After project clean, unload project (Droid and iOS),
sometimes I have to restart Visual Studio "bad compilation problem" is gone = app looks good.

Where:
It is not an emulator problem or platform i had bad layouts on ios and android device,
other team members have same issue from time to time so it is not my machine that makes problem.

Layout is squeezed , bad compilation , bad xamarin.forms translation, this problem is weird.
Reloading Native project I can understand because it regenerate some files : Android Resources ..
Don't know how to solve this problem.

Different layouts for Tablets and Phones

$
0
0

What approach should be used, to apply different layouts for different form-factors?

I understand, that for simple projects it does not matter.
But if we are going to create a medium project and determine layout according to interface idiom?


Loading an image from a specific Android App

$
0
0

Hi,

I have a PCL project, an Android base app, and several specific apps based on the same base app: a specific app just contains specific images.

In my project, a xaml display an image using Binding. If I put the image file:

  • in the Android base app, it works
  • in the Android base app AND in the specific app, it works (and display the image contained in the specific app): great!.
  • in the specific app only, it doesn't work at all: no image.

My problem is that at base app level, i don't know the name of the image file. It's in database and it's different for each specific app. I don't want to put in the base app every possible images.

How can I achieve this ?
Thanks !

Chat message, hide keyboard not fire send button click event

$
0
0

HI, i'm developing xamarin forms application. I want to develop a chat like whatsapp. All my view are done and in order to make visible textview where to write message, i've created a custom view renderer that on keyboard show, resize view. This thing work well, but the problem is when i tap send button that is aside text input, keyboard hide and the event click is not fired. If i tap send button when keyboard is hide, click event is fired.
This happen olny in ios, in android all works well.
This is my page renderer code

public class ChatPageRenderer : ViewRenderer<ContentView, UIView>
{
NSObject observerHideKeyboard;
NSObject observerShowKeyboard;

    protected override void OnElementChanged(ElementChangedEventArgs<ContentView> e)
    {
        observerHideKeyboard = NSNotificationCenter.DefaultCenter.AddObserver(UIKeyboard.WillHideNotification, OnKeyboardNotification);
        observerShowKeyboard = NSNotificationCenter.DefaultCenter.AddObserver(UIKeyboard.WillShowNotification, OnKeyboardNotification);
        base.OnElementChanged(e);


    }

    protected override void Dispose(bool disposing)
    {
        NSNotificationCenter.DefaultCenter.RemoveObserver(observerHideKeyboard);
        NSNotificationCenter.DefaultCenter.RemoveObserver(observerShowKeyboard);
        base.Dispose(disposing);
    }

    // DA RIVEDERE PERCHè NON SI INVIA IL MESSAGGIO CON TASTIERA APERTA
    void OnKeyboardNotification(NSNotification notification)
    {

        // Resize view bounds
        var frameBegin = UIKeyboard.FrameBeginFromNotification(notification);
        var frameEnd = UIKeyboard.FrameEndFromNotification(notification);


        var visible = notification.Name == UIKeyboard.WillShowNotification;

        if (visible)
            (Element as ContentView).Padding = new Thickness((Element as ContentView).Padding.Left, (Element as ContentView).Padding.Top, (Element as ContentView).Padding.Right, (Element as ContentView).Padding.Bottom + frameBegin.Height);
        else
            (Element as ContentView).Padding = new Thickness((Element as ContentView).Padding.Left, (Element as ContentView).Padding.Top, (Element as ContentView).Padding.Right, 0);

        //var newBounds = new Xamarin.Forms.Rectangle((float)oldbounds.Left, (float)oldbounds.Top, (float)oldbounds.Width, (float)(oldbounds.Height - frameBegin.Top + frameEnd.Top));
        //Element.Layout(newBounds);

    }

}

PRISM: Sending messages between App.xaml.cs and the current view

$
0
0

I need to send a message from App's OnResume and OnSleep methods to the current view using PRISM. Does anyone know if this is possible with EventAggregator? I've seen examples on how to use the aggregator between viewmodels, but I'm not sure if it can be used between App.xaml.cs and the current view.

Not able to get crashes on Hockey App

$
0
0

Hi,

I'm working with hockey app on my Xamarin forms app for Windows Phone RT 8.1.
My problem is that I'm not getting any crashes in Hockeyapp, though my app crashes on start up when downloaded from Hockeyapp.
I'm not even getting that pop up dialog that asks the user to send crashes.

What I did is:

  • Install the nuget package Hockeyapp for Windows RT
  • in my app.xaml.cs file in my WP project I have this line of code at the top of my ctor:
    HockeyClient.Current.Configure(APP_ID);

  • and this line of code at the bottom of my OnLaunched:
    await HockeyClient.Current.SendCrashesAsync();

BTW I'm sure that my APP_ID and package name correspond with each other.

Anyone has any ideas?
Thanks!

Send my app to someone

$
0
0

Hi , I just finished my app , and would like to send it to my friend for testing before publishing. He lives in another city . I want to send ios version only .

what are my options here ?

Viewing all 91519 articles
Browse latest View live