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

Cannot change Navigation page barbackgroundcolor programmatically

$
0
0

Hi
Wondering if is possible to change the navigation bar background programmatically
without using renderers.

I have an app that uses prism not that matters .
I have a masterpage and in my app.xaml I have the following

     <Style TargetType="NavigationPage">
        <Setter Property="BarBackgroundColor" Value="OrangeRed" />
        <Setter Property="BarTextColor" Value="Blue" />
      </Style>

so far so good!!!

Now when I go to a particular page I need to change the BarBackgroundColor.

Whatever I tried did not work(below code anywhere is always null!!)

        //does not work as navigationPage is null
        var navigationPage = App.Current.MainPage as NavigationPage;
        navigationPage.BarBackgroundColor = Color.Red;


I even created a class :MyNavigationPage and injected it and still does not work

public class MyNavigationPage : Xamarin.Forms.NavigationPage, INavigationPageOptions, IDestructible
{
    public MyNavigationPage()
    {

    }
}
     private readonly myNavigationPage navPage;

    public MenuViewModel(INavigationService navigationService,
    MyNavigationPage navigationPage) : base(navigationService)
    {
        this.navPage = navigationPage;
    }
    private void OnMenuItemTapped(MasterMenuItem menuItem)
    {
       navPage.BarBackgroundColor=Color.Red;
    }

    }

any samples out there where it works!!!
Is this a bug?

many thanks


iOS SQLite auto closing?

$
0
0

Hello,

I've run into an issue with sqlite-net-pcl v1.4 It's only occuring on iOS, not on Android.

This project is a .net standard 2 project, in a MVVM methods (mostly).

What I'm running into is that I've got a ViewModel that has two repositories. Each repository has a reference to the common database library. At finalization time, it appears that the 1st repository is garbage collected - (the database library is disposed first before each repository), somehow the SQLite connection is closed and I'm not sure why.

None of my code - common or iOS specific actually does a close. At the finalize of the second repository, this message shows up:

2018-10-09 18:25:39.413082-0400 Project.iOS[5915:371800] [logging] API call with invalid database connection pointer
2018-10-09 18:25:39.413239-0400 Project.iOS[5915:371800] [logging] misuse at line 154262 of [95fbac39ba]

Since this doesn't show up at every finalize occurrence and since it's disposing of the objects, it could be ignored - but I'd like to fix it.

I didn't see much out there excepting this, but that's more of a problem with the open side of things, not why it's auto closing the connection.

This isn't happening on iOS when the ViewModel only has one repository on it.

Has anyone run into this, if so, how did you fix it?

The iOS common code:

public class IOSSQLite : ISQLite
{
    public SQLiteConnection GetConnection()
    {
        string documentsPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal); // Documents folder  
        string libraryPath = Path.Combine(documentsPath, "..", "Library"); // Library folder  
        var path = Path.Combine(libraryPath, DatabaseHelper.DbFileName);
        var conn = new SQLiteConnection(path);

        // Return the database connection  
        return conn;
    }
}

Common code:

public class GetMyDBConnection
{
    SQLiteConnection _sqliteconnection;
    public SQLiteConnection Connection
    {
        get
        {
            return _sqliteconnection;
        }
    }

    public GetMyDBConnection()
    {
        _sqliteconnection = Xamarin.Forms.DependencyService.Get<ISQLite>().GetConnection();
        System.Diagnostics.Debug.WriteLine("GetMyDBConnection() pointer addr: " + _sqliteconnection.Handle.ptr.ToString());
        System.Diagnostics.Debug.Flush();
    }
}

public class ViewModelList : ViewModelBase
{
public ICommand FinishCommand { get; private set; }
private SQLiteConnection MyConnection { get; set; }

    public ViewModelList(INavigation navigation, int Id)
    {
        System.Diagnostics.Debug.WriteLine("ViewModelList");
        System.Diagnostics.Debug.Flush();

        _navigation = navigation;
        GetMyDBConnection connection = new GetMyDBConnection();
        MyConnection = connection.Connection;
        connection = null;
        System.Diagnostics.Debug.WriteLine("ViewModelList - connection ptr: " + MyConnection.Handle.ptr.ToString());
        System.Diagnostics.Debug.Flush();

        _repositoryOne = new RepositoryOne(MyConnection);
        _repositoryTwo = new RepositoryTwo(MyConnection);

        FinishCommand = new Command(async () => await Finish());

        FetchData(Id);
    }

