ishrakland / toast Goto Github PK
View Code? Open in Web Editor NEWTo use it in PCL or .NetStandard projects write this line of code : CrossToastPopUp.Current.ShowToastMessage("Message");
License: MIT License
To use it in PCL or .NetStandard projects write this line of code : CrossToastPopUp.Current.ShowToastMessage("Message");
License: MIT License
Getting a 'NotImplementedException' on Mac OS. Adding support for Mac would be great.
Code:
ShowToastPopUp.ShowMessage (System.String message, System.String backgroundHexColor, System.String textHexColor, Plugin.Toast.Abstractions.ToastLength toastLength)
Reason:
System.NullReferenceException: Object reference not set to an instance of an object
OS:
Android 11
Tested Devices:
Galaxy S10
Galaxy Note20 Ultra 5G
Galaxy S21 5G
I have 2 devices one is android 10 and the other is android 12. Toast works on android 10 but not in android 12.
Here is the stack trace.
{System.NullReferenceException: Object reference not set to an instance of an object.
at Plugin.Toast.ShowToastPopUp.ShowMessage (System.String message, System.String backgroundHexColor, System.String textHexColor, Plugin.Toast.Abstractions.ToastLength toastLength) [0x0003d] in C:\Users\10061213\Toast\Toast.Plugin.Android\ShowToastPopUp.cs:79
at Plugin.Toast.ShowToastPopUp.ShowCustomToast (System.String message, System.String bgColor, System.String txtColor, Plugin.Toast.Abstractions.ToastLength toastLength) [0x00000] in C:\Users\10061213\Toast\Toast.Plugin.Android\ShowToastPopUp.cs:26
at Services.ToastService.ShortToast (System.String message, System.Boolean success) [0x00010] in ~Services\ToastService.cs:76 }
System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'
[CompatibilityChangeReporter] Compat change id reported: 147798919; UID 10404; state: ENABLED
System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'
Try to create you own DLL full developed not a copy from another!!
This is a copy from Plugin.Toast.Abstractions you just use it as described in this link I can't see the the intake! This dll has a copyright so you can't create a dll by your name!!!!
App crashing in Android 14 due to exception of java.lang.SecurityException One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts.
Hello,
If an issue is not resolved, and the comment wasn't clear, we need to ask or answer before closing the issue and blocking the person to not be able to answer.
I tried to "document myself" (because you are more than I am) to know if I was wrong, toast is different from popup, if you mean both of them, I expect that this plugin will display popups not only a Snake, similar to this one: https://github.com/aritchie/userdialogs but we have only one method as I see: Android.Widget.Toast Task = Android.Widget.Toast.MakeText(Android.App.Application.Context, message, ToastLength.Short);
Task.Show();
In GitHub the name is correct, but in nuget it's not correct, it doesn't display any popup I guess or I'm missing something.
Hi @ishrakland Please check this, I have issue with this in iOS
Exception
{System.NullReferenceException: Object reference not set to an instance of an object at Plugin.Toast.IosHelper.GetVisibleViewController () [0x00054] in C:\Users\10061213\Toast\Toast.Plugin.iOS\IosHelper.cs:36 at Plugin.Toast.ShowToastPopUp.CreateToast (Sys…}
Hello firstly thank you for your good job. Can you add options for delay and position for ios? For example I would like to show toast in bottom as android but it seems on center of screen.
Thank you in advance.
Hello, nice work on this one.
I've tried running it on a Windows app (on xamarin.forms) but it trows an error and the app exits. I did notice on your readme says Windows Phone
.
Nevertheless when i execute CrossToastPopUp.IsSupported
on a windows app it returns true.
It works fine on Android. Haven't tried on iOS but i suppose it will also work fine.
When building my app in devops azure, I get the following warning :
Warning XA0125: 'Plugin.Toast.pdb' is using a deprecated debug information level. Set the debugging information to Portable in the Visual Studio project property pages or edit the project file in a text editor and set the 'DebugType' MSBuild property to 'portable' to use the newer, cross-platform debug information level. If this file comes from a NuGet package, update to a newer version of the NuGet package or notify the library author.
Could you update the debug information level of your package as recommended ?
Thank you
Toast getView() was deprecated on Android 11 and it returns null.
So when targeting Android 11, the sample app crashes:
**System.NullReferenceException:** 'Object reference not set to an instance of an object.'
at Plugin.Toast.ShowToastPopUp.ShowMessage (System.String message, System.String backgroundHexColor, System.String textHexColor, Plugin.Toast.Abstractions.ToastLength toastLength) [0x0003d] in C:\Users\10061213\Toast\Toast.Plugin.Android\ShowToastPopUp.cs:79
at Plugin.Toast.ShowToastPopUp.ShowToastMessage (System.String message, Plugin.Toast.Abstractions.ToastLength toastLength) [0x00000] in C:\Users\10061213\Toast\Toast.Plugin.Android\ShowToastPopUp.cs:45
Will version for UWP be ever updated?
I'm getting an error:
System.IO.FileLoadException HResult=0x80131040 Message=Could not load file or assembly 'Plugin.Toast, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Source=DataGuard StackTrace: at DataGuard.App.RegisterTypes(IContainerRegistry containerRegistry) at Prism.PrismApplicationBase.Initialize() at Prism.PrismApplicationBase.InitializeInternal() at DataGuard.App..ctor(IPlatformInitializer initializer) at DataGuard.UWP.MainPage..ctor() in D:\Programiranje\NET\DataGuard\DataGuard.UWP\MainPage.xaml.cs:line 19
This is not an issue, just a request for enhancement. Thanks!
There is an issue on IOS when opening at least two notification is short interval of time. When one is displayed and the second notification pupups it freezes user interface. Is there any chance for fix?
After upgrading from 2.1.2 to 2.1.3, the Plugin.Toast
namespace is not found anymore, as well as CrossToastPopUp
class.
Just loaded a new Xamarin Forms 5.0.0.2012 project.
Installed Plugins.Toast 2.2.0.
When I run the UWP project (.NET 2.0.3) I get the error:
System.IO.FileNotFoundException: Could not load file or assembly 'Plugin.Toast, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Does this library need updating?
Thanks
Hi, I'm using your great nuget but I have a this problem when you try to use it on UWP.
{"Could not load file or assembly 'Plugin.Toast, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Plugin.Toast, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null"}
Installed Version 2.1.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.