Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

Strange bug: ionic-angular, after opening my app through dynamic link the view will not update correctly

$
0
0

@armanfantasy wrote:

I think it is a bug with ionic which do some strange thing when opening the app through dynamic links

ionic 5.0.7

Current behavior:
First my app is work perfect on the web browser on my computer but this but occur when i test dynamic links on my android device capacitor app.

i have an app which shows listing of properties when someone click on the dynamic link it will open the app and show that property but when you navigate back and see the listing and want to scroll for more property it will not show properties that fetched form server so i tested every thing its getting new items the array will update but the view will not show any thing till i go to an other tab an come back it will show those listing which was fetched but for new fetching it will not show.

I came around with a fix when i fetch new listing i run NgZone then it will show

As i mentioned this is just happening if the app is close then open through dynamic link.

I think if this bug happening for dynamic link it will happen also for push notification!

This is just a code for my solution when i fetch more data to make view update:

loadData(event) {
    this.zone.run(()=>{
        this.searchService.setIsOnSearch(true);
        this.estateService.addPageNumber();
        this.getEstates().then(
          value => { event.target.complete(); }
        );
      }
    );
  }

Ionic info:

Ionic:

Ionic CLI                     : 6.4.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework               : @ionic/angular 5.0.7
@angular-devkit/build-angular : 0.901.0
@angular-devkit/schematics    : 9.1.0
@angular/cli                  : 9.1.0
@ionic/angular-toolkit        : 2.2.0

Capacitor:

Capacitor CLI   : 1.5.2
@capacitor/core : 1.5.2

Cordova:

Cordova CLI       : 9.0.3 (cordova-lib@9.0.2)
Cordova Platforms : none
Cordova Plugins   : no whitelisted plugins (1 plugins total)

Utility:

cordova-res : not installed
native-run  : 0.3.0

System:

Android SDK Tools : 26.1.1 (/Users/arman/Library/Android/sdk)
ios-deploy        : 1.10.0
NodeJS            : v12.16.1 (/usr/local/bin/node)
npm               : 6.13.4
OS                : macOS Catalina
Xcode             : Xcode 11.4 Build version 11E146

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>