WordPress LMS for Web and mobile Forums Ionic App Support Home Page didn't show pictures

Home Page didn't show pictures

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #15824

    sudong
    Participant
    Hi,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: -1200 A few weeks ago, it works good. Now i don't know why it is so strange.  
    #15888

    admin
    Member
    try 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
    #15905

    sudong
    Participant
    I 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.
    #15907

    admin
    Member
    im sorry I typed wrong path for the lazy-load.directive.ts file  . its in src/directives folder
    #15908

    sudong
    Participant
    It 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.
    #15937

    admin
    Member
    Well 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 ?
    #15944

    sudong
    Participant
    Sorry,my src file was downloaded in May.I will try to download the latest code. Thanks.
    #15951

    sudong
    Participant
    This reply has been marked as private.
    #15981

    admin
    Member
    This reply has been marked as private.
    #15995

    sudong
    Participant
    I have solved the problem, I force WebView to UIwebview.Then it works good.Because the Wkwebview has the CORS  problem.
    #16013

    admin
    Member
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.