Home page didn't show images in ios app(mac)

This topic contains 18 replies, has 3 voices, and was last updated by  Scott Lang 4 months, 1 week ago.

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #18110

    Santhosh Asr
    Participant

    Home page not showing the image on mac….But showing perfectly on android app.

    please reply quick.

    #18111

    Santhosh Asr
    Participant
    This reply has been marked as private.
    #18157

    Alex
    Keymaster

    Please try  replacing the imageCache.ts file in  src/services/ folder with the imageCache.ts file given in this zipped imageCache.zip file :https://bit.ly/2EqN1Dt

    • This reply was modified 6 months ago by  Alex.
    #18162

    Santhosh Asr
    Participant
    This reply has been marked as private.
    #18191

    Alex
    Keymaster

    Well that is strange one .

    Can you please debug it in safari with xcocde simulator .

    https://webdesign.tutsplus.com/articles/quick-tip-using-web-inspector-to-debug-mobile-safari–webdesign-8787 

    and then share screenshot of the errors in console when you access home page in app ?

     

    #18195

    Santhosh Asr
    Participant
    This reply has been marked as private.
    #18295

    Alex
    Keymaster

    Well that is google chrome ,Its a browser . It is working on it .

    The error is appearing in the IOS app and emulator .There is way to see the console errors while running app in xcode simulator .

    which is mentioned in this link .

    https://webdesign.tutsplus.com/articles/quick-tip-using-web-inspector-to-debug-mobile-safari–webdesign-8787 

    I want that screenshot : console of safari :

    #18302

    Santhosh Asr
    Participant
    This reply has been marked as private.
    #18413

    Alex
    Keymaster

    I think we would need your src folder to check the issue in your app .

    Can you please share it to identify and rectify the issue at your setup ?

    #18416

    Santhosh Asr
    Participant

    Hi Alex, Please tell us how to share the src folder???

    #18417

    Santhosh Asr
    Participant
    This reply has been marked as private.
    #18443

    Alex
    Keymaster

    I checked your source it like ours , I am debugging it .It might take some time.

    for the time being if its urgent you can change all the <lazy-img > tags in your source folder to <img src> tag.

    for example :

    <lazy-img [inputSrc]="course.featured_image" [navPush]="coursePage" [navParams]="course">2</lazy-img>

     

    change the above to :

     

    <img [src]="course.featured_image" [navPush]="coursePage" [navParams]="course">

    #18569

    Santhosh Asr
    Participant
    This reply has been marked as private.
    #18703

    Santhosh Asr
    Participant

    Hi Alex, I am waiting for reply to previous message…!

    (I checked your source it like ours , I am debugging it .It might take some time)

    • This reply was modified 5 months, 2 weeks ago by  Santhosh Asr.
    #18826

    Alex
    Keymaster

    Apologies for the delay in response .we missed some topic coz they were not showing in pending issues.

    I got it working by making a simple change in the imageCache.ts file in services folder  .

    Please try  replacing the imageCache.ts file in  src/services/ folder with the imageCache.ts file given in this zipped imageCache.zip file : https://bit.ly/2HlIDsC

    #18944

    Santhosh Asr
    Participant
    This reply has been marked as private.
    #19888

    Scott Lang
    Keymaster

    Hi,

    It looks like image caching issue .

    try to replace this function http://prntscr.com/miedxq with imageCache.ts , also  make sure storage and cache is cleared.

      public cache(src: string): Observable<string> {

        return this.notifier$.pipe(

          switchMapTo(

            this.isCached(src)

              .pipe(

                flatMap(([path, success]: [string, boolean]) => {

                  return success ? this.getCachedFileURL(path) : this.cacheFile(path);

                }),

                map((url: string) => {

                  if (this.platform.is(‘ios’)) {

                    return src;

                    // return this.normalizeURlWKWview(url);

                  }

                  return url;

                })

              )

          )

        );

      }

    #19913

    Santhosh Asr
    Participant

    Thank you so much scott…Now perfectly working

    #20030

    Scott Lang
    Keymaster

    Ok ,we are closing this topic.

Viewing 19 posts - 1 through 19 (of 19 total)

The topic ‘Home page didn't show images in ios app(mac)’ is closed to new replies.

Template Design © VibeThemes. All rights reserved.