Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
cordova-plugin-app-event
Advanced tools
Changelog
Version 1.2.2 (25.09.2019)
Readme
The essential purpose of that plugin is to broadcast iOS-specific application events, so that 3rd party plugins can listen to them.
Its mainly used as an internal dependency for the LocalNotification and Badge plugin. But can be used by any other plugin also. Feel free to submit an PR to broadcast additional events.
As of right now its possible to add observers for these events:
Once you have added the plugin as an dependency you can add observers for them.
<!-- plugin.xml -->
<dependency id="cordova-plugin-app-event" />
As first the plugin needs to indicate interest to receivce app events by adding the APPAppEventDelegate
protocol.
Note: Required for version 1.2.0 or newer!
// MyCordovaPlugin.h
#import "APPAppEventDelegate.h"
#import <Cordova/CDVPlugin.h>
@interface APPLocalNotification : CDVPlugin <APPAppEventDelegate>
@implementation MyCordovaPlugin
...
@end
To add an observer you need to implement the UIApplicationDelegate Protocol. Implementations from your AppDelegate class don't get overwritten!
For the didReceiveLocalNotification
event you would need to add that method.
// MyCordovaPlugin.m
@implementation MyCordovaPlugin
- (void) didReceiveLocalNotification:(NSNotification*)localNotification
{
...
}
@end
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)This software is released under the Apache 2.0 License.
© 2013-2017 appPlant GmbH, Inc. All rights reserved
FAQs
Broadcasts UIApplicationDelegate events
The npm package cordova-plugin-app-event receives a total of 723 weekly downloads. As such, cordova-plugin-app-event popularity was classified as not popular.
We found that cordova-plugin-app-event demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.