FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

application.displayedEvent is broken on iOS · Issue #5572 · NativeScript/NativeScript · GitHub

application.displayedEvent is broken on iOS #5572

Description

I had some initialization logic on displayedEvent and it stopped working after I upgraded NS to latest and greatest. The event doesn't fire anymore. The resumeEvent does fire, so I was able to move my logic there. It's just odd that this got broken somewhere between 3.4.0 and now.

application.on(application.displayedEvent, function (args: application.ApplicationEventData) {
    console.log("Display never fires: " + args.ios);
});

application.on(application.resumeEvent, function (args: application.ApplicationEventData) {
    console.log("Resume fired: " + args.ios);
});

You can test the bug and see the code in the app.ts in the example project: https://github.com/sserdyuk/ns-bug-displayevent-ios.git

$ tns info
All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬───────────────┐
│ Component        │ Current version │ Latest version │ Information   │
│ nativescript     │ 3.4.3           │ 3.4.3          │ Up to date    │
│ tns-core-modules │ 3.4.1           │ 3.4.1          │ Up to date    │
│ tns-android      │                 │ 3.4.2          │ Not installed │
│ tns-ios          │ 3.4.1           │ 3.4.1          │ Up to date    │
└──────────────────┴─────────────────┴────────────────┴───────────────┘

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL