Coder Social home page Coder Social logo

Auto dial issue about xamarin.plugins HOT 5 CLOSED

cjlotz avatar cjlotz commented on September 1, 2024
Auto dial issue

from xamarin.plugins.

Comments (5)

cjlotz avatar cjlotz commented on September 1, 2024

@vickieallen Are you trying to set this from within a PCL project? Because the setting is Android specific, it is not available within a PCL project to set. You have to set it from within an Android project.

from xamarin.plugins.

vickieallen avatar vickieallen commented on September 1, 2024

Okay. So I'm not sure I understand where this needs to go. I have tried both as above and by creating a dependencyservice and calling into my Android project, but still get the same issue. I also tried putting it in my MainActivity.cs file. Please, can you explain where I need to put this line of code...

from xamarin.plugins.

cjlotz avatar cjlotz commented on September 1, 2024

Vickie, can you try again after adding this in your Android project:

   public static class SettingsExtensions
    {
        public static Settings Settings(this IMessaging messaging)
        {
            return ((MessagingImplementation)CrossMessaging.Current).Settings;
        }
    }

from xamarin.plugins.

santanudoors avatar santanudoors commented on September 1, 2024

I have the same issue I added the code in mainactivity.cs file in android project but still getting this two error:

  1. 'MessagingImplementation' is inaccessible due to its protection level

  2. 'IMessaging' does not contain a definition for 'Settings' and no extension method 'Settings' accepting a first argument of type 'IMessaging' could be found (are you missing a using directive or an assembly reference?)

Can you help me out please

from xamarin.plugins.

wallesonn avatar wallesonn commented on September 1, 2024

See this.. here is the solution https://julianocustodio.com/2018/05/09/chamada-telefonica-xamarin-forms/

from xamarin.plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.