This is a migrated thread and some comments may be shown as answers.

how to enable didReceiveLocalNotification in icenium.

1 Answer 101 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
bux
Top achievements
Rank 1
bux asked on 08 Nov 2013, 10:09 AM
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 ?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 11 Nov 2013, 05:01 PM
Hello,

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.

Regards,
Steve
Telerik
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.
Tags
AppBuilder Windows client
Asked by
bux
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or