    various other methods...
}

public class RepositoryOne : IRepositoryOne 
{
    DatabaseHelper _databaseHelper;

    public RepositoryOne(SQLiteConnection connection)
    {
        _databaseHelper = new DatabaseHelper(connection);
    }

     various repository methods...
}

public class RepositoryTwo : IRepositoryTwo 
{
    DatabaseHelper _databaseHelper;

    public RepositoryTwo(SQLiteConnection connection)
    {
        _databaseHelper = new DatabaseHelper(connection);
    }

     various repository methods...
}

public class DatabaseHelper
{
    static SQLiteConnection sqliteconnection;
    public const string DbFileName = "information.db";

    public DatabaseHelper(SQLiteConnection connection)
    {
        System.Diagnostics.Debug.WriteLine("DatabaseHelper() - sqliteconnection ptr: " + connection.Handle.ptr.ToString());
        sqliteconnection = connection;
        sqliteconnection.CreateTable<Table>();
    }

    various specific database items...
}    

Application over other apps

$
0
0
Hello guys! Is there any tutorial that shows how can I run a layout over other apps? For example, Messenger uses it. I want something like Floating Action Button. The user sees it for example in the right corner, and can interact with it. Thank you!

How to make a Cross Platform Bubble Control? (example of request provided)

SignaturePad JPG image has black background

$
0
0

using SignaturePad.Xamarin.Forms.PCL

When trying to save a JPG from the SignaturePad it is saved with a black background no matter what background color I specify in the signature pad

A PNG saves properly with transparency and in the JPG I also see the signature if I use a stroke color other than black

Looks like there is an issue with the transparency not being converted to the background color

I do need a JPG in this case so the question is is there something I can do to make the JPG have a white background?

thanks

Mike

Build Hello World Xamarin Forms app ist too slow

$
0
0

I created simple Hello World Xamarin.Forms 3.2.0 application. Shared project is .NET Standard 2.0

Average build time is 52 seconds.

In my opinion build is too slow.

What is your opinion? Is build time OK or is wrong in settings?

Build on Dell Precission M33800

  • Intel(R) Core(TM) i7-4702HQ CPU @ 2.20GHz
  • 16 GB RAM
  • Samsung SSD 850 EVO mSATA 500GB
  • Windows 10 x64
  • Visual Studio Enterprise 2017 15.8.6

Geolocator Permissions not working

$
0
0

I'm trying out the following code to get the users current location which is based off the sample in the Plugins Module - but I'm never getting asked for Location permissions and the code doesn't seem to work after a certain point.

I've tried debuging and step through the code, but each time it gets to this line none of the breakpoints are hit and the programme just resumes.

    var results = await CrossPermissions.Current.RequestPermissionsAsync(Permission.Location);

Running it in a iOS simulator, set the the location to Apple and also others.

          try
            {


                var status = await CrossPermissions.Current.CheckPermissionStatusAsync(Permission.Location);
                if (status != PermissionStatus.Granted)
                {
                    if (await CrossPermissions.Current.ShouldShowRequestPermissionRationaleAsync(Permission.Location))
                    {
                        await DisplayAlert("Need location", "Gunna need that location", "OK");
                    }

        // Code doesn't seem to run after this line:
                    var results = await CrossPermissions.Current.RequestPermissionsAsync(Permission.Location);



                     //Best practice to always check that the key exists
                    if (results.ContainsKey(Permission.Location))
                        status = results[Permission.Location];
                }

                if (status == PermissionStatus.Granted)
                {
                    var results = await CrossGeolocator.Current.GetPositionAsync();
                    string loc = "Lat: " + results.Latitude + " Long: " + results.Longitude;
                }
                else if (status != PermissionStatus.Unknown)
                {
                    await DisplayAlert("Location Denied", "Can not continue, try again.", "OK");
                }
            }
            catch (Exception ex)
            {


            }

I am using the following modules:
using Plugin.Geolocator;
using Plugin.Permissions;
using Plugin.Permissions.Abstractions;
using Xamarin.Forms;

