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

statusbar removeObserver is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • iOS

    Description

      The current code is wrong

      [[NSNotificationCenter defaultCenter] removeObserver:self forKeyPath:UIApplicationDidChangeStatusBarFrameNotification];
      

      It should be

      [[NSNotificationCenter defaultCenter]removeObserver:self name:UIApplicationDidChangeStatusBarOrientationNotification object:nil];
      

      It might crash on plugin dealocation

      Attachments

        Activity

          People

            jcesarmobile jcesarmobile
            jcesarmobile jcesarmobile
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: