nativescript-open-inbox
Version:
Open Email inbox plugin for your NativeScript app
55 lines (40 loc) • 897 B
Markdown
You can use this plugin to open the default email app on both android and ios.
Run this command from the root of your project:
```bash
tns plugin add nativescript-open-inbox
```
To use this plugin you must first require/import it:
```typescript
import { openInbox } from "nativescript-open-inbox";
// or
import { openInbox as goToEmailApp } from "nativescript-open-inbox";
```
```js
var email = require("nativescript-open-inbox");
```
```typescript
email.openInbox()
.then(() => {
console.log("Cool!");
})
.catch((ex) => {
console.log("Ouch!" + ex);
});
```
```js
email.openInbox()
.then(() => {
console.log("Cool!");
})
.catch((ex) => {
console.log("Ouch!" + ex);
})
```