Info.plist has an entry for Location Always Usage Description = "This app needs to use the location".

How to add custom fonts on xamarin forms

$
0
0

Hello,

I work on a project xamarin forms, and i want to add a new font family.
i followed the official tutorial and it's not working!
i downloaded a font fantasy.ttf and then i paste it in asset of android project then i added this code in app.xaml


this don't work.
(#Final Fantasy i finded it in properties of the Fantasy.tff file in title)

How can i solve this?
thanks!


Can't resolve the reference with Xamarin.Forms.Xaml.IReferenceProvider

$
0
0

I'm running into the following when I try to deploy to iOS and when the iOS and android preview renderings try to build:

.../MTOUCH: Error MT2101: Can't resolve the reference 'Xamarin.Forms.Xaml.IReferenceProvider', referenced from the method 'System.Void Lynkd.MainPage::InitializeComponent()' in 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. (MT2101) (Lynkd.iOS)

I have tried the typical stuff of removing and re-adding references, cleaning and rebuilding etc. The renderings haven't been working for a few weeks but the app quit deploying to iOS in the middle of a programming session today.

Any ideas for me? I'm happy to add more info to the question.

java.lang.ClassCastException on performLaunchActivity

$
0
0

Hello,

I use a crash tracker to report the crash on my app and since few weeks I see the following crash on Android :

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.myapp/md52adb867d6e80e379ca1e69bf6644c3be.MainActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.ProgressBar$SavedState
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2474)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2544)
at android.app.ActivityThread.access$900(ActivityThread.java:163)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1367)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5608)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1397)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1192)

