# nativescript-temp-sms

> Sending Sms Using SmsManager

Latest version **1.0.2** (published 2017-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install nativescript-temp-sms
pnpm add nativescript-temp-sms
yarn add nativescript-temp-sms
bun add nativescript-temp-sms
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-08-08 |
| First published | 2017-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jayson Temporas |
| Maintainers | jayson.temporas |
| Keywords | NativeScript, JavaScript, Android, iOS |

## Links

- npm: https://www.npmjs.com/package/nativescript-temp-sms
- Homepage: https://github.com/jayson-temporas/nativescript-temp-sms
- Issues: https://github.com/jayson-temporas/nativescript-temp-sms/issues
- npm.io page: https://npm.io/package/nativescript-temp-sms

## 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

- 1.0.2 (latest) — 2017-08-08
- 1.0.1 — 2017-08-08
- 1.0.0 — 2017-08-08

## README

# nativescript-temp-sms

Sending sms without user interaction.

var smsManager = android.telephony.SmsManager.getDefault();

smsManager.sendTextMessage("0123232332",null,"Hello",null,null);

## (Optional) Prerequisites / Requirements

To send sms without user interaction on Android your app must request permission to do so. The following must be in your app's AndroidManifest.xml

```xml
<uses-permission android:name="android.permission.SEND_SMS" />
```

iOS sms feature will soon be implemented.

## Installation

Install the plugin using the NativeScript CLI tooling

```javascript
tns plugin add nativescript-temp-sms
```

## Usage 

To use the module you must first require() it from your project's node_modules directory:



After you have a reference to the module you can then call the available methods.
	
	```js
		var temp = require( "nativescript-temp-sms" );
  		temp.sms(number,messageText);
    ```

Parameters: 

number: SMS number to use.

messageText: String to send.


## License

MIT, 2017

---
_Source: https://npm.io/package/nativescript-temp-sms · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
