-
AuthorPosts
-
October 5, 2018 at 5:25 pm #15824
sudongParticipantHi,my app can work good when it runs in the browser.But when i run it in the iOS simulator, The first time i open it,it works good.Then i refresh the home page or login, the home page’s pictures didn’t show. Just like this:http://prntscr.com/l2mzbh
And the console info is:
2018-10-06 01:14:10.525790+0800 Chinacademy[4900:117073] TIC TCP Conn Failed [13:0x60c000173140]: 3:-9800 Err(-9800)
2018-10-06 01:14:10.528479+0800 Chinacademy[4900:117073] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9800)
2018-10-06 01:14:10.531533+0800 Chinacademy[4900:117073] Task <59F36C68-85B8-4CEA-81A7-A96D206C5D79>.<1> HTTP load failed (error code: -1200 [3:-9800])
2018-10-06 01:14:10.539206+0800 Chinacademy[4900:118521] Task <59F36C68-85B8-4CEA-81A7-A96D206C5D79>.<1> finished with error – code: -1200A few weeks ago, it works good. Now i don’t know why it is so strange.
October 8, 2018 at 7:57 am #15888
AlexKeymastertry adding these lines in your .htaccess file
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
IF above does not works then please change the above line to :
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$1
check in your config.xml file in your project folder (where src and resources folder is ) have this line :
<access origin=”*” />
<allow-navigation href=”http://ionic.local/*” />
<allow-intent href=”http://*/*” />
<allow-intent href=”https://*/*” />
<allow-intent href=”tel:*” />
<allow-intent href=”sms:*” />
<allow-intent href=”mailto:*” />
<allow-intent href=”geo:*” />
Also try replacing the “imageCahe.ts” in your src/services/ folder with the “imageCahe.ts” file given in this zipped file : https://bit.ly/2KyOdJ4
Also try replacing the “lazy-load.directive.ts” in your src/services/ folder with the “lazy-load.directive.ts” file given in this zipped file : https://bit.ly/2QFyYwP
October 8, 2018 at 2:42 pm #15905
sudongParticipantI replaced the imageCahe.ts .And the “lazy-load.directive.ts” didn’t exist,So I copy it in my src.
But it shows these error:http://prntscr.com/l3ly9o
It seems my src file is too old,I downloaded it in the envote in July.
October 9, 2018 at 6:37 am #15907
AlexKeymasterim sorry I typed wrong path for the lazy-load.directive.ts file .
its in src/directives folder
October 9, 2018 at 7:09 am #15908
sudongParticipantIt still shows these error:http://prntscr.com/l3vd2c
And I found that the imageCache.ts file you gave me has made many changes compared with my original one.
October 10, 2018 at 12:30 pm #15937
AlexKeymasterWell I would need to check it out .Please provide me some time to check it .
Please also conform if you are using the latest version of the wplms app downloaded from codecanyon ?
October 10, 2018 at 1:25 pm #15944
sudongParticipantSorry,my src file was downloaded in May.I will try to download the latest code. Thanks.
October 13, 2018 at 3:42 pm #15995
sudongParticipantI have solved the problem, I force WebView to UIwebview.Then it works good.Because the Wkwebview has the CORS problem.
October 15, 2018 at 7:50 am #16013
AlexKeymasterOkay for other user to force the uiwebview:
https://ionicframework.com/docs/wkwebview/#option-1-force-uiwebview-usage
-
AuthorPosts
- You must be logged in to reply to this topic.