Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8785

evalJS's javascript need try/catch.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 4.0.0
    • cordova-ios
    • None

    Description

      Sometimes, There's no cordova object on html files. But, unfortunately CVViewController calls some notification using notification center and call evalJS using these method. (cordova.fireDocumentEvent('resign'), cordova.fireDocumentEvent('resume'), cordova.fireDocumentEvent('active'), cordova.fireDocumentEvent('pause')).
      But evalJS's javascript starts with cordova.require. So, at that time there's no cordova object? Show's big alert view.
      Need try/catch for this.

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            sangchan82 SangChanLee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: