Comments (5)
@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.
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.
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.
I have the same issue I added the code in mainactivity.cs file in android project but still getting this two error:
-
'MessagingImplementation' is inaccessible due to its protection level
-
'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.
See this.. here is the solution https://julianocustodio.com/2018/05/09/chamada-telefonica-xamarin-forms/
from xamarin.plugins.
Related Issues (20)
- Multiple extension numbers HOT 1
- Package Xamarin.Android.Support.Core.Utils 27.0.2 is not compatible with monoandroid71 (MonoAndroid,Version=v7.1). Package Xamarin.Android.Support.Core.Utils 27.0.2 supports: monoandroid81 (MonoAndroid,Version=v8.1) HOT 1
- a-href's don't show up as links in the GMail app
- Intent Exception When Using SmsMessenger or Dialer
- Cannot attach a memorystream pdf file to mail for Android
- Is it possible to get the status result of a send operation? HOT 4
- Can't select a photo with the native (iOS) sms app - button does nothing
- SendEmail and wait
- Cannot add attachment on iOS HOT 1
- if(callTask.CanMakePhoneCall) is always False
- Add netstandard2.0 target framework
- SendEmail(IEmailMessage) doesn't work HOT 1
- when trying to open default mail app is hidden under status bar and not responsive on iPhone XR and XS
- What should happen when message in sent in background ? HOT 1
- Cant set CrossMessaging.Current.Settings().Phone.AutoDial = true; HOT 1
- xamarin Error by permission.CALL_PHONE (but it have CALL_PHONE) (android 10) HOT 2
- SendSmsInBackground exception HOT 2
- CanMakePhoneCall always false on Android 11
- Send sms to several contacts at the same time
- It doesn't work in .net MAUI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin.plugins.