https://github.com/essent/nativescript-in-app-notifications
NativeScript plugin to present notifications when the app is in foreground mode.
https://github.com/essent/nativescript-in-app-notifications
Last synced: about 2 months ago
JSON representation
NativeScript plugin to present notifications when the app is in foreground mode.
- Host: GitHub
- URL: https://github.com/essent/nativescript-in-app-notifications
- Owner: Essent
- License: other
- Created: 2017-06-14T09:43:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T01:07:31.000Z (over 3 years ago)
- Last Synced: 2025-10-11T12:52:56.498Z (8 months ago)
- Language: TypeScript
- Size: 4.31 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# NativeScript In App Notifications plugin
[](https://www.npmjs.com/package/nativescript-in-app-notifications)
This is a plugin to show in app notifications on iOS, using [BSForegroundNotification](https://github.com/Essent/ForegroundNotification/tree/3.1) v3.1).
## Demo
Check out the [demo](./demo) folder for a sample usage.
## Angular 2
Usage:
1. Add the plugin to your project:
```ts
npm install nativescript-in-app-notifications
```
2. To show a notification call `showNotification`:
```ts
InAppNotifications.getInstance().showNotification('This is a notification', 'This is the title', () => {
console.log('tap');
});
```
# Try the Demo
To try the demo run the following commands:
```sh
npm run setup
npm run build.demo
npm run dev.ios
```
If you change files in the demo project and want to run the app again:
```sh
npm run build.demo
npm run dev.ios
```