Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast are not showing 2nd time in iOS12.1 #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aman2604
Copy link

@aman2604 aman2604 commented Mar 8, 2019

No description provided.

@aman2604
Copy link
Author

aman2604 commented Mar 8, 2019

I am using 2.5.2 version which doesn't contain this change but once I updated it to 2.7.2 then toast is not showing 2nd time for iOS 12. So removing this change.

@aman2604
Copy link
Author

Please review - @EddyVerbruggen

@EddyVerbruggen
Copy link
Owner

@aman2604 If you're happy with the change, and it still works on (let's say) iOS 11, then I'd be happy to merge it.

@aman2604
Copy link
Author

@EddyVerbruggen - 83% of all devices introduced in the last 4 years are using iOS 12 and I don't have iOS 11 device. Please refer - https://developer.apple.com/support/app-store/

@EddyVerbruggen
Copy link
Owner

@aman2604 Sure, but if this would break iOS 11 support (I'm not saying it does!) all hell will break loose; this plugin has ~5k daily downloads so there will be a lot of app users. If for 17% the app crashes: 😱

@aman2604
Copy link
Author

@EddyVerbruggen - I tried it on iOS11 and it is working there as well.

@EddyVerbruggen
Copy link
Owner

About to merge, but it doesn't feel right that we're reversing #112 here. I think change will break cases that #112 fixed. @yjajkiew if you're still using this plugin: do you have thoughts on reverting your PR, and/or do you recall what the problem was that #112 solved?

@aman2604
Copy link
Author

@EddyVerbruggen - Could you please merge this PR?

@yjajkiew
Copy link

Reverting #112 will have consequences on application using multiple layers : in my case if it's revert it can cause toast to not work at all on iOS when using InAppBrowser, that's why I made #112 in the first place.
As to why it toast does not show 2nd time on iOS 12.1 I should make some tests and try this PR, hopefully tomorrow, to understand the problem.

@EddyVerbruggen
Copy link
Owner

@yjajkiew Thanks so much for chiming in!

@yjajkiew
Copy link

Hello, sorry for the delay but I finally found the time to try to reproduce this error but I can't.
By using the plugin without this PR (so without reverting #112) toasts messages on iOS 12.1 can show up multiple times !

Steps to reproduce :

  1. launch an app on simulator (iPhone 8 Plus 12.1)
  2. launch the following commands from index.js :
  • window.plugins.toast.show('test 1', 2000, 'bottom');
  • window.plugins.toast.show('test 2', 2000, 'bottom');
  • window.plugins.toast.show('test 3', 2000, 'bottom');
  • window.plugins.toast.show('test 1', 2000, 'bottom');
  1. the results are : all toast messages showing up

Can someone else test this to confirm ? Or can someone else confirm @aman2604 's problem ?

@aman2604
Copy link
Author

@yjajkiew - I tried this on simulator and issue is coming for iOS 11 simulator also.

@yjajkiew
Copy link

Can you give us some contexts about your application that may be causing this issue ? I can not reproduce.

@aman2604
Copy link
Author

aman2604 commented Mar 28, 2019

@yjajkiew - We are showing the Toast message on button click and then opening a alert dialog. Once alert dialog is closed, we are opening the second toast. Also, we are doing it in the iframe.

@aman2604
Copy link
Author

@yjajkiew - A gentle reminder for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants