# react-native-get-ssaid

> Simple API for getting the SSAID on android

Latest version **0.7.4** (published 2019-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-get-ssaid
pnpm add react-native-get-ssaid
yarn add react-native-get-ssaid
bun add react-native-get-ssaid
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.4 |
| Published | 2019-02-11 |
| First published | 2019-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Raring |
| Maintainers | michael.raring |
| Keywords | react-native, ssaid, androidID |

## Links

- npm: https://www.npmjs.com/package/react-native-get-ssaid
- Repository: https://github.com/michaelmika/react-native-get-ssaid
- Homepage: https://github.com/michaelmika/react-native-get-ssaid#readme
- Issues: https://github.com/michaelmika/react-native-get-ssaid/issues
- npm.io page: https://npm.io/package/react-native-get-ssaid

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.7.4 (latest) — 2019-02-11
- 0.7.3 — 2019-02-10
- 0.7.2 — 2019-02-10
- 0.7.1 — 2019-02-10
- 0.7.0 — 2019-02-10

## README

# react-native-get-ssaid

Very simple Module to get the SSAID (or Android ID) on android. To read more about SSAID and the changes since android O refer to [this blogpost](https://android-developers.googleblog.com/2017/04/changes-to-device-identifiers-in.html).

## Getting started

`$ npm install react-native-get-ssaid --save`

### Mostly automatic installation

`$ react-native link react-native-get-ssaid`

### Manual installation


#### iOS

1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-native-get-ssaid` and add `RNReactNativeGetSsaid.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNReactNativeGetSsaid.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<

#### Android

1. Open up `android/app/src/main/java/[...]/MainActivity.java`
  - Add `import com.reactlibrary.RNReactNativeGetSsaidPackage;` to the imports at the top of the file
  - Add `new RNReactNativeGetSsaidPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
  	```
  	include ':react-native-get-ssaid'
  	project(':react-native-get-ssaid').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-get-ssaid/android')
  	```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
  	```
      compile project(':react-native-get-ssaid')
  	```

#### Windows
[Read it! :D](https://github.com/ReactWindows/react-native)

1. In Visual Studio add the `RNReactNativeGetSsaid.sln` in `node_modules/react-native-get-ssaid/windows/RNReactNativeGetSsaid.sln` folder to their solution, reference from their app.
2. Open up your `MainPage.cs` app
  - Add `using React.Native.Get.Ssaid.RNReactNativeGetSsaid;` to the usings at the top of the file
  - Add `new RNReactNativeGetSsaidPackage()` to the `List<IReactPackage>` returned by the `Packages` method


## Usage
```javascript
import RNReactNativeGetSsaid from 'react-native-get-ssaid';

// TODO: What to do with the module?
RNReactNativeGetSsaid.getID().then(
    id => console.log(id)
  ).catch(
    err => console.log(err)
  );
```
  
# License
This code is under [MIT license](https://opensource.org/licenses/MIT) and opened for contribution! Author is Michael Raring.

---
_Source: https://npm.io/package/react-native-get-ssaid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
