nativescript-open-inbox
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

NativeScript Open Default Email App Inbox

You can use this plugin to open the default email app on both android and ios.

Installation

Run this command from the root of your project:

tns plugin add nativescript-open-inbox

API

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";

JavaScript

var email = require("nativescript-open-inbox");

openInbox

TypeScript

  email.openInbox()
    .then(() => {
        console.log("Cool!");
    })
    .catch((ex) => {
      console.log("Ouch!" + ex);
    });

JavaScript

  email.openInbox()
    .then(() => {
        console.log("Cool!");
    })
    .catch((ex) => {
      console.log("Ouch!" + ex);
    })

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i nativescript-open-inbox

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    14.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • franciscojaimesfreyre