Closed app-xerintel closed 1 year ago
Related to: https://github.com/apache/cordova-ios/issues/944 (Cookies issue)
A potential workaround is documented at https://github.com/apache/cordova-ios/issues/944#issuecomment-660035130
I am used iframe inside other url link that work good But I embed pdf url that not work only white block display Than I tried google doc viewer then and my url put. But later happen very wrong Sometime there show and sometimes not 😥😥😥
I've marked this issue as stale because it's been over a year with no further comments. If this is still an issue in the latest cordova-ios version and an up-to-date iOS version, please let us know. Otherwise, this issue will be closed.
Closing as stale.
Bug Report
Iframe elements do not work properly when the application launches first time
Problem
We have several applications made with Ionic and with your platform, cordova-ios, which include iframe tags.
In Android they always work correctly, but in iOS it happens that when the application is run for the first time, several actions of the embedded web page (such as adding products to the cart, filling out forms, etc) are not executed correctly.
However, when you close the application and open it again, these actions do work correctly.
After investigating the problem ourselves, we have checked in the Safari inspector that the iframe cookies are not set when the application is first loaded. However, when closing the application and reopening it do appear, so we believe that this could be the origin of the problem (correct us if we are wrong).
Can you give us any idea, solution or alternative to fix this error?
What is expected to happen?
Iframe elements always working on iOS devices
What does actually happen?
Several actions of the embedded web page (such as adding products to the cart, filling out forms, etc) are not executed correctly.
However, when you close the application and open it again, these actions do work correctly.
Information
Command or Code
Angular code (.ts file):
.html file:
.scss file:
Environment, Platform, Device
Environment: macOS Catalina 10.15.4 Platform: iOS 13, iOS 13.+ Device: iOS devices
Version information
Cordova CLI:
9.0.0 (cordova-lib@9.0.1)
Cordova plugins:Ionic Framework: 4.7.1 Ionic CLI: 6.4.0
Checklist