Git Product home page Git Product logo

toast's People

Contributors

eatskolnikov avatar ishrakland avatar mr5z avatar stepkillah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

toast's Issues

Mac support

Getting a 'NotImplementedException' on Mac OS. Adding support for Mac would be great.

It crushes on Android 11

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

Not Working On Android 12

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 }

Exception has been thrown by the target of an invocation.

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.'

It's a copy from Plugin.Toast.Abstractions

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!!!!

Toast in fullscreen on iOS 14

Hello,

I use your plugin and it works fine on iOS 13 but I upgraded to iOS 14 and the look and feel is not as well as before.

Bug toast

Notify me if you need more information.

Best regards.

Plugin not compatible with Andoid 14

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.

How to close an issue - toast or popups

Hello,

attack

#1

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.

Issue in iOS

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…}

Adding options feature should be good

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.

Is there any chance to work on Windows applications?

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.

Deprecated debug information level

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

Crash when targeting Android 11

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 

UWP support

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

IOS application freezes on multiple popups

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?

2.1.3 is broken

After upgrading from 2.1.2 to 2.1.3, the Plugin.Toast namespace is not found anymore, as well as CrossToastPopUp class.

UWP - 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.

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

UnhandledException on UWP

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

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.