New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-ua

Package Overview
Dependencies
Maintainers
7
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-ua - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9-alpha.1

android/src/main/java/com/globo/reactnativeua/PreferencesManager.java

16

index.js

@@ -35,9 +35,11 @@ import {

call_notification_listeners({
'platform': 'ios',
'event': notification.event,
'alert': notification.data.aps.alert,
'data': notification.data,
'url': action_url
});
if (notification && notification.data && notification.data.aps && notification.data.aps.alert) {
call_notification_listeners({
'platform': 'ios',
'event': notification.event,
'alert': notification.data.aps.alert,
'data': notification.data,
'url': action_url
});
}
});

@@ -44,0 +46,0 @@

{
"name": "react-native-ua",
"version": "0.0.8",
"version": "0.0.9-alpha.1",
"description": "React Native module for Urban Airship platforms: iOS and Android",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -42,3 +42,3 @@ # React Native Module for Urban Airship

- Xcode 7.0 or higher
- Xcode 8.0 or higher
- Node 4.4

@@ -188,2 +188,10 @@ - React Native Command Line Tools

10. To enable alert when receive Push Notification in foreground implement the userNotificationCenter:willPresentNotification:withCompletionHandler method on AppDelegate class:
```objective-c
- (void) userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler {
completionHandler(UNNotificationPresentationOptionAlert);
}
```
## Methods

@@ -190,0 +198,0 @@ - **[ReactNativeUA.enable_notification()](https://github.com/globocom/react-native-ua/blob/master/index.js#L63)**: Prompt user to enable notification receivement;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc