├── .gitignore
├── .travis.yml
├── LICENSE
├── README.md
├── demo-ng
├── App_Resources
│ ├── Android
│ │ ├── app.gradle
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ └── res
│ │ │ ├── drawable-hdpi
│ │ │ ├── background.png
│ │ │ ├── icon.png
│ │ │ └── logo.png
│ │ │ ├── drawable-ldpi
│ │ │ ├── background.png
│ │ │ ├── icon.png
│ │ │ └── logo.png
│ │ │ ├── drawable-mdpi
│ │ │ ├── background.png
│ │ │ ├── icon.png
│ │ │ └── logo.png
│ │ │ ├── drawable-nodpi
│ │ │ └── splash_screen.xml
│ │ │ ├── drawable-xhdpi
│ │ │ ├── background.png
│ │ │ ├── icon.png
│ │ │ └── logo.png
│ │ │ ├── drawable-xxhdpi
│ │ │ ├── background.png
│ │ │ ├── icon.png
│ │ │ └── logo.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ ├── background.png
│ │ │ ├── icon.png
│ │ │ └── logo.png
│ │ │ ├── values-v21
│ │ │ ├── colors.xml
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ └── styles.xml
│ └── iOS
│ │ ├── Assets.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── icon-1024.png
│ │ │ ├── icon-20.png
│ │ │ ├── icon-20@2x.png
│ │ │ ├── icon-20@3x.png
│ │ │ ├── icon-29.png
│ │ │ ├── icon-29@2x.png
│ │ │ ├── icon-29@3x.png
│ │ │ ├── icon-40.png
│ │ │ ├── icon-40@2x.png
│ │ │ ├── icon-40@3x.png
│ │ │ ├── icon-60@2x.png
│ │ │ ├── icon-60@3x.png
│ │ │ ├── icon-76.png
│ │ │ ├── icon-76@2x.png
│ │ │ └── icon-83.5@2x.png
│ │ ├── Contents.json
│ │ ├── LaunchImage.launchimage
│ │ │ ├── Contents.json
│ │ │ ├── Default-1125h.png
│ │ │ ├── Default-568h@2x.png
│ │ │ ├── Default-667h@2x.png
│ │ │ ├── Default-736h@3x.png
│ │ │ ├── Default-Landscape-X.png
│ │ │ ├── Default-Landscape.png
│ │ │ ├── Default-Landscape@2x.png
│ │ │ ├── Default-Landscape@3x.png
│ │ │ ├── Default-Portrait.png
│ │ │ ├── Default-Portrait@2x.png
│ │ │ ├── Default.png
│ │ │ ├── Default@2x.png
│ │ │ ├── Phone XS Max - Portarit iOS 12.png
│ │ │ ├── iPhone XR - Landscape iOS 12.png
│ │ │ ├── iPhone XR - Portarit iOS 12.png
│ │ │ └── iPhone XS Max – Landscape iOS 12.png
│ │ ├── LaunchScreen.AspectFill.imageset
│ │ │ ├── Contents.json
│ │ │ ├── LaunchScree.AspectFill@3x.png
│ │ │ ├── LaunchScreen-AspectFill.png
│ │ │ └── LaunchScreen-AspectFill@2x.png
│ │ └── LaunchScreen.Center.imageset
│ │ │ ├── Contents.json
│ │ │ ├── LaunchScreen-Center.png
│ │ │ ├── LaunchScreen-Center@2x.png
│ │ │ └── LaunchScreen.Center@3x.png
│ │ ├── Info.plist
│ │ ├── LaunchScreen.storyboard
│ │ └── build.xcconfig
├── README.md
├── angular.json
├── nsconfig.json
├── package.json
├── references.d.ts
├── src
│ ├── app.css
│ ├── app
│ │ ├── app-routing.module.ts
│ │ ├── app.component.html
│ │ ├── app.component.ts
│ │ ├── app.module.ts
│ │ └── item
│ │ │ ├── items.component.html
│ │ │ └── items.component.ts
│ ├── main.ts
│ └── package.json
├── tsconfig.json
└── tsconfig.tns.json
├── demo-vue
├── .gitignore
├── README.md
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── app.gradle
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ ├── strings.xml
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ ├── strings.xml
│ │ │ │ └── styles.xml
│ │ └── iOS
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── icon-1024.png
│ │ │ │ ├── icon-29.png
│ │ │ │ ├── icon-29@2x.png
│ │ │ │ ├── icon-29@3x.png
│ │ │ │ ├── icon-40.png
│ │ │ │ ├── icon-40@2x.png
│ │ │ │ ├── icon-40@3x.png
│ │ │ │ ├── icon-60@2x.png
│ │ │ │ ├── icon-60@3x.png
│ │ │ │ ├── icon-76.png
│ │ │ │ ├── icon-76@2x.png
│ │ │ │ └── icon-83.5@2x.png
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.launchimage
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Default-1125h.png
│ │ │ │ ├── Default-568h@2x.png
│ │ │ │ ├── Default-667h@2x.png
│ │ │ │ ├── Default-736h@3x.png
│ │ │ │ ├── Default-Landscape-X.png
│ │ │ │ ├── Default-Landscape.png
│ │ │ │ ├── Default-Landscape@2x.png
│ │ │ │ ├── Default-Landscape@3x.png
│ │ │ │ ├── Default-Portrait.png
│ │ │ │ ├── Default-Portrait@2x.png
│ │ │ │ ├── Default.png
│ │ │ │ └── Default@2x.png
│ │ │ ├── LaunchScreen.AspectFill.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-AspectFill.png
│ │ │ │ └── LaunchScreen-AspectFill@2x.png
│ │ │ └── LaunchScreen.Center.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-Center.png
│ │ │ │ └── LaunchScreen-Center@2x.png
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── build.xcconfig
│ ├── app.scss
│ ├── assets
│ │ └── images
│ │ │ └── NativeScript-Vue.png
│ ├── components
│ │ └── App.vue
│ ├── fonts
│ │ └── .gitkeep
│ ├── main.js
│ └── package.json
└── package.json
├── demo
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── app.gradle
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── res
│ │ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── ic_stat_notify.png
│ │ │ │ ├── ic_stat_notify_silhouette.png
│ │ │ │ ├── ic_stat_smiley.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-ldpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-mdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── ic_stat_notify.png
│ │ │ │ ├── ic_stat_notify_silhouette.png
│ │ │ │ ├── ic_stat_smiley.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-nodpi
│ │ │ │ └── splash_screen.xml
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── ic_stat_notify.png
│ │ │ │ ├── ic_stat_notify_silhouette.png
│ │ │ │ ├── ic_stat_smiley.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── ic_stat_notify.png
│ │ │ │ ├── ic_stat_notify_silhouette.png
│ │ │ │ ├── ic_stat_smiley.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ └── iOS
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── icon-1024.png
│ │ │ │ ├── icon-29.png
│ │ │ │ ├── icon-29@2x.png
│ │ │ │ ├── icon-29@3x.png
│ │ │ │ ├── icon-40.png
│ │ │ │ ├── icon-40@2x.png
│ │ │ │ ├── icon-40@3x.png
│ │ │ │ ├── icon-60@2x.png
│ │ │ │ ├── icon-60@3x.png
│ │ │ │ ├── icon-76.png
│ │ │ │ ├── icon-76@2x.png
│ │ │ │ └── icon-83.5@2x.png
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.launchimage
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Default-1125h.png
│ │ │ │ ├── Default-568h@2x.png
│ │ │ │ ├── Default-667h@2x.png
│ │ │ │ ├── Default-736h@3x.png
│ │ │ │ ├── Default-Landscape-X.png
│ │ │ │ ├── Default-Landscape.png
│ │ │ │ ├── Default-Landscape@2x.png
│ │ │ │ ├── Default-Landscape@3x.png
│ │ │ │ ├── Default-Portrait.png
│ │ │ │ ├── Default-Portrait@2x.png
│ │ │ │ ├── Default.png
│ │ │ │ └── Default@2x.png
│ │ │ ├── LaunchScreen.AspectFill.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-AspectFill.png
│ │ │ │ └── LaunchScreen-AspectFill@2x.png
│ │ │ └── LaunchScreen.Center.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-Center.png
│ │ │ │ └── LaunchScreen-Center@2x.png
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── build.xcconfig
│ ├── README.md
│ ├── app-root.xml
│ ├── app.css
│ ├── app.ts
│ ├── bundle-config.ts
│ ├── main-page.ts
│ ├── main-page.xml
│ ├── main-view-model.ts
│ └── package.json
├── package.json
├── references.d.ts
├── tsconfig.json
└── tsconfig.tns.json
├── native-src
├── android
│ ├── .gitattributes
│ ├── .gitignore
│ ├── README.md
│ ├── android.iml
│ ├── app
│ │ ├── .gitignore
│ │ ├── app.iml
│ │ ├── build.gradle
│ │ ├── proguard-rules.pro
│ │ └── src
│ │ │ └── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── telerik
│ │ │ │ └── localnotifications
│ │ │ │ ├── Action.java
│ │ │ │ ├── ActionGroup.java
│ │ │ │ ├── Builder.java
│ │ │ │ ├── DownloadFileFromUrl.java
│ │ │ │ ├── LifecycleCallbacks.java
│ │ │ │ ├── LocalNotificationsPlugin.java
│ │ │ │ ├── LocalNotificationsPluginListener.java
│ │ │ │ ├── NotificationActionReceiver.java
│ │ │ │ ├── NotificationAlarmReceiver.java
│ │ │ │ ├── NotificationClearedReceiver.java
│ │ │ │ ├── NotificationRestoreReceiver.java
│ │ │ │ └── Store.java
│ │ │ └── res
│ │ │ └── values
│ │ │ └── strings.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── locnotplugin.iml
│ └── settings.gradle
└── ios
│ ├── .gitattributes
│ ├── .gitignore
│ ├── LocalNotificationsPlugin.xcodeproj
│ ├── project.pbxproj
│ └── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ └── PushPlugin.xccheckout
│ ├── LocalNotificationsPlugin
│ ├── Info.plist
│ ├── LocalNotificationsPlugin.h
│ ├── Notification.h
│ ├── Notification.m
│ ├── NotificationManager.h
│ └── NotificationManager.m
│ └── README.md
├── publish
├── pack.sh
├── package-lock.json
├── package.json
└── publish.sh
├── src
├── .npmignore
├── index.d.ts
├── local-notifications-common.ts
├── local-notifications.android.ts
├── local-notifications.ios.ts
├── package.json
├── platforms
│ ├── android
│ │ └── app-release.aar
│ └── ios
│ │ ├── LocalNotificationsPlugin.framework
│ │ ├── Headers
│ │ │ ├── LocalNotificationsPlugin.h
│ │ │ ├── Notification.h
│ │ │ └── NotificationManager.h
│ │ ├── Info.plist
│ │ ├── LocalNotificationsPlugin
│ │ └── Modules
│ │ │ └── module.modulemap
│ │ └── typings
│ │ └── objc!LocalNotificationsPlugin.d.ts
├── references.d.ts
└── tsconfig.json
└── tslint.json
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vscode/
3 | node_modules/
4 | *.js
5 | !demo-vue/app/main.js
6 | src/*.d.ts
7 | !src/index.d.ts
8 | !src/references.d.ts
9 | demo/platforms
10 | demo-ng/platforms
11 | publish/package/
12 | native-src/android/.project
13 | native-src/android/local.properties
14 | native-src/android/.settings/
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | matrix:
2 | include:
3 | - stage: "Lint"
4 | language: node_js
5 | os: linux
6 | node_js: "10"
7 | script: cd src && npm run ci.tslint
8 | - stage: "WebPack, Build"
9 | os: osx
10 | env:
11 | - WebPack="iOS"
12 | osx_image: xcode11.2
13 | language: node_js
14 | node_js: "10"
15 | jdk: oraclejdk8
16 | before_script: pod repo update
17 | script: cd demo && npm run build.plugin && npm i && tns build ios --bundle --env.uglify
18 | - language: android
19 | os: linux
20 | env:
21 | - WebPack="Android"
22 | jdk: oraclejdk8
23 | before_install: nvm install 8
24 | script: cd demo && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot
25 | - language: android
26 | env:
27 | - BuildAndroid="28"
28 | os: linux
29 | dist: trusty
30 | jdk: oraclejdk8
31 | before_install: nvm install 10
32 | script:
33 | - cd src && npm run build && cd ../demo && tns build android
34 | - os: osx
35 | osx_image: xcode11.2
36 | language: node_js
37 | node_js: "10"
38 | jdk: oraclejdk8
39 | before_script: pod repo update
40 | script:
41 | - cd src && npm run build && cd ../demo && tns build ios
42 |
43 | android:
44 | components:
45 | - tools
46 | - platform-tools
47 | - build-tools-28.0.3
48 | - android-28
49 | - extra-android-m2repository
50 | - sys-img-armeabi-v7a-android-21
51 |
52 | before_install:
53 | - sudo pip install --upgrade pip
54 | - sudo pip install six
55 |
56 | install:
57 | - echo no | npm install -g nativescript@6
58 | - tns usage-reporting disable
59 | - tns error-reporting disable
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | // Add your native dependencies here:
2 |
3 | // Uncomment to add recyclerview-v7 dependency
4 | //dependencies {
5 | // implementation 'com.android.support:recyclerview-v7:+'
6 | //}
7 |
8 | // If you want to add something to be applied before applying plugins' include.gradle files
9 | // e.g. project.ext.googlePlayServicesVersion = "15.0.1"
10 | // create a file named before-plugins.gradle in the current directory and place it there
11 |
12 | android {
13 | defaultConfig {
14 | generatedDensities = []
15 | }
16 | aaptOptions {
17 | additionalParameters "--no-version-vectors"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/demo-ng/App_Resources/Android/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
21 |
22 |
23 |
31 |
32 |
34 |
35 |
36 |
42 |
43 |
45 |
46 |
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "icon-20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "icon-20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "icon-29.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "icon-29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "icon-29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "icon-40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "icon-40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "icon-60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "icon-60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "icon-20.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "icon-20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "icon-29.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "icon-29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "icon-40.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "icon-40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "icon-76.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "icon-76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "icon-83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "icon-1024.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Phone XS Max - Portarit iOS 12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Phone XS Max - Portarit iOS 12.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/iPhone XR - Landscape iOS 12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/iPhone XR - Landscape iOS 12.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/iPhone XR - Portarit iOS 12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/iPhone XR - Portarit iOS 12.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/iPhone XS Max – Landscape iOS 12.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/iPhone XS Max – Landscape iOS 12.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-AspectFill.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-AspectFill@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchScree.AspectFill@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScree.AspectFill@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScree.AspectFill@3x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-Center.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-Center@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchScreen.Center@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen.Center@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-ng/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen.Center@3x.png
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiresFullScreen
28 |
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/demo-ng/App_Resources/iOS/build.xcconfig:
--------------------------------------------------------------------------------
1 | // You can add custom settings here
2 | // for example you can uncomment the following line to force distribution code signing
3 | // CODE_SIGN_IDENTITY = iPhone Distribution
4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID;
6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
8 |
--------------------------------------------------------------------------------
/demo-ng/README.md:
--------------------------------------------------------------------------------
1 | # NativeScript Angular Template
2 |
3 | This template creates a "Hello, world" NativeScript app using TypeScript and Angular.
4 |
5 | You can create a new app that uses this template with either the `--template` option.
6 |
7 | ```
8 | tns create my-app-name --template tns-template-hello-world-ng
9 | ```
10 |
11 | Or the `--ng` shorthand.
12 |
13 | ```
14 | tns create my-app-name --ng
15 | ```
16 |
17 | > Note: Both commands will create a new NativeScript app that uses the latest version of this template published to [npm] (https://www.npmjs.com/package/tns-template-hello-world-ng).
18 |
19 | If you want to create a new app that uses the source of the template from the `master` branch, you can execute the following:
20 |
21 | ```
22 | tns create my-app-name --template https://github.com/NativeScript/template-hello-world-ng.git#master
23 | ```
24 |
25 | **NB:** Please, have in mind that the master branch may refer to dependencies that are not on NPM yet!
26 |
27 | # Issues
28 |
29 | Issues related to `template-hello-world-ng` template should be logged in the https://github.com/NativeScript/NativeScript repository.
30 |
--------------------------------------------------------------------------------
/demo-ng/angular.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3 | "version": 1,
4 | "newProjectRoot": "projects",
5 | "cli": {
6 | "defaultCollection": "@nativescript/schematics"
7 | },
8 | "projects": {
9 | "hello-world": {
10 | "root": "",
11 | "sourceRoot": "src",
12 | "projectType": "application",
13 | "prefix": "ns"
14 | }
15 | },
16 | "defaultProject": "hello-world"
17 | }
18 |
--------------------------------------------------------------------------------
/demo-ng/nsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "appResourcesPath": "App_Resources",
3 | "appPath": "src"
4 | }
5 |
--------------------------------------------------------------------------------
/demo-ng/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "nativescript": {
3 | "id": "org.nativescript.demong",
4 | "tns-android": {
5 | "version": "5.1.0"
6 | },
7 | "tns-ios": {
8 | "version": "5.1.0"
9 | }
10 | },
11 | "description": "NativeScript Application",
12 | "license": "SEE LICENSE IN ",
13 | "repository": "",
14 | "dependencies": {
15 | "@angular/animations": "~7.1.0",
16 | "@angular/common": "~7.1.0",
17 | "@angular/compiler": "~7.1.0",
18 | "@angular/core": "~7.1.0",
19 | "@angular/forms": "~7.1.0",
20 | "@angular/http": "~7.1.0",
21 | "@angular/platform-browser": "~7.1.0",
22 | "@angular/platform-browser-dynamic": "~7.1.0",
23 | "@angular/router": "~7.1.0",
24 | "nativescript-angular": "~7.1.0",
25 | "nativescript-local-notifications": "file:../src",
26 | "nativescript-theme-core": "~1.0.4",
27 | "reflect-metadata": "~0.1.8",
28 | "rxjs": "~6.3.0",
29 | "tns-core-modules": "~5.1.0",
30 | "zone.js": "^0.8.26"
31 | },
32 | "devDependencies": {
33 | "@nativescript/schematics": "~0.5.0",
34 | "nativescript-dev-typescript": "libs",
35 | "nativescript-dev-webpack": "~0.19.0",
36 | "@angular/compiler-cli": "~7.1.0",
37 | "@ngtools/webpack": "~7.1.0"
38 | },
39 | "readme": "NativeScript Application"
40 | }
41 |
--------------------------------------------------------------------------------
/demo-ng/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
--------------------------------------------------------------------------------
/demo-ng/src/app.css:
--------------------------------------------------------------------------------
1 | /*
2 | In NativeScript, the app.css file is where you place CSS rules that
3 | you would like to apply to your entire application. Check out
4 | http://docs.nativescript.org/ui/styling for a full list of the CSS
5 | selectors and properties you can use to style UI components.
6 |
7 | /*
8 | In many cases you may want to use the NativeScript core theme instead
9 | of writing your own CSS rules. For a full list of class names in the theme
10 | refer to http://docs.nativescript.org/ui/theme.
11 | */
12 | @import '~nativescript-theme-core/css/core.light.css';
13 |
--------------------------------------------------------------------------------
/demo-ng/src/app/app-routing.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from "@angular/core";
2 | import { Routes } from "@angular/router";
3 | import { NativeScriptRouterModule } from "nativescript-angular/router";
4 |
5 | import { ItemsComponent } from "./item/items.component";
6 |
7 | const routes: Routes = [
8 | {path: "", redirectTo: "/items", pathMatch: "full"},
9 | {path: "items", component: ItemsComponent}
10 | ];
11 |
12 | @NgModule({
13 | imports: [NativeScriptRouterModule.forRoot(routes)],
14 | exports: [NativeScriptRouterModule]
15 | })
16 | export class AppRoutingModule {
17 | }
--------------------------------------------------------------------------------
/demo-ng/src/app/app.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/demo-ng/src/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from "@angular/core";
2 |
3 | @Component({
4 | selector: "ns-app",
5 | moduleId: module.id,
6 | templateUrl: "./app.component.html",
7 | })
8 | export class AppComponent { }
9 |
--------------------------------------------------------------------------------
/demo-ng/src/app/app.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
2 | import { NativeScriptModule } from "nativescript-angular/nativescript.module";
3 |
4 | import { AppRoutingModule } from "./app-routing.module";
5 | import { AppComponent } from "./app.component";
6 | import { ItemsComponent } from "./item/items.component";
7 |
8 | // Uncomment and add to NgModule imports if you need to use two-way binding
9 | // import { NativeScriptFormsModule } from "nativescript-angular/forms";
10 |
11 | // Uncomment and add to NgModule imports if you need to use the HttpClient wrapper
12 | // import { NativeScriptHttpClientModule } from "nativescript-angular/http-client";
13 |
14 | @NgModule({
15 | bootstrap: [
16 | AppComponent
17 | ],
18 | imports: [
19 | NativeScriptModule,
20 | AppRoutingModule
21 | ],
22 | declarations: [
23 | AppComponent,
24 | ItemsComponent
25 | ],
26 | providers: [],
27 | schemas: [
28 | NO_ERRORS_SCHEMA
29 | ]
30 | })
31 |
32 | export class AppModule {
33 | }
34 |
--------------------------------------------------------------------------------
/demo-ng/src/app/item/items.component.html:
--------------------------------------------------------------------------------
1 |
8 |
9 |
13 |
14 |
15 |
16 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/demo-ng/src/app/item/items.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from "@angular/core";
2 | import { LocalNotifications } from "nativescript-local-notifications";
3 |
4 | @Component({
5 | selector: "ns-items",
6 | moduleId: module.id,
7 | templateUrl: "./items.component.html",
8 | })
9 | export class ItemsComponent {
10 |
11 | constructor() {
12 | LocalNotifications.addOnMessageReceivedCallback(notificationData => {
13 | console.log("Notification received: " + JSON.stringify(notificationData));
14 | });
15 | }
16 |
17 | schedule(): void {
18 | LocalNotifications.schedule(
19 | [{
20 | id: 5,
21 | thumbnail: true,
22 | title: 'Richard wants your input',
23 | body: '"Hey man, what do you think of the new design?" (swipe down to reply, or tap to open the app)',
24 | forceShowWhenInForeground: true,
25 | at: new Date(new Date().getTime() + 10 * 1000),
26 | actions: [
27 | {
28 | id: "input-richard",
29 | type: "input",
30 | title: "Tap here to reply",
31 | placeholder: "Type to reply..",
32 | submitLabel: "Reply",
33 | launch: true,
34 | editable: true,
35 | // choices: ["Red", "Yellow", "Green"] // TODO Android only, but yet to see it in action
36 | }
37 | ]
38 | }])
39 | .then(() => {
40 | alert({
41 | title: "Notification scheduled",
42 | message: "ID: 5",
43 | okButtonText: "OK, thanks"
44 | });
45 | })
46 | .catch(error => console.log("doScheduleId5WithInput error: " + error));
47 | }
48 | }
--------------------------------------------------------------------------------
/demo-ng/src/main.ts:
--------------------------------------------------------------------------------
1 | // this import should be first in order to load some required settings (like globals and reflect-metadata)
2 | import { platformNativeScriptDynamic } from "nativescript-angular/platform";
3 |
4 | import { AppModule } from "./app/app.module";
5 |
6 | // Add this so for iOS 10+ we can do some wiring (set the iOS UNUserNotificationCenter delegate, to be precise).
7 | // Not needed if your app loads the plugin on startup anyway.
8 | // You'll know you need this if on iOS 10+ notifications are not received by your app.
9 | require ("nativescript-local-notifications");
10 |
11 | // A traditional NativeScript application starts by initializing global objects, setting up global CSS rules, creating, and navigating to the main page.
12 | // Angular applications need to take care of their own initialization: modules, components, directives, routes, DI providers.
13 | // A NativeScript Angular app needs to make both paradigms work together, so we provide a wrapper platform object, platformNativeScriptDynamic,
14 | // that sets up a NativeScript application and can bootstrap the Angular framework.
15 | platformNativeScriptDynamic().bootstrapModule(AppModule);
16 |
--------------------------------------------------------------------------------
/demo-ng/src/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "main": "main.js",
3 | "android": {
4 | "v8Flags": "--expose_gc"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo-ng/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es5",
5 | "experimentalDecorators": true,
6 | "emitDecoratorMetadata": true,
7 | "noEmitHelpers": true,
8 | "noEmitOnError": true,
9 | "lib": [
10 | "es6",
11 | "dom",
12 | "es2015.iterable"
13 | ],
14 | "baseUrl": ".",
15 | "paths": {
16 | "~/*": [
17 | "src/*"
18 | ],
19 | "*": [
20 | "./node_modules/tns-core-modules/*",
21 | "./node_modules/*"
22 | ]
23 | }
24 | },
25 | "exclude": [
26 | "node_modules",
27 | "platforms"
28 | ]
29 | }
--------------------------------------------------------------------------------
/demo-ng/tsconfig.tns.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig",
3 | "compilerOptions": {
4 | "module": "es2015",
5 | "moduleResolution": "node"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/demo-vue/.gitignore:
--------------------------------------------------------------------------------
1 | # JetBrains project files
2 | .idea
3 |
4 | # NPM
5 | node_modules
6 |
7 | # NativeScript application
8 | hooks
9 | platforms
10 |
--------------------------------------------------------------------------------
/demo-vue/README.md:
--------------------------------------------------------------------------------
1 | # Local Notifications
2 |
3 | > Vue demo app for the Local Notifications plugin
4 |
5 | ## Usage
6 |
7 | ``` bash
8 | # Install dependencies
9 | npm install
10 |
11 | # Build for production
12 | tns build --bundle
13 |
14 | # Build, watch for changes and debug the application
15 | tns debug --bundle
16 |
17 | # Build, watch for changes and run the application
18 | tns run --bundle
19 | ```
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | // Add your native dependencies here:
2 |
3 | android {
4 | defaultConfig {
5 | generatedDensities = []
6 | applicationId = "org.nativescript.plugindemo.vue.localnotifications"
7 | }
8 | aaptOptions {
9 | additionalParameters "--no-version-vectors"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/values-v21/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Local Notifications
4 | Local Notifications
5 |
6 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #53ba82
5 | #33B5E5
6 | #272734
7 |
8 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Local Notifications
4 | Local Notifications
5 |
6 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/Android/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
17 |
18 |
20 |
21 |
22 |
29 |
30 |
32 |
33 |
34 |
39 |
40 |
42 |
43 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "29x29",
5 | "idiom" : "iphone",
6 | "filename" : "icon-29.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "29x29",
11 | "idiom" : "iphone",
12 | "filename" : "icon-29@2x.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "icon-29@3x.png",
19 | "scale" : "3x"
20 | },
21 | {
22 | "size" : "40x40",
23 | "idiom" : "iphone",
24 | "filename" : "icon-40@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "40x40",
29 | "idiom" : "iphone",
30 | "filename" : "icon-40@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "60x60",
35 | "idiom" : "iphone",
36 | "filename" : "icon-60@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "60x60",
41 | "idiom" : "iphone",
42 | "filename" : "icon-60@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "29x29",
47 | "idiom" : "ipad",
48 | "filename" : "icon-29.png",
49 | "scale" : "1x"
50 | },
51 | {
52 | "size" : "29x29",
53 | "idiom" : "ipad",
54 | "filename" : "icon-29@2x.png",
55 | "scale" : "2x"
56 | },
57 | {
58 | "size" : "40x40",
59 | "idiom" : "ipad",
60 | "filename" : "icon-40.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "40x40",
65 | "idiom" : "ipad",
66 | "filename" : "icon-40@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "76x76",
71 | "idiom" : "ipad",
72 | "filename" : "icon-76.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "76x76",
77 | "idiom" : "ipad",
78 | "filename" : "icon-76@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "83.5x83.5",
83 | "idiom" : "ipad",
84 | "filename" : "icon-83.5@2x.png",
85 | "scale" : "2x"
86 | },
87 | {
88 | "size" : "1024x1024",
89 | "idiom" : "ios-marketing",
90 | "filename" : "icon-1024.png",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-AspectFill.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-AspectFill@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-Center.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-Center@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | Local Notifications
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0.0
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiresFullScreen
28 |
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/demo-vue/app/App_Resources/iOS/build.xcconfig:
--------------------------------------------------------------------------------
1 | // You can add custom settings here
2 | // for example you can uncomment the following line to force distribution code signing
3 | // CODE_SIGN_IDENTITY = iPhone Distribution
4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID;
6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
8 |
--------------------------------------------------------------------------------
/demo-vue/app/app.scss:
--------------------------------------------------------------------------------
1 | // NativeScript core theme
2 | // @see https://docs.nativescript.org/ui/theme
3 | @import '~nativescript-theme-core/scss/dark';
4 |
5 | // Override variables here
6 |
7 | @import '~nativescript-theme-core/scss/index';
8 |
9 | // Global SCSS styling
10 | // @see https://docs.nativescript.org/ui/styling
11 |
--------------------------------------------------------------------------------
/demo-vue/app/assets/images/NativeScript-Vue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/assets/images/NativeScript-Vue.png
--------------------------------------------------------------------------------
/demo-vue/app/components/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
97 |
98 |
120 |
--------------------------------------------------------------------------------
/demo-vue/app/fonts/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo-vue/app/fonts/.gitkeep
--------------------------------------------------------------------------------
/demo-vue/app/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'nativescript-vue'
2 | import App from './components/App'
3 |
4 | require ("nativescript-local-notifications");
5 |
6 | // Prints Vue logs when --env.production is *NOT* set while building
7 | Vue.config.silent = (TNS_ENV === 'production')
8 |
9 |
10 | new Vue({
11 | render: h => h('frame', [h(App)])
12 | }).$start()
13 |
--------------------------------------------------------------------------------
/demo-vue/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "android": {
3 | "v8Flags": "--expose_gc"
4 | },
5 | "main": "main",
6 | "name": "demo-vue",
7 | "version": "1.0.0"
8 | }
9 |
--------------------------------------------------------------------------------
/demo-vue/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "demo-vue",
3 | "version": "1.0.0",
4 | "description": "Vue demo app for the Local Notifications plugin",
5 | "author": "EddyVerbruggen ",
6 | "license": "MIT",
7 | "nativescript": {
8 | "id": "org.nativescript.plugindemo.vue.localnotifications",
9 | "tns-ios": {
10 | "version": "5.1.0"
11 | },
12 | "tns-android": {
13 | "version": "5.1.0"
14 | }
15 | },
16 | "dependencies": {
17 | "nativescript-local-notifications": "file:../src",
18 | "nativescript-theme-core": "^1.0.4",
19 | "nativescript-vue": "^2.0.0",
20 | "tns-core-modules": "~5.1.0"
21 | },
22 | "devDependencies": {
23 | "@babel/core": "^7.0.0",
24 | "@babel/preset-env": "^7.0.0",
25 | "babel-loader": "^8.0.2",
26 | "babel-traverse": "6.26.0",
27 | "babel-types": "6.26.0",
28 | "babylon": "6.18.0",
29 | "clean-webpack-plugin": "^0.1.19",
30 | "copy-webpack-plugin": "^4.5.2",
31 | "css-loader": "^1.0.0",
32 | "lazy": "1.0.11",
33 | "nativescript-dev-webpack": "next",
34 | "nativescript-vue-template-compiler": "^2.0.0",
35 | "nativescript-worker-loader": "~0.9.0",
36 | "node-sass": "^4.9.2",
37 | "sass-loader": "^7.1.0",
38 | "terser-webpack-plugin": "^1.1.0",
39 | "typescript": "~3.1.6",
40 | "vue-loader": "^15.2.6",
41 | "webpack": "^4.16.4",
42 | "webpack-bundle-analyzer": "~3.6.0",
43 | "webpack-cli": "^3.1.0"
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | // Add your native dependencies here:
2 |
3 | // Uncomment to add recyclerview-v7 dependency
4 | //dependencies {
5 | // compile 'com.android.support:recyclerview-v7:+'
6 | //}
7 |
8 | android {
9 | defaultConfig {
10 | generatedDensities = []
11 | applicationId = "org.nativescript.plugindemo.localnotifications"
12 | }
13 | aaptOptions {
14 | additionalParameters "--no-version-vectors"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_stat_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_stat_notify.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_stat_notify_silhouette.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_stat_notify_silhouette.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_stat_smiley.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/ic_stat_smiley.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_stat_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_stat_notify.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_stat_notify_silhouette.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_stat_notify_silhouette.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_stat_smiley.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/ic_stat_smiley.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_stat_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_stat_notify.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_stat_notify_silhouette.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_stat_notify_silhouette.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_stat_smiley.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/ic_stat_smiley.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_stat_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_stat_notify.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_stat_notify_silhouette.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_stat_notify_silhouette.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_stat_smiley.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/ic_stat_smiley.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
21 |
22 |
23 |
31 |
32 |
34 |
35 |
36 |
42 |
43 |
45 |
46 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "29x29",
5 | "idiom" : "iphone",
6 | "filename" : "icon-29.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "29x29",
11 | "idiom" : "iphone",
12 | "filename" : "icon-29@2x.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "icon-29@3x.png",
19 | "scale" : "3x"
20 | },
21 | {
22 | "size" : "40x40",
23 | "idiom" : "iphone",
24 | "filename" : "icon-40@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "40x40",
29 | "idiom" : "iphone",
30 | "filename" : "icon-40@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "60x60",
35 | "idiom" : "iphone",
36 | "filename" : "icon-60@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "60x60",
41 | "idiom" : "iphone",
42 | "filename" : "icon-60@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "29x29",
47 | "idiom" : "ipad",
48 | "filename" : "icon-29.png",
49 | "scale" : "1x"
50 | },
51 | {
52 | "size" : "29x29",
53 | "idiom" : "ipad",
54 | "filename" : "icon-29@2x.png",
55 | "scale" : "2x"
56 | },
57 | {
58 | "size" : "40x40",
59 | "idiom" : "ipad",
60 | "filename" : "icon-40.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "40x40",
65 | "idiom" : "ipad",
66 | "filename" : "icon-40@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "76x76",
71 | "idiom" : "ipad",
72 | "filename" : "icon-76.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "76x76",
77 | "idiom" : "ipad",
78 | "filename" : "icon-76@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "83.5x83.5",
83 | "idiom" : "ipad",
84 | "filename" : "icon-83.5@2x.png",
85 | "scale" : "2x"
86 | },
87 | {
88 | "size" : "1024x1024",
89 | "idiom" : "ios-marketing",
90 | "filename" : "icon-1024.png",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "extent" : "full-screen",
5 | "idiom" : "iphone",
6 | "subtype" : "2436h",
7 | "filename" : "Default-1125h.png",
8 | "minimum-system-version" : "11.0",
9 | "orientation" : "portrait",
10 | "scale" : "3x"
11 | },
12 | {
13 | "orientation" : "landscape",
14 | "idiom" : "iphone",
15 | "extent" : "full-screen",
16 | "filename" : "Default-Landscape-X.png",
17 | "minimum-system-version" : "11.0",
18 | "subtype" : "2436h",
19 | "scale" : "3x"
20 | },
21 | {
22 | "extent" : "full-screen",
23 | "idiom" : "iphone",
24 | "subtype" : "736h",
25 | "filename" : "Default-736h@3x.png",
26 | "minimum-system-version" : "8.0",
27 | "orientation" : "portrait",
28 | "scale" : "3x"
29 | },
30 | {
31 | "extent" : "full-screen",
32 | "idiom" : "iphone",
33 | "subtype" : "736h",
34 | "filename" : "Default-Landscape@3x.png",
35 | "minimum-system-version" : "8.0",
36 | "orientation" : "landscape",
37 | "scale" : "3x"
38 | },
39 | {
40 | "extent" : "full-screen",
41 | "idiom" : "iphone",
42 | "subtype" : "667h",
43 | "filename" : "Default-667h@2x.png",
44 | "minimum-system-version" : "8.0",
45 | "orientation" : "portrait",
46 | "scale" : "2x"
47 | },
48 | {
49 | "orientation" : "portrait",
50 | "idiom" : "iphone",
51 | "filename" : "Default@2x.png",
52 | "extent" : "full-screen",
53 | "minimum-system-version" : "7.0",
54 | "scale" : "2x"
55 | },
56 | {
57 | "extent" : "full-screen",
58 | "idiom" : "iphone",
59 | "subtype" : "retina4",
60 | "filename" : "Default-568h@2x.png",
61 | "minimum-system-version" : "7.0",
62 | "orientation" : "portrait",
63 | "scale" : "2x"
64 | },
65 | {
66 | "orientation" : "portrait",
67 | "idiom" : "ipad",
68 | "filename" : "Default-Portrait.png",
69 | "extent" : "full-screen",
70 | "minimum-system-version" : "7.0",
71 | "scale" : "1x"
72 | },
73 | {
74 | "orientation" : "landscape",
75 | "idiom" : "ipad",
76 | "filename" : "Default-Landscape.png",
77 | "extent" : "full-screen",
78 | "minimum-system-version" : "7.0",
79 | "scale" : "1x"
80 | },
81 | {
82 | "orientation" : "portrait",
83 | "idiom" : "ipad",
84 | "filename" : "Default-Portrait@2x.png",
85 | "extent" : "full-screen",
86 | "minimum-system-version" : "7.0",
87 | "scale" : "2x"
88 | },
89 | {
90 | "orientation" : "landscape",
91 | "idiom" : "ipad",
92 | "filename" : "Default-Landscape@2x.png",
93 | "extent" : "full-screen",
94 | "minimum-system-version" : "7.0",
95 | "scale" : "2x"
96 | },
97 | {
98 | "orientation" : "portrait",
99 | "idiom" : "iphone",
100 | "filename" : "Default.png",
101 | "extent" : "full-screen",
102 | "scale" : "1x"
103 | },
104 | {
105 | "orientation" : "portrait",
106 | "idiom" : "iphone",
107 | "filename" : "Default@2x.png",
108 | "extent" : "full-screen",
109 | "scale" : "2x"
110 | },
111 | {
112 | "orientation" : "portrait",
113 | "idiom" : "iphone",
114 | "filename" : "Default-568h@2x.png",
115 | "extent" : "full-screen",
116 | "subtype" : "retina4",
117 | "scale" : "2x"
118 | },
119 | {
120 | "orientation" : "portrait",
121 | "idiom" : "ipad",
122 | "extent" : "to-status-bar",
123 | "scale" : "1x"
124 | },
125 | {
126 | "orientation" : "portrait",
127 | "idiom" : "ipad",
128 | "filename" : "Default-Portrait.png",
129 | "extent" : "full-screen",
130 | "scale" : "1x"
131 | },
132 | {
133 | "orientation" : "landscape",
134 | "idiom" : "ipad",
135 | "extent" : "to-status-bar",
136 | "scale" : "1x"
137 | },
138 | {
139 | "orientation" : "landscape",
140 | "idiom" : "ipad",
141 | "filename" : "Default-Landscape.png",
142 | "extent" : "full-screen",
143 | "scale" : "1x"
144 | },
145 | {
146 | "orientation" : "portrait",
147 | "idiom" : "ipad",
148 | "extent" : "to-status-bar",
149 | "scale" : "2x"
150 | },
151 | {
152 | "orientation" : "portrait",
153 | "idiom" : "ipad",
154 | "filename" : "Default-Portrait@2x.png",
155 | "extent" : "full-screen",
156 | "scale" : "2x"
157 | },
158 | {
159 | "orientation" : "landscape",
160 | "idiom" : "ipad",
161 | "extent" : "to-status-bar",
162 | "scale" : "2x"
163 | },
164 | {
165 | "orientation" : "landscape",
166 | "idiom" : "ipad",
167 | "filename" : "Default-Landscape@2x.png",
168 | "extent" : "full-screen",
169 | "scale" : "2x"
170 | }
171 | ],
172 | "info" : {
173 | "version" : 1,
174 | "author" : "xcode"
175 | }
176 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-AspectFill.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-AspectFill@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-Center.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-Center@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiresFullScreen
28 |
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/build.xcconfig:
--------------------------------------------------------------------------------
1 | // You can add custom settings here
2 | // for example you can uncomment the following line to force distribution code signing
3 | // CODE_SIGN_IDENTITY = iPhone Distribution
4 | // To build for device with XCode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID;
6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
8 |
--------------------------------------------------------------------------------
/demo/app/README.md:
--------------------------------------------------------------------------------
1 | # NativeScript TypeScript Template
2 |
3 | This template creates a NativeScript app with the NativeScript hello world example,
4 | however, in this template the example is built with TypeScript.
5 |
6 | You can create a new app that uses this template with either the `--template` option.
7 |
8 | ```
9 | tns create my-app-name --template tns-template-hello-world-ts
10 | ```
11 |
12 | Or the `--tsc` shorthand.
13 |
14 | ```
15 | tns create my-app-name --tsc
16 | ```
17 |
18 | > Note: Both commands will create a new NativeScript app that uses the latest version of this template published to [npm] (https://www.npmjs.com/package/tns-template-hello-world-ts).
19 |
20 | If you want to create a new app that uses the source of the template from the `master` branch, you can execute the following:
21 |
22 | ```
23 | tns create my-app-name --template https://github.com/NativeScript/template-hello-world-ts.git#master
24 | ```
25 |
--------------------------------------------------------------------------------
/demo/app/app-root.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/demo/app/app.css:
--------------------------------------------------------------------------------
1 | @import '~nativescript-theme-core/css/core.light.css';
2 |
3 | page {
4 | background-color: #F4F4F4;
5 | }
6 |
7 | .tab-content {
8 | color: #808080;
9 | padding: 18;
10 | }
11 |
12 | .title {
13 | font-size: 18;
14 | margin: 0 0 8 0;
15 | color: #3c3c3c;
16 | /*horizontal-align: center;*/
17 | }
18 |
19 | label {
20 | font-size: 16;
21 | }
22 |
23 | Label.notification,
24 | Label.hint {
25 | font-size: 14;
26 | margin: 8;
27 | }
28 |
29 | button {
30 | background-color: #E0A458;
31 | padding: 8;
32 | margin: 8;
33 | font-size: 14;
34 | border-radius: 4;
35 | }
36 |
37 | .button {
38 | color: #FFFFFF;
39 | }
40 |
41 | .button-positive {
42 | background-color: #90A959;
43 | }
44 |
45 | .button-danger {
46 | background-color: #A63D40;
47 | }
48 |
49 | .button-neutral {
50 | background-color: #6494AA;
51 | }
52 |
--------------------------------------------------------------------------------
/demo/app/app.ts:
--------------------------------------------------------------------------------
1 | import "./bundle-config";
2 | import * as application from "tns-core-modules/application";
3 |
4 | // Add this so for iOS 10+ we can do some wiring (set the iOS UNUserNotificationCenter delegate, to be precise).
5 | // Not needed if your app loads the plugin on startup anyway.
6 | // You'll know you need this if on iOS 10+ notifications are not received by your app.
7 | require ("nativescript-local-notifications");
8 |
9 | application.run({moduleName: "app-root"});
10 |
--------------------------------------------------------------------------------
/demo/app/bundle-config.ts:
--------------------------------------------------------------------------------
1 | if ((global).TNS_WEBPACK) {
2 | // Register tns-core-modules UI framework modules
3 | require("bundle-entry-points");
4 |
5 | // Register application modules
6 | // This will register each `root`, `page`, `fragment` postfixed xml, css, js, ts, scss file in the app/ folder
7 | const context = (require).context("~/", true, /(root|page|fragment)\.(xml|css|js|ts|scss|less|sass)$/);
8 | global.registerWebpackModules(context);
9 | }
10 |
--------------------------------------------------------------------------------
/demo/app/main-page.ts:
--------------------------------------------------------------------------------
1 | import { EventData } from "tns-core-modules/data/observable";
2 | import { Page } from "tns-core-modules/ui/page";
3 | import { HelloWorldModel } from "./main-view-model";
4 |
5 | export function navigatingTo(args: EventData) {
6 | const page = args.object;
7 | page.bindingContext = new HelloWorldModel();
8 | }
9 |
--------------------------------------------------------------------------------
/demo/app/main-page.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/demo/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "android": {
3 | "v8Flags": "--expose_gc",
4 | "markingMode": "none"
5 | },
6 | "main": "app.js",
7 | "name": "tns-template-hello-world-ts",
8 | "version": "4.1.0"
9 | }
--------------------------------------------------------------------------------
/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "NativeScript Application",
3 | "license": "SEE LICENSE IN ",
4 | "readme": "NativeScript Application",
5 | "repository": "",
6 | "nativescript": {
7 | "id": "org.nativescript.plugindemo.localnotifications",
8 | "tns-ios": {
9 | "version": "6.0.1"
10 | },
11 | "tns-android": {
12 | "version": "6.0.0"
13 | }
14 | },
15 | "dependencies": {
16 | "nativescript-local-notifications": "file:../src",
17 | "nativescript-theme-core": "~1.0.6",
18 | "tns-core-modules": "~6.0.0"
19 | },
20 | "devDependencies": {
21 | "babel-traverse": "6.26.0",
22 | "babel-types": "6.26.0",
23 | "babylon": "6.18.0",
24 | "lazy": "1.0.11",
25 | "nativescript-dev-webpack": "1.0.1",
26 | "tns-platform-declarations": "~6.0.0",
27 | "typescript": "3.4.5"
28 | },
29 | "scripts": {
30 | "build.plugin": "cd ../src && npm run build"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/demo/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | ///
--------------------------------------------------------------------------------
/demo/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es6",
4 | "module": "commonjs",
5 | "declaration": false,
6 | "removeComments": true,
7 | "noLib": false,
8 | "emitDecoratorMetadata": true,
9 | "experimentalDecorators": true,
10 | "pretty": true,
11 | "allowUnreachableCode": false,
12 | "allowUnusedLabels": false,
13 | "noEmitHelpers": true,
14 | "noEmitOnError": false,
15 | "noImplicitAny": false,
16 | "noImplicitReturns": true,
17 | "noImplicitUseStrict": false,
18 | "noFallthroughCasesInSwitch": true,
19 | "typeRoots": [
20 | "./node_modules/@types",
21 | "./node_modules"
22 | ],
23 | "types": [],
24 | "lib": [
25 | "es6",
26 | "dom"
27 | ],
28 | "baseUrl": ".",
29 | "paths": {
30 | "~/*": [
31 | "app/*"
32 | ],
33 | "*": [
34 | "./node_modules/tns-core-modules/*",
35 | "./node_modules/*"
36 | ]
37 | }
38 | },
39 | "exclude": [
40 | "node_modules",
41 | "platforms"
42 | ],
43 | "compileOnSave": false
44 | }
--------------------------------------------------------------------------------
/demo/tsconfig.tns.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig",
3 | "compilerOptions": {
4 | "module": "es2015",
5 | "moduleResolution": "node"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/native-src/android/.gitattributes:
--------------------------------------------------------------------------------
1 | * -crlf
--------------------------------------------------------------------------------
/native-src/android/.gitignore:
--------------------------------------------------------------------------------
1 | out/
2 | .idea/
3 | .gradle/
4 | local.properties
5 | build/
--------------------------------------------------------------------------------
/native-src/android/README.md:
--------------------------------------------------------------------------------
1 | # Local Notifications Plugin library for NativeScript Android apps
2 |
3 | ## Building the framework
4 | - Open this folder as "an existing project" in Android Studio
5 | - Change anything needed
6 | - In the Gradle build window run `app > Tasks > build > clean` and `app > Tasks > build > build`
7 | - Copy the release .aar: from the plugin project root, run: `cp native-src/android/app/build/outputs/aar/app-release.aar src/platforms/android/`
8 |
--------------------------------------------------------------------------------
/native-src/android/android.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/native-src/android/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/native-src/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 |
3 | android {
4 | compileSdkVersion 28
5 | buildToolsVersion "28.0.3"
6 |
7 | defaultConfig {
8 | minSdkVersion 17
9 | targetSdkVersion 28
10 | versionCode 2
11 | versionName "1.1.1"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation fileTree(dir: 'libs', include: ['*.jar'])
23 | implementation 'androidx.legacy:legacy-support-v4:1.0.0'
24 | }
25 |
--------------------------------------------------------------------------------
/native-src/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in C:\Users\gprodano\AppData\Local\Android\android-sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/native-src/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
11 |
12 |
15 |
16 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/Action.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.content.Context;
4 | import androidx.core.app.RemoteInput;
5 | import android.util.Log;
6 |
7 | import org.json.JSONArray;
8 | import org.json.JSONObject;
9 |
10 | import static com.telerik.localnotifications.LocalNotificationsPlugin.TAG;
11 |
12 |
13 | /**
14 | * Holds the icon and title components that would be used in a
15 | * NotificationCompat.Action object. Does not include the PendingIntent so
16 | * that it may be generated each time the notification is built. Necessary to
17 | * compensate for missing functionality in the support library.
18 | */
19 | public final class Action {
20 |
21 | // The id for the click action
22 | public static final String CLICK_ACTION_ID = "default_action";
23 |
24 | // The application context
25 | private final Context context;
26 |
27 | // The action spec
28 | private final JSONObject options;
29 |
30 | /**
31 | * Structure to encapsulate a named action that can be shown as part of
32 | * this notification.
33 | *
34 | * @param context The application context.
35 | * @param options The action options.
36 | */
37 | Action(Context context, JSONObject options) {
38 | this.context = context;
39 | this.options = options;
40 | }
41 |
42 | /**
43 | * Gets the ID for the action.
44 | */
45 | public String getId() {
46 | return options.optString("id", getTitle());
47 | }
48 |
49 | /**
50 | * Gets the Title for the action.
51 | */
52 | public String getTitle() {
53 | return options.optString("title", "Tap here");
54 | }
55 |
56 | /**
57 | * Gets the icon for the action.
58 | */
59 | public int getIcon() {
60 | // TODO
61 | return android.R.drawable.screen_background_dark;
62 | /*
63 | AssetUtil assets = AssetUtil.getInstance(context);
64 | String resPath = options.optString("icon");
65 | int resId = assets.getResId(resPath);
66 |
67 | if (resId == 0) {
68 | resId = android.R.drawable.screen_background_dark;
69 | }
70 |
71 | return resId;
72 | */
73 | }
74 |
75 | /**
76 | * Gets the value of the launch flag.
77 | */
78 | public boolean isLaunchingApp() {
79 | return options.optBoolean("launch", true);
80 | }
81 |
82 | /**
83 | * Gets the type for the action.
84 | */
85 | public boolean isWithInput() {
86 | String type = options.optString("type");
87 | return "input".equals(type);
88 | }
89 |
90 | /**
91 | * Gets the input config in case of the action is of type input.
92 | */
93 | public RemoteInput getInput() {
94 | return new RemoteInput.Builder(getId())
95 | .setLabel(options.optString("placeholder"))
96 | .setAllowFreeFormInput(options.optBoolean("editable", true))
97 | .setChoices(getChoices())
98 | .build();
99 | }
100 |
101 | /**
102 | * List of possible choices for input actions.
103 | */
104 | private String[] getChoices() {
105 | JSONArray opts = options.optJSONArray("choices");
106 |
107 | Log.d(TAG, "getChoices, opts: " + opts);
108 |
109 | if (opts == null) {
110 | return null;
111 | }
112 |
113 | String[] choices = new String[opts.length()];
114 |
115 | for (int i = 0; i < choices.length; i++) {
116 | choices[i] = opts.optString(i);
117 | }
118 |
119 | Log.d(TAG, "getChoices, choices: " + choices);
120 | Log.d(TAG, "getChoices, choices.length: " + choices.length);
121 |
122 | return choices;
123 | }
124 |
125 | }
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/ActionGroup.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.content.Context;
4 | import android.util.Log;
5 |
6 | import org.json.JSONArray;
7 | import org.json.JSONObject;
8 |
9 | import java.util.ArrayList;
10 | import java.util.HashMap;
11 | import java.util.List;
12 | import java.util.Map;
13 |
14 | import static android.os.Build.VERSION.SDK_INT;
15 | import static android.os.Build.VERSION_CODES.N;
16 |
17 | public final class ActionGroup {
18 |
19 | // Saves all groups for later lookup.
20 | private static final Map groups = new HashMap();
21 |
22 | // The ID of the action group.
23 | private final String id;
24 |
25 | // List of actions
26 | private final Action[] actions;
27 |
28 | /**
29 | * Lookup the action groups with the specified group id.
30 | *
31 | * @param id The ID of the action group to find.
32 | * @return Null if no group was found.
33 | */
34 | public static ActionGroup lookup(String id) {
35 | return groups.get(id);
36 | }
37 |
38 | /**
39 | * Register the action group for later lookup.
40 | *
41 | * @param group The action group to register.
42 | */
43 | public static void register(ActionGroup group) {
44 | groups.put(group.getId(), group);
45 | }
46 |
47 | /**
48 | * Unregister the action group.
49 | *
50 | * @param id The id of the action group to remove.
51 | */
52 | public static void unregister(String id) {
53 | groups.remove(id);
54 | }
55 |
56 | /**
57 | * Check if a action group with that id is registered.
58 | *
59 | * @param id The id of the action group to check for.
60 | */
61 | public static boolean isRegistered(String id) {
62 | return groups.containsKey(id);
63 | }
64 |
65 | /**
66 | * Creates an action group by parsing the specified action specs.
67 | *
68 | * @param list The list of actions.
69 | * @return A new action group.
70 | */
71 | public static ActionGroup parse(Context context, JSONArray list) {
72 | return parse(context, null, list);
73 | }
74 |
75 | /**
76 | * Creates an action group by parsing the specified action specs.
77 | *
78 | * @param id The id for the action group.
79 | * @param list The list of actions.
80 | * @return A new action group.
81 | */
82 | public static ActionGroup parse(Context context, String id, JSONArray list) {
83 | List actions = new ArrayList(list.length());
84 |
85 | for (int i = 0; i < list.length(); i++) {
86 | JSONObject opts = list.optJSONObject(i);
87 | String type = opts.optString("type", "button");
88 |
89 | if (type.equals("input") && SDK_INT < N) {
90 | Log.w("Action", "Type input is not supported");
91 | continue;
92 | }
93 |
94 | if (!(type.equals("button") || type.equals("input"))) {
95 | Log.w("Action", "Unknown type: " + type);
96 | continue;
97 | }
98 |
99 | actions.add(new Action(context, opts));
100 | }
101 |
102 | return new ActionGroup(id, actions.toArray(new Action[actions.size()]));
103 | }
104 |
105 | /**
106 | * Creates an action group.
107 | *
108 | * @param id The ID of the group.
109 | * @param actions The list of actions.
110 | */
111 | private ActionGroup(String id, Action[] actions) {
112 | this.id = id;
113 | this.actions = actions;
114 | }
115 |
116 | /**
117 | * Gets the action group id.
118 | */
119 | public String getId() {
120 | return id;
121 | }
122 |
123 | /**
124 | * Gets the action list.
125 | */
126 | public Action[] getActions() {
127 | return actions;
128 | }
129 |
130 | }
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/DownloadFileFromUrl.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.graphics.Bitmap;
4 | import android.graphics.BitmapFactory;
5 | import android.os.AsyncTask;
6 | import android.util.Log;
7 |
8 | import java.io.IOException;
9 | import java.io.InputStream;
10 | import java.net.HttpURLConnection;
11 | import java.net.URL;
12 |
13 | class DownloadFileFromUrl extends AsyncTask {
14 |
15 | private static final String TAG = "DownloadFileFromUrl";
16 |
17 | private String imageUrl;
18 |
19 | DownloadFileFromUrl(final String imageUrl) {
20 | super();
21 |
22 | this.imageUrl = imageUrl;
23 | }
24 |
25 | @Override
26 | protected Bitmap doInBackground(String... strings) {
27 | try {
28 | HttpURLConnection connection = (HttpURLConnection) new URL(this.imageUrl).openConnection();
29 | connection.setDoInput(true);
30 | connection.connect();
31 |
32 | BitmapFactory.Options opts = new BitmapFactory.Options();
33 | opts.inJustDecodeBounds = false;
34 |
35 | InputStream is = connection.getInputStream();
36 |
37 | Bitmap bitmap = BitmapFactory.decodeStream(is, null, opts);
38 |
39 | try {
40 | is.close();
41 | } catch (IOException e) {
42 | Log.e(TAG, "Error closing image InputStream: " + e.getMessage(), e);
43 | }
44 |
45 | return bitmap;
46 | } catch (IOException e) {
47 | Log.d(TAG, "Error while loading image: " + e.getMessage(), e);
48 | }
49 |
50 | return null;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/LifecycleCallbacks.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.app.Activity;
4 | import android.app.Application;
5 | import android.os.Bundle;
6 | import android.util.Log;
7 |
8 | /**
9 | * Subscribe to the Pause and Resume activity events in order to toggle the plugin's status.
10 | */
11 | public class LifecycleCallbacks implements Application.ActivityLifecycleCallbacks {
12 |
13 | private static LifecycleCallbacks callbacks = new LifecycleCallbacks();
14 |
15 | /**
16 | * Register for the application's events
17 | * @param app
18 | */
19 | public static void registerCallbacks(Application app) {
20 | if (app == null) {
21 | Log.d("LifecycleCallbacks", "The application is null, it's not passed correctly!");
22 | throw new RuntimeException("The application is null, it's not passed correctly!");
23 | }
24 |
25 | // clean up, not to leak and register it N times...
26 | Log.d("LifecycleCallbacks", "Unregistering the activity lifecycle callbacks...");
27 | app.unregisterActivityLifecycleCallbacks(callbacks);
28 |
29 | Log.d("LifecycleCallbacks", "Registering the activity lifecycle callbacks...");
30 | app.registerActivityLifecycleCallbacks(callbacks);
31 | }
32 |
33 | public void onActivityPaused(Activity activity) {
34 | Log.d(LocalNotificationsPlugin.TAG, "onActivityPaused: Application has been stopped.");
35 |
36 | // the application is being stopped -> the push plugin is not in active/foreground state anymore
37 | LocalNotificationsPlugin.isActive = false;
38 | }
39 |
40 | public void onActivityResumed(Activity activity) {
41 | Log.d(LocalNotificationsPlugin.TAG, "onActivityPaused: Application has been started");
42 |
43 | // the application has been resumed-> the push plugin is now in active/foreground state
44 | LocalNotificationsPlugin.isActive = true;
45 | }
46 |
47 | public void onActivityCreated(Activity activity, Bundle bundle) {
48 | }
49 |
50 | public void onActivityDestroyed(Activity activity) {
51 | }
52 |
53 | public void onActivitySaveInstanceState(Activity activity, Bundle outState) {
54 | }
55 |
56 | public void onActivityStarted(Activity activity) {
57 | }
58 |
59 | public void onActivityStopped(Activity activity) {
60 | }
61 | }
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/LocalNotificationsPlugin.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.content.Context;
4 | import android.util.Log;
5 |
6 | import org.json.JSONObject;
7 |
8 | public class LocalNotificationsPlugin {
9 | static final String TAG = "LocalNotifyPlugin";
10 |
11 | static boolean isActive = false;
12 | private static JSONObject cachedData;
13 | private static LocalNotificationsPluginListener onMessageReceivedCallback;
14 | private static LocalNotificationsPluginListener onMessageClearedCallback;
15 | private static LocalNotificationsPluginListener onMessageClickedCallback;
16 | /**
17 | * Set the on message received callback
18 | *
19 | * @param callbacks
20 | */
21 | public static void setOnMessageReceivedCallback(LocalNotificationsPluginListener callbacks) {
22 | onMessageReceivedCallback = callbacks;
23 |
24 | if (cachedData != null) {
25 | executeOnMessageReceivedCallback(cachedData);
26 | cachedData = null;
27 | }
28 | }
29 |
30 | /**
31 | * Execute the onMessageReceivedCallback with the data passed.
32 | * In case the callback is not present, cache the data;
33 | *
34 | * @param data
35 | */
36 | public static void executeOnMessageReceivedCallback(JSONObject data) {
37 | if (onMessageReceivedCallback != null) {
38 | Log.d(TAG, "Sending message to client");
39 | onMessageReceivedCallback.success(data);
40 | } else {
41 | Log.d(TAG, "No callback function - caching the data for later retrieval.");
42 | cachedData = data;
43 | }
44 | }
45 |
46 | /**
47 | * Set the on message clicked callback
48 | *
49 | * @param callbacks
50 | */
51 | public static void setOnMessageClickedCallback(LocalNotificationsPluginListener callbacks) {
52 | onMessageClickedCallback = callbacks;
53 | }
54 |
55 | /**
56 | * Execute the onMessageClickedCallback with the click on notification Message.
57 | * @param data
58 | */
59 | public static void executeOnMessageClickedCallback(JSONObject data) {
60 | if (onMessageClickedCallback != null) {
61 | onMessageClickedCallback.success(data);
62 | }
63 | }
64 |
65 |
66 | /**
67 | * Set the on message cleared callback
68 | *
69 | * @param callbacks
70 | */
71 | public static void setOnMessageClearedCallback(LocalNotificationsPluginListener callbacks) {
72 | onMessageClearedCallback = callbacks;
73 | }
74 |
75 | /**
76 | * Execute the onMessageClearedCallback with the data passed.
77 | * In case the callback is not present, cache the data;
78 | *
79 | * @param data
80 | */
81 | public static void executeOnMessageClearedCallback(JSONObject data) {
82 | if (onMessageClearedCallback != null) {
83 | onMessageClearedCallback.success(data);
84 | }
85 | }
86 |
87 | public static void scheduleNotification(JSONObject options, Context context) throws Exception {
88 | // Persist the options so that we can access them later to:
89 | // - Restore a notification after reboot.
90 | // - Create a notification after an alarm triggers (for recurrent or scheduled notifications).
91 | // - Pass them back to the notification clicked or notification cleared callbacks.
92 | //
93 | // This way we don't need to pass them around as extras in the Intents.
94 |
95 | Store.save(context, options);
96 |
97 | // Display or schedule the notification, depending on the options:
98 | // If there's already a notification with the same ID, the intent flags should take care of updating all the
99 | // intents but the alarm one, which would be cancelled and rescheduled.
100 |
101 | NotificationRestoreReceiver.scheduleNotification(options, context);
102 | }
103 | }
104 |
105 |
106 |
107 |
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/LocalNotificationsPluginListener.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | /**
4 | * Defines methods for Success and Error callbacks
5 | */
6 | public interface LocalNotificationsPluginListener {
7 | /**
8 | * Defines a success callback method, which is used to pass success function reference
9 | * from the nativescript to the Java plugin
10 | *
11 | * @param data
12 | */
13 | void success(Object data);
14 |
15 |
16 | /**
17 | * Defines a error callback method, which is used to pass error function reference
18 | * from the nativescript to the Java plugin
19 | *
20 | * @param data
21 | */
22 | void error(Object data);
23 | }
24 |
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/NotificationActionReceiver.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.app.IntentService;
4 | import android.app.NotificationManager;
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.content.pm.PackageManager;
8 | import android.os.Bundle;
9 | import android.util.Log;
10 |
11 | import androidx.annotation.Nullable;
12 | import androidx.core.app.RemoteInput;
13 |
14 | import org.json.JSONException;
15 | import org.json.JSONObject;
16 |
17 | import static com.telerik.localnotifications.Action.CLICK_ACTION_ID;
18 |
19 | /**
20 | * IntentService which is an entry point, whenever a notification from the bar is tapped and executed.
21 | * The activity fires, notifies the callback.
22 | */
23 | public class NotificationActionReceiver extends IntentService {
24 | private static String TAG = "NotificationActionReceiver";
25 |
26 | // Hold a reference to the intent to handle.
27 | private Intent intent;
28 |
29 | public NotificationActionReceiver() {
30 | super("NotificationActionReceiver");
31 | }
32 |
33 | @Override
34 | protected void onHandleIntent(@Nullable Intent intent) {
35 | this.intent = intent;
36 |
37 | if (intent == null) {
38 | return;
39 | }
40 |
41 | Bundle bundle = intent.getExtras();
42 |
43 | if (bundle == null) {
44 | return;
45 | }
46 |
47 | try {
48 | final JSONObject jsonData = new JSONObject();
49 | jsonData.put("event", Builder.NOTIFICATION_ID);
50 | LocalNotificationsPlugin.executeOnMessageClickedCallback(jsonData);
51 |
52 | onClick(intent.getAction(), bundle);
53 | } catch (JSONException e) {
54 | Log.e(TAG, e.getMessage(), e);
55 | }
56 | }
57 |
58 | private void onClick(String action, Bundle bundle) throws JSONException {
59 | final Context context = getApplicationContext();
60 |
61 | // Note that for the non-default action this will be empty:
62 | final JSONObject opts = Store.get(context, bundle.getInt(Builder.NOTIFICATION_ID), false);
63 |
64 | boolean isAppActive = LocalNotificationsPlugin.isActive;
65 | boolean doLaunch = intent.getBooleanExtra("NOTIFICATION_LAUNCH", true);
66 |
67 | Log.d(TAG, "doLaunch = " + doLaunch);
68 |
69 | if (!isAppActive && doLaunch) {
70 | forceMainActivityReload();
71 | }
72 |
73 | if (setTextInput(action, opts)) {
74 | opts.put("event", "input");
75 | } else if (!CLICK_ACTION_ID.equals(action)) {
76 | opts.put("event", "button");
77 | opts.put("response", action);
78 | } else {
79 | opts.put("event", "default");
80 | }
81 |
82 | opts.put("foreground", isAppActive);
83 | // opts.put("coldstart", !isPluginActive);
84 |
85 | LocalNotificationsPlugin.executeOnMessageReceivedCallback(opts);
86 |
87 | if (opts.has("id") && !opts.optBoolean("ongoing", false) && opts.optInt("repeatInterval", 0) == 0) {
88 | int id = opts.getInt("id");
89 |
90 | // Clear the notification from the tray, unless it's marker as ongoing/sticky:
91 | ((NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE)).cancel(id);
92 |
93 | // And also unpersist it:
94 | Store.remove(context, id);
95 | }
96 | }
97 |
98 | private boolean setTextInput(String action, JSONObject data) throws JSONException {
99 | Bundle input = RemoteInput.getResultsFromIntent(intent);
100 | if (input != null) {
101 | data.put("response", input.getCharSequence(action));
102 | return true;
103 | }
104 | return false;
105 | }
106 |
107 | private void forceMainActivityReload() {
108 | PackageManager pm = getPackageManager();
109 | Intent launchIntent = pm.getLaunchIntentForPackage(getApplicationContext().getPackageName());
110 | Log.d(TAG, "starting activity for package: " + getApplicationContext().getPackageName());
111 | launchIntent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT | Intent.FLAG_ACTIVITY_SINGLE_TOP);
112 | startActivity(launchIntent);
113 | }
114 | }
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/NotificationAlarmReceiver.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.app.NotificationManager;
4 | import android.content.BroadcastReceiver;
5 | import android.content.Context;
6 | import android.content.Intent;
7 | import android.util.Log;
8 |
9 | import org.json.JSONObject;
10 |
11 | public class NotificationAlarmReceiver extends BroadcastReceiver {
12 |
13 | private static final String TAG = "NotificationAlarmRcvr";
14 |
15 | public void onReceive(Context context, Intent intent) {
16 | final int id = intent.getIntExtra(Builder.NOTIFICATION_ID, 0);
17 | final JSONObject opts = Store.get(context, id);
18 |
19 | if (opts == null) {
20 | Log.e(TAG, "Notification could not be restored, options are null");
21 |
22 | return;
23 | }
24 |
25 | // Create the notification:
26 |
27 | try {
28 | ((NotificationManager) context
29 | .getSystemService(Context.NOTIFICATION_SERVICE))
30 | .notify(id, Builder.build(opts, context, id));
31 | } catch (Throwable t) {
32 | Log.e(TAG, "Notification could not be restored!" + t.getMessage(), t);
33 | }
34 |
35 | // Note we don't unpersist this notification just yet, as it might still need to be restored
36 | // after a reboot.
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/NotificationClearedReceiver.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 |
6 | import android.content.BroadcastReceiver;
7 | import androidx.annotation.Nullable;
8 |
9 | import org.json.JSONObject;
10 |
11 | public class NotificationClearedReceiver extends BroadcastReceiver {
12 | private static String TAG = "NotificationClearedReceiver";
13 |
14 | /**
15 | * Called when the notification is cleared from the notification center.
16 | *
17 | * @param context Application context
18 | * @param intent Received intent with notification ID
19 | */
20 | @Override
21 | public void onReceive(Context context, @Nullable Intent intent) {
22 | if (intent == null || !intent.hasExtra(Builder.NOTIFICATION_ID)) {
23 | return;
24 | }
25 |
26 | // Default value not used as above check ensures we have an actual value:
27 | final int id = intent.getIntExtra(Builder.NOTIFICATION_ID, 0);
28 | final JSONObject opts = Store.get(context, id);
29 |
30 | if (opts != null) {
31 | if (opts.optInt("repeatInterval", 0) == 0) {
32 | // Remove the persisted notification data if it's not repeating:
33 | Store.remove(context, id);
34 | }
35 |
36 | LocalNotificationsPlugin.executeOnMessageClearedCallback(opts);
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/NotificationRestoreReceiver.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.app.AlarmManager;
4 | import android.app.NotificationManager;
5 | import android.app.PendingIntent;
6 | import android.content.BroadcastReceiver;
7 | import android.content.Context;
8 | import android.content.Intent;
9 | import android.util.Log;
10 |
11 | import java.util.Date;
12 | import java.util.Map;
13 |
14 | import org.json.JSONException;
15 | import org.json.JSONObject;
16 |
17 | /**
18 | * Notifications need to be restored when the device is rebooted,
19 | * that's what's this class is for.
20 | */
21 | public class NotificationRestoreReceiver extends BroadcastReceiver {
22 |
23 | private static final String TAG = "NotifyRestoreReceiver";
24 |
25 | @Override
26 | public void onReceive(Context context, Intent intent) {
27 | if (context == null || !Intent.ACTION_BOOT_COMPLETED.equalsIgnoreCase(intent.getAction())) {
28 | return;
29 | }
30 |
31 | try {
32 | for (Map.Entry entry : Store.getAll(context).entrySet()) {
33 | final String notificationString = entry.getValue();
34 |
35 | Log.e(TAG, "Will restore previously scheduled notification: " + notificationString);
36 |
37 | scheduleNotification(new JSONObject(notificationString), context);
38 | }
39 | } catch (IllegalStateException | JSONException e) {
40 | Log.e(TAG, "Notification could not be scheduled! " + e.getMessage(), e);
41 | }
42 | }
43 |
44 | static void scheduleNotification(JSONObject options, Context context) {
45 |
46 | // We might create the notification IMMEDIATELY:
47 |
48 | // If no ID is provided, we automatically assign different IDs so that all notifications are persisted:
49 | final int notificationID = options.optInt("id", 0);
50 | final long triggerTime = options.optLong("atTime", 0);
51 |
52 | if (triggerTime == 0) {
53 | // If we just want to show the notification immediately, there's no need to create an Intent,
54 | // we just send the notification to the Notification Service:
55 | ((NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE)).notify(
56 | notificationID, com.telerik.localnotifications.Builder.build(options, context, notificationID)
57 | );
58 |
59 | return;
60 | }
61 |
62 | // Check if the notification has EXPIRED:
63 |
64 | final long interval = options.optLong("repeatInterval", 0); // in ms
65 | final Date triggerDate = new Date(triggerTime);
66 |
67 | if (interval == 0 && new Date().after(triggerDate)) {
68 | Store.remove(context, notificationID);
69 |
70 | return;
71 | }
72 |
73 | // Or SCHEDULE it for later:
74 |
75 | final AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
76 |
77 | try {
78 | final Intent notificationIntent = new Intent(context, NotificationAlarmReceiver.class)
79 | .setAction(options.getString("id"))
80 | .putExtra(Builder.NOTIFICATION_ID, notificationID);
81 |
82 | final PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, notificationIntent, PendingIntent.FLAG_CANCEL_CURRENT);
83 |
84 | if (interval > 0) {
85 | alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, triggerTime, interval, pendingIntent);
86 | } else {
87 | alarmManager.set(AlarmManager.RTC_WAKEUP, triggerTime, pendingIntent);
88 | }
89 | } catch (Exception e) {
90 | Log.e(TAG, "Notification could not be scheduled!" + e.getMessage(), e);
91 | }
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/native-src/android/app/src/main/java/com/telerik/localnotifications/Store.java:
--------------------------------------------------------------------------------
1 | package com.telerik.localnotifications;
2 |
3 | import android.content.Context;
4 | import androidx.annotation.Nullable;
5 | import android.util.Log;
6 |
7 | import org.json.JSONException;
8 | import org.json.JSONObject;
9 |
10 | import java.util.Map;
11 |
12 | public final class Store {
13 |
14 | private static final String TAG = "Store";
15 | private static final String SHARED_PREFERENCES_KEY = "LocalNotificationsPlugin";
16 |
17 | public static @Nullable JSONObject get(Context context, int id) {
18 | return get(context, id, true);
19 | }
20 |
21 | public static @Nullable JSONObject get(Context context, int id, boolean nullable) {
22 | try {
23 | return new JSONObject(context
24 | .getSharedPreferences(SHARED_PREFERENCES_KEY, Context.MODE_PRIVATE)
25 | .getString(String.valueOf(id), ""));
26 | } catch (JSONException e) {
27 | Log.e(TAG, "Error parsing options" + e.getMessage(), e);
28 | }
29 |
30 | return nullable ? null : new JSONObject();
31 | }
32 |
33 | public static Map getAll(Context context) {
34 | return (Map) context.getSharedPreferences(SHARED_PREFERENCES_KEY, Context.MODE_PRIVATE).getAll();
35 | }
36 |
37 | public static String[] getKeys(Context context) {
38 | return getAll(context).keySet().toArray(new String[0]);
39 | }
40 |
41 | public static void save(Context context, JSONObject opts) {
42 | save(context, opts.optInt("id", 0), opts);
43 | }
44 |
45 | public static void save(Context context, int id, String opts) {
46 | try {
47 | save(context, id, new JSONObject(opts));
48 | } catch (JSONException e) {
49 | Log.e(TAG, "Error saving options" + e.getMessage(), e);
50 | }
51 | }
52 |
53 | public static void save(Context context, int id, JSONObject opts) {
54 | context.getSharedPreferences(SHARED_PREFERENCES_KEY, Context.MODE_PRIVATE).edit().putString(String.valueOf(id), opts.toString()).apply();
55 | }
56 |
57 | public static void remove(Context context, int id) {
58 | context.getSharedPreferences(SHARED_PREFERENCES_KEY, Context.MODE_PRIVATE).edit().remove(String.valueOf(id)).apply();
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/native-src/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | locnotplugin
3 |
4 |
--------------------------------------------------------------------------------
/native-src/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.4.1'
10 |
11 | // NOTE: Do not place your application dependencies here; they belong
12 | // in the individual module build.gradle files
13 | }
14 | }
15 |
16 | allprojects {
17 | repositories {
18 | google()
19 | jcenter()
20 | maven { url "https://maven.google.com" }
21 | }
22 | }
23 |
24 | task clean(type: Delete) {
25 | delete rootProject.buildDir
26 | }
27 |
--------------------------------------------------------------------------------
/native-src/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 | android.enableJetifier=true
20 | android.useAndroidX=true
--------------------------------------------------------------------------------
/native-src/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/native-src/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/native-src/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Jul 04 12:57:28 CEST 2019
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
7 |
--------------------------------------------------------------------------------
/native-src/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/native-src/android/locnotplugin.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/native-src/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/native-src/ios/.gitattributes:
--------------------------------------------------------------------------------
1 | * -crlf
--------------------------------------------------------------------------------
/native-src/ios/.gitignore:
--------------------------------------------------------------------------------
1 | build/
2 | xcuserdata/
--------------------------------------------------------------------------------
/native-src/ios/LocalNotificationsPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/native-src/ios/LocalNotificationsPlugin.xcodeproj/project.xcworkspace/xcshareddata/PushPlugin.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | BC8B754B-9C8D-47D0-ABA9-1598CAAC06C3
9 | IDESourceControlProjectName
10 | PushPlugin
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | E8C553F8FBDE6C62B10352AA36517C14BC12A66F
14 | https://github.com/telerik/push-plugin-ios.git
15 |
16 | IDESourceControlProjectPath
17 | PushPlugin.xcodeproj
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | E8C553F8FBDE6C62B10352AA36517C14BC12A66F
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/telerik/push-plugin-ios.git
25 | IDESourceControlProjectVersion
26 | 111
27 | IDESourceControlProjectWCCIdentifier
28 | E8C553F8FBDE6C62B10352AA36517C14BC12A66F
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | E8C553F8FBDE6C62B10352AA36517C14BC12A66F
36 | IDESourceControlWCCName
37 | push-plugin-ios
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/native-src/ios/LocalNotificationsPlugin/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(CURRENT_PROJECT_VERSION)
23 | NSPrincipalClass
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/native-src/ios/LocalNotificationsPlugin/LocalNotificationsPlugin.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | //! Project version number for LocalNotificationsPlugin.
4 | FOUNDATION_EXPORT double LocalNotificationsVersionNumber;
5 |
6 | //! Project version string for LocalNotificationsPlugin.
7 | FOUNDATION_EXPORT const unsigned char LocalNotificationsPluginVersionString[];
8 |
9 | // In this header, you should import all the public headers of your framework
10 | #import
11 | #import
--------------------------------------------------------------------------------
/native-src/ios/LocalNotificationsPlugin/Notification.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface Notification : NSObject
5 | {
6 | UILocalNotification *notificationMessage;
7 | BOOL isInline;
8 | }
9 |
10 | @property (nonatomic, strong) UILocalNotification *notificationMessage;
11 | @property BOOL isInline;
12 | @property (nonatomic, retain) UILocalNotification *launchNotification;
13 |
14 | + (instancetype)sharedInstance;
15 |
16 | //-(void)register:(NSMutableDictionary *)options;
17 | //-(void)registerUserNotificationSettings:(NSDictionary*)options;
18 | -(void)setApplicationIconBadgeNumber:(NSMutableDictionary *)options;
19 | -(void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
20 | -(void)notificationReceived;
21 | -(void)success:(NSString *)eventName WithMessage:(NSString *)message;
22 | -(void)success:(NSString *)eventName WithDictionary:(NSMutableDictionary *)userInfo;
23 | -(void)fail:(NSString *)eventName WithMessage:(NSString *)message withError:(NSError *)error;
24 | @end
25 |
--------------------------------------------------------------------------------
/native-src/ios/LocalNotificationsPlugin/NotificationManager.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "Notification.h"
3 |
4 | @interface NotificationManager : NSObject
5 | @end
6 |
--------------------------------------------------------------------------------
/native-src/ios/README.md:
--------------------------------------------------------------------------------
1 | # Local Notifications Plugin library for NativeScript iOS apps
2 |
3 | This is the native iOS for the Telerik NativeScript Local Notifications plugin.
4 | Not really useful for usage outside this plugin.
5 |
6 | ## Building the framework
7 | - Run the target for simulator and device, make sure to not only build for the active architecture
8 | - Right-click the file in the Products folder and open in Finder
9 | - In a Terminal `cd` to that folder, move up to the `Products` folder
10 | - Run `lipo -create -output "LocalNotificationsPlugin" "Debug-iphonesimulator/LocalNotificationsPlugin.framework/LocalNotificationsPlugin" "Debug-iphoneos/LocalNotificationsPlugin.framework/LocalNotificationsPlugin"`
11 | - Use the resulting `LocalNotificationsPlugin` file instead of the one generated inside any of the target
--------------------------------------------------------------------------------
/publish/pack.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | SOURCE_DIR=../src;
4 | TO_SOURCE_DIR=src;
5 | PACK_DIR=package;
6 | ROOT_DIR=..;
7 | PUBLISH=--publish
8 |
9 | install(){
10 | npm i
11 | }
12 |
13 | pack() {
14 |
15 | echo 'Clearing /src and /package...'
16 | node_modules/.bin/rimraf "$TO_SOURCE_DIR"
17 | node_modules/.bin/rimraf "$PACK_DIR"
18 |
19 | # copy src
20 | echo 'Copying src...'
21 | node_modules/.bin/ncp "$SOURCE_DIR" "$TO_SOURCE_DIR"
22 |
23 | # copy README & LICENSE to src
24 | echo 'Copying README and LICENSE to /src...'
25 | node_modules/.bin/ncp "$ROOT_DIR"/LICENSE "$TO_SOURCE_DIR"/LICENSE
26 | node_modules/.bin/ncp "$ROOT_DIR"/README.md "$TO_SOURCE_DIR"/README.md
27 |
28 | # compile package and copy files required by npm
29 | echo 'Building /src...'
30 | cd "$TO_SOURCE_DIR"
31 | node_modules/.bin/tsc
32 | cd ..
33 |
34 | echo 'Creating package...'
35 | # create package dir
36 | mkdir "$PACK_DIR"
37 |
38 | # create the package
39 | cd "$PACK_DIR"
40 | npm pack ../"$TO_SOURCE_DIR"
41 |
42 | # delete source directory used to create the package
43 | cd ..
44 | node_modules/.bin/rimraf "$TO_SOURCE_DIR"
45 | }
46 |
47 | install && pack
--------------------------------------------------------------------------------
/publish/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-publish",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "balanced-match": {
8 | "version": "1.0.0",
9 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
10 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
11 | "dev": true
12 | },
13 | "brace-expansion": {
14 | "version": "1.1.11",
15 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
16 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
17 | "dev": true,
18 | "requires": {
19 | "balanced-match": "^1.0.0",
20 | "concat-map": "0.0.1"
21 | }
22 | },
23 | "concat-map": {
24 | "version": "0.0.1",
25 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
26 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
27 | "dev": true
28 | },
29 | "fs.realpath": {
30 | "version": "1.0.0",
31 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
32 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
33 | "dev": true
34 | },
35 | "glob": {
36 | "version": "7.1.2",
37 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
38 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
39 | "dev": true,
40 | "requires": {
41 | "fs.realpath": "^1.0.0",
42 | "inflight": "^1.0.4",
43 | "inherits": "2",
44 | "minimatch": "^3.0.4",
45 | "once": "^1.3.0",
46 | "path-is-absolute": "^1.0.0"
47 | }
48 | },
49 | "inflight": {
50 | "version": "1.0.6",
51 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
52 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
53 | "dev": true,
54 | "requires": {
55 | "once": "^1.3.0",
56 | "wrappy": "1"
57 | }
58 | },
59 | "inherits": {
60 | "version": "2.0.3",
61 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
62 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
63 | "dev": true
64 | },
65 | "minimatch": {
66 | "version": "3.0.4",
67 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
68 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
69 | "dev": true,
70 | "requires": {
71 | "brace-expansion": "^1.1.7"
72 | }
73 | },
74 | "ncp": {
75 | "version": "2.0.0",
76 | "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz",
77 | "integrity": "sha1-GVoh1sRuNh0vsSgbo4uR6d9727M=",
78 | "dev": true
79 | },
80 | "once": {
81 | "version": "1.4.0",
82 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
83 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
84 | "dev": true,
85 | "requires": {
86 | "wrappy": "1"
87 | }
88 | },
89 | "path-is-absolute": {
90 | "version": "1.0.1",
91 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
92 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
93 | "dev": true
94 | },
95 | "rimraf": {
96 | "version": "2.6.2",
97 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz",
98 | "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==",
99 | "dev": true,
100 | "requires": {
101 | "glob": "^7.0.5"
102 | }
103 | },
104 | "wrappy": {
105 | "version": "1.0.2",
106 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
107 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
108 | "dev": true
109 | }
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/publish/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-publish",
3 | "version": "1.0.0",
4 | "description": "Publish helper",
5 | "devDependencies": {
6 | "ncp": "^2.0.0",
7 | "rimraf": "^2.5.0"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/publish/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | PACK_DIR=package;
4 |
5 | publish() {
6 | cd $PACK_DIR
7 | echo 'Publishing to npm...'
8 | npm publish *.tgz
9 | }
10 |
11 | ./pack.sh && publish
12 |
--------------------------------------------------------------------------------
/src/.npmignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vscode/
3 | native-src/
4 | *.ts
5 | !*.d.ts
6 | tsconfig.json
7 | references.d.ts
8 |
--------------------------------------------------------------------------------
/src/index.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * iOS and Android apis should match.
3 | * It doesn't matter if you export `.ios` or `.android`, either one but only one.
4 | */
5 | export * from "./local-notifications.ios";
6 |
7 | // Export any shared classes, constants, etc.
8 | export * from "./local-notifications-common";
9 |
--------------------------------------------------------------------------------
/src/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-local-notifications",
3 | "version": "4.2.1",
4 | "description": "The Local Notifications plugin allows your app to show notifications when the app is not running. Just like remote push notifications, but a few orders of magnitude easier to set up.",
5 | "main": "local-notifications",
6 | "typings": "index.d.ts",
7 | "nativescript": {
8 | "platforms": {
9 | "android": "6.0.0",
10 | "ios": "6.0.0"
11 | }
12 | },
13 | "scripts": {
14 | "build": "npm i && tsc --skipLibCheck",
15 | "demo.ios": "npm run build && cd ../demo && tns run ios",
16 | "demo.android": "npm run build && cd ../demo && tns run android",
17 | "demo-ng.ios": "npm run build && cd ../demo-ng && tns run ios",
18 | "demo-ng.android": "npm run build && cd ../demo-ng && tns run android",
19 | "demo-vue.ios": "npm run build && cd ../demo-vue && tns run ios --bundle",
20 | "demo-vue.android": "npm run build && cd ../demo-vue && tns run android --bundle",
21 | "test": "npm run tslint && npm run tslint.demo && cd ../demo && tns build ios && tns build android",
22 | "test.ios": "cd ../demo && tns test ios --emulator",
23 | "test.ios.device": "cd ../demo && tns test ios",
24 | "test.android": "cd ../demo && tns test android --justlaunch",
25 | "plugin.link": "npm link && cd ../demo && npm link nativescript-mapbox && cd ../src",
26 | "preparedemo": "npm run build && cd ../demo && tns plugin remove nativescript-mapbox && tns plugin add ../src && tns install",
27 | "setup": "npm run build && cd ../demo && npm i",
28 | "setupandinstall": "npm i && cd ../demo && npm i && cd ../src && npm run build && cd ../demo && tns plugin add ../src && cd ../src",
29 | "tslint": "tslint --config '../tslint.json' '*.ts' --exclude '**/node_modules/**'",
30 | "tslint.demo": "tslint --config '../tslint.json' '../demo/app/*.ts' --exclude '**/node_modules/**'",
31 | "ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'",
32 | "prepublishOnly": "npm run build",
33 | "development.setup": "npm run setup && npm link && cd ../demo && npm link nativescript-mapbox && cd ../src",
34 | "generate.typings.ios": "cd ../demo && TNS_DEBUG_METADATA_PATH=\"$(pwd)/metadata\" tns build ios && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/typings\" tns build ios && echo 'Now look for your library typings in demo/typings!'"
35 | },
36 | "repository": {
37 | "type": "git",
38 | "url": "https://github.com/eddyverbruggen/nativescript-local-notifications.git"
39 | },
40 | "keywords": [
41 | "ecosystem:NativeScript",
42 | "NativeScript",
43 | "Alarm",
44 | "Notification",
45 | "Local Notification"
46 | ],
47 | "author": {
48 | "name": "Eddy Verbruggen",
49 | "url": "https://github.com/EddyVerbruggen/"
50 | },
51 | "contributors": [
52 | {
53 | "name": "Dani Gámez Franco",
54 | "url": "https://github.com/Danziger"
55 | }
56 | ],
57 | "license": "MIT",
58 | "bugs": {
59 | "url": "https://github.com/eddyverbruggen/nativescript-local-notifications/issues"
60 | },
61 | "homepage": "https://github.com/eddyverbruggen/nativescript-local-notifications",
62 | "devDependencies": {
63 | "nativescript-dev-typescript": "~0.10.0",
64 | "tns-core-modules": "~6.1.2",
65 | "tns-platform-declarations": "~6.1.2",
66 | "tslint": "^5.10.0",
67 | "typescript": "~3.4.5"
68 | },
69 | "dependencies": {
70 | "nativescript-shared-notification-delegate": "~1.0.0"
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/src/platforms/android/app-release.aar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/src/platforms/android/app-release.aar
--------------------------------------------------------------------------------
/src/platforms/ios/LocalNotificationsPlugin.framework/Headers/LocalNotificationsPlugin.h:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | //! Project version number for LocalNotificationsPlugin.
4 | FOUNDATION_EXPORT double LocalNotificationsVersionNumber;
5 |
6 | //! Project version string for LocalNotificationsPlugin.
7 | FOUNDATION_EXPORT const unsigned char LocalNotificationsPluginVersionString[];
8 |
9 | // In this header, you should import all the public headers of your framework
10 | #import
11 | #import
--------------------------------------------------------------------------------
/src/platforms/ios/LocalNotificationsPlugin.framework/Headers/Notification.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface Notification : NSObject
5 | {
6 | UILocalNotification *notificationMessage;
7 | BOOL isInline;
8 | }
9 |
10 | @property (nonatomic, strong) UILocalNotification *notificationMessage;
11 | @property BOOL isInline;
12 | @property (nonatomic, retain) UILocalNotification *launchNotification;
13 |
14 | + (instancetype)sharedInstance;
15 |
16 | //-(void)register:(NSMutableDictionary *)options;
17 | //-(void)registerUserNotificationSettings:(NSDictionary*)options;
18 | -(void)setApplicationIconBadgeNumber:(NSMutableDictionary *)options;
19 | -(void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
20 | -(void)notificationReceived;
21 | -(void)success:(NSString *)eventName WithMessage:(NSString *)message;
22 | -(void)success:(NSString *)eventName WithDictionary:(NSMutableDictionary *)userInfo;
23 | -(void)fail:(NSString *)eventName WithMessage:(NSString *)message withError:(NSError *)error;
24 | @end
25 |
--------------------------------------------------------------------------------
/src/platforms/ios/LocalNotificationsPlugin.framework/Headers/NotificationManager.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import "Notification.h"
3 |
4 | @interface NotificationManager : NSObject
5 | @end
6 |
--------------------------------------------------------------------------------
/src/platforms/ios/LocalNotificationsPlugin.framework/Info.plist:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/src/platforms/ios/LocalNotificationsPlugin.framework/Info.plist
--------------------------------------------------------------------------------
/src/platforms/ios/LocalNotificationsPlugin.framework/LocalNotificationsPlugin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications/40c599656b37fb259b8e1cf21db704399b672c1c/src/platforms/ios/LocalNotificationsPlugin.framework/LocalNotificationsPlugin
--------------------------------------------------------------------------------
/src/platforms/ios/LocalNotificationsPlugin.framework/Modules/module.modulemap:
--------------------------------------------------------------------------------
1 | framework module LocalNotificationsPlugin {
2 | umbrella header "LocalNotificationsPlugin.h"
3 |
4 | export *
5 | module * { export * }
6 | }
7 |
--------------------------------------------------------------------------------
/src/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | ///
--------------------------------------------------------------------------------
/src/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "commonjs",
5 | "declaration": true,
6 | "removeComments": true,
7 | "noLib": false,
8 | "emitDecoratorMetadata": true,
9 | "experimentalDecorators": true,
10 | "lib": [
11 | "es6",
12 | "dom"
13 | ],
14 | "sourceMap": false,
15 | "pretty": true,
16 | "allowUnreachableCode": false,
17 | "allowUnusedLabels": false,
18 | "noEmitHelpers": true,
19 | "noEmitOnError": false,
20 | "noImplicitAny": false,
21 | "noImplicitReturns": true,
22 | "noImplicitUseStrict": false,
23 | "noFallthroughCasesInSwitch": true
24 | },
25 | "exclude": [
26 | "node_modules",
27 | "typings"
28 | ],
29 | "compileOnSave": false
30 | }
31 |
--------------------------------------------------------------------------------
/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "class-name": true,
4 | "comment-format": [
5 | true,
6 | "check-space"
7 | ],
8 | "indent": [
9 | true,
10 | "spaces"
11 | ],
12 | "no-duplicate-variable": true,
13 | "no-eval": true,
14 | "no-internal-module": true,
15 | "no-trailing-whitespace": true,
16 | "no-var-keyword": true,
17 | "one-line": [
18 | true,
19 | "check-open-brace",
20 | "check-whitespace"
21 | ],
22 | "quotemark": [
23 | true,
24 | "double"
25 | ],
26 | "semicolon": [
27 | true,
28 | "always"
29 | ],
30 | "triple-equals": [
31 | true,
32 | "allow-null-check"
33 | ],
34 | "typedef-whitespace": [
35 | true,
36 | {
37 | "call-signature": "nospace",
38 | "index-signature": "nospace",
39 | "parameter": "nospace",
40 | "property-declaration": "nospace",
41 | "variable-declaration": "nospace"
42 | }
43 | ],
44 | "variable-name": [
45 | true,
46 | "ban-keywords"
47 | ],
48 | "whitespace": [
49 | true,
50 | "check-branch",
51 | "check-decl",
52 | "check-operator",
53 | "check-separator",
54 | "check-type"
55 | ]
56 | }
57 | }
58 |
--------------------------------------------------------------------------------