how to enable didReceiveLocalNotification in icenium.

2 posts, 0 answers
  1. bux
    bux avatar
    1 posts
    Member since:
    Nov 2013

    Posted 08 Nov 2013 Link to this post

    I'm working on IOS local notification and didReceiveLocalNotification cannot be called because  didReceiveLocalNotification  code is commented in  CDVPlugin.m class which is located in CordovaLib. I want to uncomment [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didReceiveLocalNotification:) name:CDVLocalNotification object:nil];. How to modify ?

  2. Steve
    Steve avatar
    10941 posts

    Posted 11 Nov 2013 Link to this post


    You can't modify the native Cordova code and build with the modified version in Icenium. Our suggestion is to use a custom Cordova plugin that handles this functionality: LocalNotifications. Note that since this plugin was last updated an year ago, it is most likely created for an outdated version of Cordova and you would have to make some adjustments to its files, for more info see: How to Write a PhoneGap 3.0 Plugin for Android. For any problems with a plugin itself, you should create a new issue in the plugin github repo directly.

    You can get up to speed on how to utilize custom Cordova plugins in Icenium from our documentation: Working with Custom Plugins.

    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top