I've no idea of what does it mean. I read a stackoverflow thread talking about this kind of exception but this doesn't help me a lot.
(https://stackoverflow.com/questions/15298184/unexplainable-classcastexception-in-android-widget-progressbar-onrestoreinstance)

Florian.

someone please tell me how do i keep list of objects in session

$
0
0

someone please tell me how do i keep list of objects for e.g List{obj1,obj2,obj3...} in session and use it in another page. As we are using Xaml.Plugin.Settings nuget where we will store only primitive datatypes, how do i store list also in session.Someone Please help me out.

Thanks in advance.

How can i navigate back to the last selected TabbedPage?

$
0
0

Hello,

I am working with latest xamarin.forms 3.2 & prism and i am using TabbedPage.
When i try to navigate to any page view within the tabs, it works normally with "NavigationAsync & ?selectedTab=path" but
when i use "GoBackAsync(parameters)" : (where params is "selectedTab", "path") to get back to the last selected tab, i go back to the first tab not the desired path?
does selectedTab only work with Navigation mode NEW but not with BACK??

I have a small image (24px * 24px) that I want to repeat for the background image. Is there

$
0
0

I have a small image (24px * 24px) that I want to repeat for the background image. Is there a way to do this?

How can i navigate back to the last selected TabbedPage?

$
0
0

Hello,

I am working with latest xamarin.forms 3.2 & prism and i am using TabbedPage.
When i try to navigate to any page view within the tabs, it works normally with "NavigationAsync & ?selectedTab=path" but
when i use "GoBackAsync(parameters)" : (where params is "selectedTab", "path") to get back to the last selected tab, i go back to the first tab not the desired path?
does selectedTab only work with Navigation mode NEW but not with BACK??

local notification with ACR Notifications Plugin

$
0
0

Hi all

I would like to generate the local notification. For this purpose, I used the ACR Notification Plugin which does not work in my case. In the first step I called
the request permission function (bool result = await CrossNotifications.Current.RequestPermission()) which always throws the true value. After that, I called

await CrossNotifications.Current.Send(new Notification
{
Title = "Samples",
Message = "Starting Sample Schedule Notifications",
Id = 5,

        });

which caused the following exception:
System.TypeInitializationException: The type initializer for 'Plugin.Notifications.AndroidConfig' threw an exception.
If anyone knows how to handle this exception or why this exception appears I will be grateful.

Thanks in advance.
Samo


Floating action button at the bottom of the xaml page

$
0
0

How to add a Floating Action Button At the Bottom of the page...Please anyone suggest me how to do it?

Use imagens with native resolutions

$
0
0

Hi.
I start a project in my work using xamarin.forms and prism. I create a view with a listview, follow a code:

<?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http: // xamarin.com/schemas/2014/forms" xmlns:x="http: // schemas.microsoft.com/winfx/2009/xaml" x:Class="TrackerMobile.Forms.Views.Permissao" xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" prism:ViewModelLocator.AutowireViewModel="True" x:Name="permissaoView"> <ContentPage.Content> <ListView x:Name="lstPermissoes" GroupDisplayBinding="{Binding Titulo}" RowHeight="75" IsGroupingEnabled="true" ItemsSource="{Binding PermissoesExibir}"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <ViewCell.View> <StackLayout Orientation="Horizontal" Padding="0"> <Label Text="{Binding Descricao}"/> </StackLayout> </ViewCell.View> </ViewCell> </DataTemplate> </ListView.ItemTemplate> <ListView.GroupHeaderTemplate> <DataTemplate> <ViewCell> <StackLayout Orientation="Horizontal" Padding="5,5,5,5"> <Button Image="{Binding IconeEstado}" BackgroundColor="Transparent" BorderColor="Transparent" BorderWidth="0" Command="{Binding BindingContext.ExpandirRecolherCommand,Source={x:Reference permissaoView}}" CommandParameter="{Binding .}"> </Button> <Label Text="{Binding TituloQuantidadeSubItens}"/> </StackLayout> </ViewCell> </DataTemplate> </ListView.GroupHeaderTemplate> </ListView> </ContentPage.Content> </ContentPage>

In my button I need change image when I click it, I included imagens in android projetc in mipmap folders, but the image not loaded and I the exception is throwed, follow my viewmodel and my ObservableCollection implementation:

`
using Prism.Commands;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using TrackerMobile.Forms.Modelos;
using TrackerMobile.Forms.Util;

namespace TrackerMobile.Forms.ViewModels
{
public class PermissaoViewModel : BindableBase
{
private ObservableCollection _permissoes = new ObservableCollection();
private ObservableCollection _permissoesExibir;
public ObservableCollection PermissoesExibir
{
get => _permissoesExibir;
set => SetProperty(ref _permissoesExibir, value);
}

    public PermissaoViewModel()
    {
        _permissoes = MenuPermissaoCollection.Todos;
        MontarLista();
    }

    private void MontarLista()
    {
        PermissoesExibir = new ObservableCollection<MenuPermissaoCollection>();
        for (int i = 0; i < _permissoes.Count; i++)
        {
            MenuPermissaoCollection mp = _permissoes[i];
            MenuPermissaoCollection menuPermissoes = new MenuPermissaoCollection(mp.Id, mp.Titulo)
            {
                QuantidadeSubMenus = _permissoes[_permissoes.IndexOf(mp)].Count
            };
            if (mp.Expandir)
            {
                foreach(MenuPermissao m in mp)
                {
                    menuPermissoes.Add(m);
                }
            }
            PermissoesExibir.Add(menuPermissoes);
        }
    }

    public DelegateCommand<MenuPermissaoCollection> ExpandirRecolherCommand
    {
        get
        {
            return new DelegateCommand<MenuPermissaoCollection>((mp) =>
            {
                int indiceItem = PermissoesExibir.IndexOf(mp);
                _permissoes[indiceItem].Expandir = !_permissoes[indiceItem].Expandir;
                MontarLista();
            });
        }
    }

}

}
`

`
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Text;
using TrackerMobile.Forms.I18n;

namespace TrackerMobile.Forms.Modelos
{
public class MenuPermissaoCollection : ObservableCollection, INotifyPropertyChanged
{

    public MenuPermissaoCollection(long id, string titulo, bool expandido = false)
    {
        Id = id;
        Titulo = titulo;
        Expandir = expandido;
    }

    public long Id { get; set; }
    public string Titulo { get; set; }
    public string TituloQuantidadeSubItens
    {
        get => string.Format("{0} ({1})", Titulo, QuantidadeSubMenus);
    }
    public string IconeEstado
    {
        get => Expandir ? "expandido.png" : "recolhido.png";
    }
    public int QuantidadeSubMenus { get; set; }
    private bool _expandir;
    public bool Expandir
    {
        get => _expandir;
        set
        {
            if (_expandir != value)
            {
                _expandir = value;
                OnPropertyChanged("Expandir");
            }
        }
    }

    public event PropertyChangedEventHandler PropertyChangedEvent;
    protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = "")
    {
        if (!string.IsNullOrWhiteSpace(propertyName))
        {
            PropertyChangedEvent?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }

    public static ObservableCollection<MenuPermissaoCollection> Todos { get; set; }

    static MenuPermissaoCollection()
    {
        ObservableCollection<MenuPermissaoCollection> Grupos = new ObservableCollection<MenuPermissaoCollection>
        {
            new MenuPermissaoCollection(16L, AppResources.Permissao_MenuMapa)
            {
                new MenuPermissao { Id = 20L, Descricao = AppResources.Permissao_MenuMapaAdministrador },
                new MenuPermissao { Id = 17L, Descricao = AppResources.Permissao_MenuMapaLocalizacaoAtual },
                new MenuPermissao { Id = 57L, Descricao = AppResources.Permissao_MenuMapaTempoRealExpandido },
                new MenuPermissao { Id = 58L, Descricao = AppResources.Permissao_MenuMapaTempoRealGrid }
            },
            new MenuPermissaoCollection(38L, AppResources.Permissao_MenuRelatorio)
            {
                new MenuPermissao { Id = 55L, Descricao = AppResources.Permissao_MenuRelatorioHodometro },
                new MenuPermissao { Id = 52L, Descricao = AppResources.Permissao_MenuRelatorioHorimetro },
                new MenuPermissao { Id = 21L, Descricao = AppResources.Permissao_MenuRelatorioPercursosAnteriores },
                new MenuPermissao { Id = 54L, Descricao = AppResources.Permissao_MenuRelatorioVeiculosCliente },
                new MenuPermissao { Id = 50L, Descricao = AppResources.Permissao_MenuRelatorioVelocimetro }
            },
            new MenuPermissaoCollection(1L, AppResources.Permissao_MenuCadastro)
            {
                new MenuPermissao { Id = 25L, Descricao = AppResources.Permissao_MenuCadastroAlerta },
                new MenuPermissao { Id = 39L, Descricao = AppResources.Permissao_MenuCadastroAnotacao },
                new MenuPermissao { Id = 23L, Descricao = AppResources.Permissao_MenuCadastroCercaVirtual },
                new MenuPermissao { Id = 14L, Descricao = AppResources.Permissao_MenuCadastroCliente },
                new MenuPermissao { Id = 67L, Descricao = AppResources.Permissao_MenuCadastroIdMotorista },
                new MenuPermissao { Id = 18L, Descricao = AppResources.Permissao_MenuCadastroMotorista },
                new MenuPermissao { Id = 4L, Descricao = AppResources.Permissao_MenuCadastroPerfil },
                new MenuPermissao { Id = 10L, Descricao = AppResources.Permissao_MenuCadastroPermissoes },
                new MenuPermissao { Id = 22L, Descricao = AppResources.Permissao_MenuCadastroPontoControle },
                new MenuPermissao { Id = 24L, Descricao = AppResources.Permissao_MenuCadastroRotaDeterminada },
                new MenuPermissao { Id = 26L, Descricao = AppResources.Permissao_MenuCadastroUsuario },
                new MenuPermissao { Id = 15L, Descricao = AppResources.Permissao_MenuCadastroVeiculo },
                new MenuPermissao { Id = 68L, Descricao = AppResources.Permissao_MenuCadastroVincularIdMotorista },
                new MenuPermissao { Id = 42L, Descricao = AppResources.Permissao_MenuCadastroVincularMotorista }
            },
            new MenuPermissaoCollection(12L, AppResources.Permissao_MenuConsultar)
            {
                new MenuPermissao { Id = 36L, Descricao = AppResources.Permissao_MenuConsultarAlertaCadastrado },
                new MenuPermissao { Id = 37L, Descricao = AppResources.Permissao_MenuConsultarAlertaDisparado },
                new MenuPermissao { Id = 47L, Descricao = AppResources.Permissao_MenuConsultarAlertaTratado },
                new MenuPermissao { Id = 40L, Descricao = AppResources.Permissao_MenuConsultarAnotacoes },
                new MenuPermissao { Id = 34L, Descricao = AppResources.Permissao_MenuConsultarCercaVirtual },
                new MenuPermissao { Id = 30L, Descricao = AppResources.Permissao_MenuConsultarCliente },
                new MenuPermissao { Id = 69L, Descricao = AppResources.Permissao_MenuConsultarIdMotoristaCadastrado },
                new MenuPermissao { Id = 70L, Descricao = AppResources.Permissao_MenuConsultarIdMotoristaVeiculo },
                new MenuPermissao { Id = 32L, Descricao = AppResources.Permissao_MenuConsultarMotorista },
                new MenuPermissao { Id = 28L, Descricao = AppResources.Permissao_MenuConsultarPerfil },
                new MenuPermissao { Id = 33L, Descricao = AppResources.Permissao_MenuConsultarPontoControle },
                new MenuPermissao { Id = 35L, Descricao = AppResources.Permissao_MenuConsultarRotaDeterminada },
                new MenuPermissao { Id = 29L, Descricao = AppResources.Permissao_MenuConsultarUsuario },
                new MenuPermissao { Id = 31L, Descricao = AppResources.Permissao_MenuConsultarVeiculoCadastrado },
                new MenuPermissao { Id = 48L, Descricao = AppResources.Permissao_MenuConsultarVeiculoProximo }
            },
            new MenuPermissaoCollection(3L, AppResources.Permissao_MenuAjustes)
            {
                new MenuPermissao { Id = 61L, Descricao = AppResources.Permissao_MenuAjustesAlterarTema },
                new MenuPermissao { Id = 62L, Descricao = AppResources.Permissao_MenuAjustesAlterarSenha },
                new MenuPermissao { Id = 27L, Descricao = AppResources.Permissao_MenuAjustesEnviarComando },
                new MenuPermissao { Id = 43L, Descricao = AppResources.Permissao_MenuAjustesExcluirPosicaoFutura },
                new MenuPermissao { Id = 49L, Descricao = AppResources.Permissao_MenuAjustesParametros }
            }
        };
        Todos = Grupos;
    }
}

}
`

The "Xamarin.Forms.Build.Tasks.CssGTask" task could not be loaded

$
0
0

Hi,

I have installed a brand new computer and a brand new version of VS 2017 (community), I retreive my Xamarin project on this computer
and when I build I got this error.

I have the very last version of VS and already reboot several times, clean, rebuild etc... no way :-(

Does someone has an idea to fix this ?

Severity Code Description Project File Line Suppression State
Error The "Xamarin.Forms.Build.Tasks.CssGTask" task could not be loaded from the assembly C:\Users\spectral.nuget\packages\xamarin.forms\3.2.0.839982\build\netstandard2.0\Xamarin.Forms.Build.Tasks.dll. Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. PrototypeApp.UWP

Thanks for your help

MvvmCross.Forms is not installing in .netstandard 1.4

$
0
0

First a open new project (xamarin forms) which target was .net standard 2.0. Then I switch the target from .net standard 2.0 to .net standard 1.4, then I try to install MvvmCross.forms, but it failed to install. I tried with different version of MvvmCross.forms.
It Shows the following error-

Package MvvmCross.Forms 6.2.0 is not compatible with netstandard1.4 (.NETStandard,Version=v1.4). Package MvvmCross.Forms 6.2.0 supports:

- monoandroid81 (MonoAndroid,Version=v8.1)
- net461 (.NETFramework,Version=v4.6.1)
- netstandard2.0 (.NETStandard,Version=v2.0)
- tizen40 (Tizen,Version=v4.0)
- uap10.0.16299 (UAP,Version=v10.0.16299)
- xamarinios10 (Xamarin.iOS,Version=v1.0)
- xamarinmac20 (Xamarin.Mac,Version=v2.0)

how to turn on/off OneSignal push notification

$
0
0

Hi xamarin forum

I have implemented OneSignal for push notification but I want to have a turn on off notification with a push of toggle button, How can I acheive it

Viewing all 77050 articles
Browse latest View live


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