Socket
Socket
Sign inDemoInstall

react-native-ios11-devicecheck

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-ios11-devicecheck

React Native implementation for Apple iOS 11 DeviceCheck DCDevice API.


Version published
Weekly downloads
17
decreased by-22.73%
Maintainers
1
Install size
6.95 kB
Created
Weekly downloads
 

Readme

Source

react-native-ios11-devicecheck (RNIOS11DeviceCheck)

React Native implementation for Apple iOS 11 DeviceCheck DCDevice API. Except iOS platform always comes on Promise.reject('Other than iOS platform not supported')

Uses:

  • webservice request on server comes from apple devices.
  • App device token using device check is ephemeral, but that token is useful to identify the device uniqueness such as per device per app one offer scenario. If device formatted, keychain wipe or any hack won't effect on this case. Safe to check per device identification.

Installation: (npm)

$ npm i --save react-native-ios11-devicecheck

Implemtation (iOS Only using cocoapods, no need to do anything on android):

pod 'RNIOS11DeviceCheck', :path => '../node_modules/react-native-ios11-devicecheck/ios'

Try inside javascript code: index.js

import React from 'react';
import { View } from 'react-native';
import RNIOS11DeviceCheck from 'react-native-ios11-devicecheck';

export default class App extends React.Component {
	componentDidMount = () => {
		RNIOS11DeviceCheck
			.getToken()
			.then(console.warn)
			.catch(console.warn);
	};

	render = () => <View style={{ flex: 1, backgroundColor: 'white' />;
}

DeviceCheck Sample

DeviceCheck is a new iOS 11 API that gives you access to two bits of data per-device, per-developer that your associated server can use in its business logic. Here's a fully working sample.

Apple Docs:

iOS docs: https://developer.apple.com/documentation/devicecheck

Server side docs: https://developer.apple.com/documentation/devicecheck/accessing_and_modifying_the_per_device_data

WWDC 2017 - Session 702 - Privacy and Your Apps: https://developer.apple.com/videos/play/wwdc2017/702/?time=1444

Keywords

FAQs

Last updated on 05 Jun 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc