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

Broadcast localnotifications for plugins lost userInfo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.5.0
    • 4.0.0
    • cordova-ios
    • None

    Description

      This old issue isn't resolved correctly https://issues.apache.org/jira/browse/CB-1977.

      • Xcode generated project implement the method:
      • (void) application:(UIApplication*)application
        didReceiveLocalNotification:(UILocalNotification*)notification
        {
        // re-post ( broadcast )
        [[NSNotificationCenter defaultCenter] postNotificationName:CDVLocalNotification object:notification];
        }
      • And the correct implementation is:
      • (void) application:(UIApplication*)application
        didReceiveLocalNotification:(UILocalNotification*)notification
        {
        // re-post ( broadcast )
        [[NSNotificationCenter defaultCenter] postNotificationName:CDVLocalNotification object:notification userInfo:notification.userInfo];
        }

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            jotaro17 Alberto Lobo Muñoz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: