-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
TypeError: Promise._immediateFn is not a function. #288
Labels
Comments
hisaichi5518
added a commit
to hisaichi5518/flutter_inappwebview
that referenced
this issue
Feb 18, 2020
This was referenced Jul 6, 2020
Closed
Closed
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment
Plugin version:
I am using 9c7ac0d to solve this issue.
#209 (comment)
iOS version:
iOS 13.1
Device information:
iPhone 11 Pro Max Simulator
Description
Expected behavior:
This will set a global Promise object if the browser doesn't already have window.Promise.
Current behavior:
override native Promise object.
Steps to reproduce
Promise.resolve()
in JavaScript.Stacktrace/Logcat
Reason
Overridden in the code below.
https://github.com/pichillilorenzo/flutter_inappwebview/blob/master/ios/Classes/InAppWebView.swift#L57
Solution
Using the code at the following URL.
it will not set a global Promise object if the browser already has window.Promise.
https://cdn.jsdelivr.net/npm/promise-polyfill@8/dist/polyfill.min.js
@pichillilorenzo
What do you think about this solution?
The text was updated successfully, but these errors were encountered: