Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Cordova seems to need to be patched #758

@gregjacobs

Description

@gregjacobs

Hey guys,

So we're doing some heavy Angular work with Cordova and we're running into a few cases where we lose the Zone (and therefore lose change detection) when talking to Cordova. There are two main issues I've found so far:

  1. Need to patch window.cordova.exec() - success and error callbacks are not run in the correct zone.
  2. Need to patch document.addEventListener() specifically for the following Cordova events: pause, resume, activated, documentready (and possibly more - these are at least the ones for iOS). These events are specifically intercepted by Cordova before reaching the underlying (already-patched) APIs, and also do not run in the correct zone.

I have a patch for the first one which I can add to the thread later, but still working on the second.

Thoughts on patching Cordova in general though?

Thanks,
Greg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions