├── .gitignore
├── LocalNotifications
├── .abignore
├── .abproject
├── .app.json
├── .yo-rc.json
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── app.gradle
│ │ │ ├── drawable-hdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── ic_notify.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
│ │ │ │ ├── ic_notify.png
│ │ │ │ ├── ic_stat_notify.png
│ │ │ │ ├── icon.png
│ │ │ │ ├── launcher_icon_arrow.png
│ │ │ │ └── logo.png
│ │ │ ├── drawable-xxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── ic_notify.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ ├── drawable-xxxhdpi
│ │ │ │ ├── background.png
│ │ │ │ ├── ic_notify.png
│ │ │ │ ├── icon.png
│ │ │ │ └── logo.png
│ │ │ ├── raw
│ │ │ │ └── customsound
│ │ │ ├── values-v21
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ │ └── values
│ │ │ │ ├── colors.xml
│ │ │ │ └── styles.xml
│ │ └── iOS
│ │ │ ├── Default-568h@2x.png
│ │ │ ├── Default-667h@2x.png
│ │ │ ├── Default-736h@3x.png
│ │ │ ├── Default-Landscape-568h@2x.png
│ │ │ ├── Default-Landscape-667h@2x.png
│ │ │ ├── Default-Landscape.png
│ │ │ ├── Default-Landscape@2x.png
│ │ │ ├── Default-Landscape@3x.png
│ │ │ ├── Default-Portrait.png
│ │ │ ├── Default-Portrait@2x.png
│ │ │ ├── Default.png
│ │ │ ├── Default@2x.png
│ │ │ ├── Icon-Small-50.png
│ │ │ ├── Icon-Small-50@2x.png
│ │ │ ├── Icon-Small.png
│ │ │ ├── Icon-Small@2x.png
│ │ │ ├── Info.plist
│ │ │ ├── icon-40.png
│ │ │ ├── icon-40@2x.png
│ │ │ ├── icon-60.png
│ │ │ ├── icon-60@2x.png
│ │ │ ├── icon-72.png
│ │ │ ├── icon-72@2x.png
│ │ │ ├── icon-76.png
│ │ │ ├── icon-76@2x.png
│ │ │ ├── icon.png
│ │ │ └── icon@2x.png
│ ├── app-root.xml
│ ├── app.css
│ ├── app.js
│ ├── main-page.js
│ ├── main-page.xml
│ ├── main-view-model.js
│ ├── package.json
│ └── res
│ │ └── telerik-logo.png
├── hooks
│ ├── after-watch
│ │ └── nativescript-dev-typescript.js
│ ├── before-prepare
│ │ └── nativescript-dev-typescript.js
│ ├── before-watch
│ │ └── nativescript-dev-typescript.js
│ └── before-watchPatterns
│ │ └── nativescript-dev-typescript.js
├── package.json
├── references.d.ts
└── tsconfig.json
├── README.md
└── screenshots
├── ios-demo-01.png
├── ios-demo-02.png
└── ios-demo-03.png
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vscode/
3 | node_modules/
4 | LocalNotifications/platforms/
--------------------------------------------------------------------------------
/LocalNotifications/.abignore:
--------------------------------------------------------------------------------
1 | # .abignore lets you configure which of your files and folders should be excluded from your application package during the build process.
2 | # Each project created with AppBuilder 2.6 or later contains a default .abignore which lists a number of system files and folders that might affect the size of your app or might prevent build operations from completing successfully.
3 | #
4 | # For more information about .abignore and how to write exclude and include rules for your projects, see http://docs.telerik.com/platform/appbuilder/testing-your-app/abignore
5 |
6 | # Windows files
7 | **/Thumbs.db
8 |
9 | # Mac OS files
10 | **/.DS_Store
11 | **/__MACOSX/**/*
12 |
13 | # Visual Studio files
14 | bin/**/*
15 | obj/**/*
16 | **/.vs/**/*
17 | **/.vscode/**/*
18 | **/*.obj
19 | **/*.pdb
20 | **/*.user
21 | **/*.aps
22 | **/*.pch
23 | **/*.vspscc
24 | **/*_i.c
25 | **/*_p.c
26 | **/*.ncb
27 | **/*.suo
28 | **/*.tlb
29 | **/*.tlh
30 | **/*.ilk
31 | **/*.lib
32 | **/*.sbr
33 |
34 | # Source control files
35 | .gitignore
36 | **/.git/**/*
37 |
38 | # AppBuilder files
39 | .abignore
40 | .*.abignore
41 | .*.*.abignore
42 | .ab/**/*
43 | .app.json
44 | .yo-rc.json
45 |
46 | # TypeScript files
47 | **/*.ts
48 | **/*.map
49 | tsconfig.json
50 |
51 | # Other
52 | **/*.bak
53 | **/*.cache
54 | **/*.log
55 |
56 | # NativeScript files
57 | platforms/**/*
58 | node_modules/**/*
59 | typings/**/*
--------------------------------------------------------------------------------
/LocalNotifications/.abproject:
--------------------------------------------------------------------------------
1 | {
2 | "ProjectName": "LocalNotifications",
3 | "ProjectGuid": "f03f6a6d-914b-48be-862c-05f88787c3d7",
4 | "projectVersion": 1,
5 | "AppIdentifier": "com.telerik.plugindemo.nativescript.localnotifications",
6 | "DisplayName": "LocalNotifications",
7 | "Author": "Telerik",
8 | "Description": "LocalNotifications",
9 | "BundleVersion": "1.0.2",
10 | "AndroidVersionCode": "1",
11 | "iOSDeviceFamily": [
12 | "1",
13 | "2"
14 | ],
15 | "iOSBackgroundMode": [],
16 | "ProjectTypeGuids": "{F0A65104-D4F4-4012-B799-F612D75820F6}",
17 | "AndroidPermissions": [
18 | "android.permission.INTERNET"
19 | ],
20 | "DeviceOrientations": [
21 | "Portrait",
22 | "Landscape"
23 | ],
24 | "AndroidHardwareAcceleration": "false",
25 | "iOSStatusBarStyle": "Default",
26 | "FrameworkVersion": "2.2.0",
27 | "Framework": "NativeScript"
28 | }
--------------------------------------------------------------------------------
/LocalNotifications/.app.json:
--------------------------------------------------------------------------------
1 | {
2 | "type": "NativeScript",
3 | "views": [
4 | {
5 | "type": "NativeScript:view",
6 | "name": "homeView",
7 | "components": [],
8 | "title": "Home View",
9 | "addToNavigation": true,
10 | "icon": "home"
11 | }
12 | ],
13 | "dataProviders": [],
14 | "name": "nativeScriptApp",
15 | "navigation": "listmenu",
16 | "transition": "none",
17 | "skin": "native"
18 | }
--------------------------------------------------------------------------------
/LocalNotifications/.yo-rc.json:
--------------------------------------------------------------------------------
1 | {
2 | "generator-NativeScript": {
3 | "dependsOn": [
4 | "generator-NativeScript@0.0.15"
5 | ]
6 | }
7 | }
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
27 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/LocalNotifications/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 |
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-hdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-hdpi/background.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-hdpi/ic_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-hdpi/ic_notify.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-hdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-hdpi/logo.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-ldpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-ldpi/background.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-ldpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-ldpi/logo.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-mdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-mdpi/background.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-mdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-mdpi/logo.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-nodpi/splash_screen.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 | -
6 |
7 |
8 |
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/background.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/ic_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/ic_notify.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/ic_stat_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/ic_stat_notify.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/icon.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/launcher_icon_arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/launcher_icon_arrow.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xhdpi/logo.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xxhdpi/background.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xxhdpi/ic_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xxhdpi/ic_notify.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xxhdpi/icon.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xxhdpi/logo.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xxxhdpi/background.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xxxhdpi/background.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xxxhdpi/ic_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xxxhdpi/ic_notify.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/drawable-xxxhdpi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/drawable-xxxhdpi/logo.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/raw/customsound:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/Android/raw/customsound
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/values-v21/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3d5afe
4 |
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
14 |
15 |
16 |
19 |
20 |
23 |
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #F5F5F5
4 | #757575
5 | #33B5E5
6 | #272734
7 |
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/Android/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
18 |
19 |
21 |
22 |
23 |
31 |
32 |
34 |
35 |
36 |
42 |
43 |
45 |
46 |
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-568h@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-667h@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-736h@3x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-Landscape-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-Landscape-568h@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-Landscape-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-Landscape-667h@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-Landscape.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-Portrait.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Default@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Icon-Small-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Icon-Small-50.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Icon-Small-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Icon-Small-50@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Icon-Small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Icon-Small.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Icon-Small@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/Icon-Small@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | LocalNotifications
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 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 | UIInterfaceOrientationLandscapeLeft
35 | UIInterfaceOrientationLandscapeRight
36 |
37 | UISupportedInterfaceOrientations~ipad
38 |
39 | UIInterfaceOrientationPortrait
40 | UIInterfaceOrientationPortraitUpsideDown
41 | UIInterfaceOrientationLandscapeLeft
42 | UIInterfaceOrientationLandscapeRight
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon-40.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon-40@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon-60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon-60.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon-60@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon-72.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon-72@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon-76.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon-76@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon.png
--------------------------------------------------------------------------------
/LocalNotifications/app/App_Resources/iOS/icon@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/App_Resources/iOS/icon@2x.png
--------------------------------------------------------------------------------
/LocalNotifications/app/app-root.xml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/LocalNotifications/app/app.css:
--------------------------------------------------------------------------------
1 | page {
2 | background-color: #F4F4F4;
3 | }
4 |
5 | .tab-content {
6 | color: #808080;
7 | padding: 18;
8 | }
9 |
10 | .title {
11 | font-size: 18;
12 | margin: 0 0 8 0;
13 | color: #3c3c3c;
14 | /*horizontal-align: center;*/
15 | }
16 |
17 | label {
18 | font-size: 16;
19 | }
20 |
21 | .hint {
22 | font-size: 14;
23 | margin: 8;
24 | }
25 |
26 | button {
27 | background-color: #E0A458;
28 | padding: 8;
29 | margin: 8;
30 | font-size: 14;
31 | border-radius: 4;
32 | }
33 |
34 | .button {
35 | color: #FFFFFF;
36 | }
37 |
38 | .button-positive {
39 | background-color: #90A959;
40 | }
41 |
42 | .button-danger {
43 | background-color: #A63D40;
44 | }
45 |
46 | .button-neutral {
47 | background-color: #6494AA;
48 | }
--------------------------------------------------------------------------------
/LocalNotifications/app/app.js:
--------------------------------------------------------------------------------
1 | var application = require("tns-core-modules/application");
2 | application.run({ moduleName: 'app-root' });
3 |
--------------------------------------------------------------------------------
/LocalNotifications/app/main-page.js:
--------------------------------------------------------------------------------
1 | var vmModule = require("./main-view-model");
2 | function pageLoaded(args) {
3 | var page = args.object;
4 | page.bindingContext = vmModule.mainViewModel;
5 | }
6 | exports.pageLoaded = pageLoaded;
7 |
--------------------------------------------------------------------------------
/LocalNotifications/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 |
--------------------------------------------------------------------------------
/LocalNotifications/app/main-view-model.js:
--------------------------------------------------------------------------------
1 | var observable = require("tns-core-modules/data/observable");
2 | var dialogs = require("tns-core-modules/ui/dialogs");
3 | var LocalNotifications = require("nativescript-local-notifications");
4 |
5 | var DemoAppModel = (function (_super) {
6 | __extends(DemoAppModel, _super);
7 | function DemoAppModel() {
8 | _super.call(this);
9 | }
10 |
11 | DemoAppModel.prototype.doAddOnMessageReceivedCallback = function () {
12 | LocalNotifications.addOnMessageReceivedCallback(
13 | function (notificationData) {
14 | dialogs.alert({
15 | title: "Notification received",
16 | message: "ID: " + notificationData.id +
17 | "\nTitle: " + notificationData.title +
18 | "\nBody: " + notificationData.body,
19 | okButtonText: "Excellent!"
20 | });
21 | }
22 | ).then(
23 | function() {
24 | dialogs.alert({
25 | title: "Listener added",
26 | message: "We'll let you know when a notification is received.",
27 | okButtonText: "Nice :)"
28 | });
29 | }
30 | );
31 | };
32 |
33 | DemoAppModel.prototype.doCheckHasPermission = function () {
34 | LocalNotifications.hasPermission().then(
35 | function(granted) {
36 | dialogs.alert({
37 | title: "Permission granted?",
38 | message: granted ? "YES" : "NO",
39 | okButtonText: "OK"
40 | });
41 | }
42 | );
43 | };
44 |
45 | DemoAppModel.prototype.doRequestPermission = function () {
46 | LocalNotifications.requestPermission().then(
47 | function(granted) {
48 | dialogs.alert({
49 | title: "Permission granted?",
50 | message: granted ? "YES" : "NO",
51 | okButtonText: "OK"
52 | });
53 | }
54 | );
55 | };
56 |
57 | DemoAppModel.prototype.doSchedule = function () {
58 | LocalNotifications.schedule([{
59 | id: 1,
60 | title: 'The title',
61 | body: 'The big body. The big body. The big body. The big body. The big body. The big body. The big body. The big body.',
62 | bigTextStyle: true, // Adds an 'expansion arrow' to the notification (Android only)
63 | sound: "customsound",
64 | channel: "My Awesome Channel",
65 | ticker: 'Special ticker text (Android only)',
66 | at: new Date(new Date().getTime() + (10*1000))
67 | }]).then(
68 | function() {
69 | dialogs.alert({
70 | title: "Notification scheduled",
71 | message: "ID: 1",
72 | okButtonText: "OK, thanks"
73 | });
74 | },
75 | function(error) {
76 | console.log("doSchedule error: " + error);
77 | }
78 | );
79 | };
80 |
81 | DemoAppModel.prototype.doScheduleSilent = function () {
82 | LocalNotifications.schedule([{
83 | id: 2,
84 | title: 'Hi',
85 | body: 'I\'m soundless',
86 | sound: null,
87 | at: new Date(new Date().getTime() + 10*1000)
88 | }]).then(
89 | function() {
90 | dialogs.alert({
91 | title: "Notification scheduled",
92 | message: 'ID: 2',
93 | okButtonText: "OK, thanks"
94 | });
95 | },
96 | function(error) {
97 | console.log("doScheduleSilent error: " + error);
98 | }
99 | );
100 | };
101 |
102 | DemoAppModel.prototype.doScheduleAndSetBadgeNumber = function () {
103 | LocalNotifications.schedule([{
104 | id: 3,
105 | title: 'Hi',
106 | body: 'You should see a \'3\' somewhere',
107 | at: new Date(new Date().getTime() + 10*1000),
108 | badge: 3
109 | }]).then(
110 | function() {
111 | dialogs.alert({
112 | title: "Notification scheduled",
113 | message: 'ID: 3',
114 | okButtonText: "OK, thanks"
115 | });
116 | },
117 | function(error) {
118 | console.log("doScheduleAndSetBadgeNumber error: " + error);
119 | }
120 | );
121 | };
122 |
123 | DemoAppModel.prototype.doScheduleId5WithCustomIcon = function () {
124 | LocalNotifications.schedule([{
125 | id: 5,
126 | title: 'Hey',
127 | body: 'I\'m ID 5',
128 | smallIcon: 'res://launcher_icon_arrow',
129 | largeIcon: 'res://ic_notify', // although this is the default fallback as well ;)
130 | at: new Date(new Date().getTime() + 10*1000)
131 | }]).then(
132 | function() {
133 | dialogs.alert({
134 | title: "Notification scheduled",
135 | message: 'ID: 5',
136 | okButtonText: "OK, thanks"
137 | });
138 | },
139 | function(error) {
140 | console.log("doScheduleId5 error: " + error);
141 | }
142 | );
143 | };
144 |
145 | DemoAppModel.prototype.doScheduleEveryMinute = function () {
146 | LocalNotifications.schedule([{
147 | id: 6,
148 | title: 'Every minute!',
149 | interval: 'minute', // some constant
150 | body: 'I\'m repeating until cancelled',
151 | at: new Date(new Date().getTime() + 10*1000)
152 | }]).then(
153 | function() {
154 | dialogs.alert({
155 | title: "Notification scheduled",
156 | message: 'ID: 6, repeating',
157 | okButtonText: "OK, thanks"
158 | });
159 | },
160 | function(error) {
161 | console.log("doScheduleEveryMinute error: " + error);
162 | }
163 | );
164 | };
165 |
166 | DemoAppModel.prototype.doGetScheduledIds = function () {
167 | LocalNotifications.getScheduledIds().then(
168 | function(ids) {
169 | dialogs.alert({
170 | title: "Scheduled ID's",
171 | message: 'ID\'s: ' + ids,
172 | okButtonText: "Sweet!"
173 | });
174 | },
175 | function(error) {
176 | console.log("doGetScheduledIds error: " + error);
177 | }
178 | );
179 | };
180 |
181 | DemoAppModel.prototype.doCancelAll = function (sze) {
182 | LocalNotifications.cancelAll().then(
183 | function() {
184 | dialogs.alert({
185 | title: "All canceled",
186 | okButtonText: "Awesome!"
187 | });
188 | },
189 | function(error) {
190 | console.log("doCancelAll error: " + error);
191 | }
192 | );
193 | };
194 |
195 | DemoAppModel.prototype.doCancelId6 = function (sze) {
196 | LocalNotifications.cancel(6).then(
197 | function(foundAndCanceled) {
198 | if (foundAndCanceled) {
199 | dialogs.alert({
200 | title: "ID 6 canceled",
201 | okButtonText: "OK, coolness"
202 | });
203 | } else {
204 | dialogs.alert({
205 | title: "No ID 6 was scheduled",
206 | okButtonText: "OK, woops"
207 | });
208 | }
209 | },
210 | function(error) {
211 | console.log("doCancelId6 error: " + error);
212 | }
213 | );
214 | };
215 |
216 | return DemoAppModel;
217 | })(observable.Observable);
218 | exports.DemoAppModel = DemoAppModel;
219 | exports.mainViewModel = new DemoAppModel();
220 |
--------------------------------------------------------------------------------
/LocalNotifications/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tns-template-hello-world",
3 | "main": "app.js",
4 | "version": "1.5.1",
5 | "author": "Telerik ",
6 | "description": "Nativescript hello-world project template",
7 | "license": "Apache-2.0",
8 | "keywords": [
9 | "telerik",
10 | "mobile",
11 | "nativescript",
12 | "{N}",
13 | "tns",
14 | "appbuilder",
15 | "template"
16 | ],
17 | "repository": {
18 | "type": "git",
19 | "url": "git://github.com/NativeScript/template-hello-world.git"
20 | },
21 | "bugs": {
22 | "url": "https://github.com/NativeScript/template-hello-world/issues"
23 | },
24 | "homepage": "https://github.com/NativeScript/template-hello-world",
25 | "android": {
26 | "v8Flags": "--expose_gc"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/LocalNotifications/app/res/telerik-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/LocalNotifications/app/res/telerik-logo.png
--------------------------------------------------------------------------------
/LocalNotifications/hooks/after-watch/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/after-watch.js");
2 |
--------------------------------------------------------------------------------
/LocalNotifications/hooks/before-prepare/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/before-prepare.js");
2 |
--------------------------------------------------------------------------------
/LocalNotifications/hooks/before-watch/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/watch.js");
2 |
--------------------------------------------------------------------------------
/LocalNotifications/hooks/before-watchPatterns/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/before-watchPatterns.js");
2 |
--------------------------------------------------------------------------------
/LocalNotifications/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "nativescript": {
3 | "id": "org.nativescript.plugindemo.localnotifications",
4 | "tns-android": {
5 | "version": "4.1.3"
6 | },
7 | "tns-ios": {
8 | "version": "4.1.1"
9 | }
10 | },
11 | "dependencies": {
12 | "nativescript-local-notifications": "^2.0.4",
13 | "tns-core-modules": "^4.1.0"
14 | },
15 | "devDependencies": {
16 | "babel-traverse": "6.12.0",
17 | "babel-types": "6.11.1",
18 | "babylon": "6.8.4",
19 | "filewalker": "0.1.2",
20 | "lazy": "1.0.11",
21 | "nativescript-dev-typescript": "^0.7.1",
22 | "tns-platform-declarations": "~4.0.0",
23 | "typescript": "~2.7.2"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/LocalNotifications/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
--------------------------------------------------------------------------------
/LocalNotifications/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "commonjs",
5 | "declaration": false,
6 | "removeComments": true,
7 | "noLib": false,
8 | "emitDecoratorMetadata": true,
9 | "experimentalDecorators": true,
10 | "lib": [
11 | "dom",
12 | "es6"
13 | ],
14 | "pretty": true,
15 | "allowUnreachableCode": false,
16 | "allowUnusedLabels": false,
17 | "noEmitHelpers": true,
18 | "noEmitOnError": false,
19 | "noImplicitAny": false,
20 | "noImplicitReturns": true,
21 | "noImplicitUseStrict": false,
22 | "noFallthroughCasesInSwitch": true,
23 | "baseUrl": ".",
24 | "paths": {
25 | "*": [
26 | "./node_modules/*"
27 | ],
28 | "~/*": [
29 | "app/*"
30 | ]
31 | }
32 | },
33 | "exclude": [
34 | "node_modules",
35 | "platforms"
36 | ],
37 | "compileOnSave": false
38 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # nativescript-local-notifications demo app
2 |
3 | > DEPRECATED: we now use [the demo inside the plugin repo](https://github.com/EddyVerbruggen/nativescript-local-notifications/demo).
4 |
5 | Demo app for the {N} [local notifications plugin](https://www.npmjs.com/package/nativescript-local-notifications). SuperEasy(TM) to install!
6 |
7 | ## Installation
8 |
9 | This app is built with the [NativeScript CLI](https://github.com/NativeScript/nativescript-cli).
10 | Once you have the [CLI installed](https://github.com/NativeScript/nativescript-cli#installation), start by cloning the repo:
11 |
12 | __make sure your project folder name is not too long - this one is ok:__
13 |
14 | ```
15 | $ git clone https://github.com/EddyVerbruggen/nativescript-local-notifications-demo ns-localnotifications
16 | $ cd ns-localnotifications/LocalNotifications
17 | ```
18 |
19 | Next, install the app's iOS and Android runtimes, as well as the app's npm dependencies:
20 |
21 | ```
22 | $ tns install
23 | ```
24 |
25 | From there you can use the `run` command to run the demo app on iOS:
26 |
27 | ```
28 | $ tns run ios
29 | ```
30 |
31 | .. or on Android
32 |
33 | ```
34 | $ tns run android
35 | ```
36 |
37 | ## Screenshots (iOS)
38 |
39 | 
40 | 
41 | 
42 |
--------------------------------------------------------------------------------
/screenshots/ios-demo-01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/screenshots/ios-demo-01.png
--------------------------------------------------------------------------------
/screenshots/ios-demo-02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/screenshots/ios-demo-02.png
--------------------------------------------------------------------------------
/screenshots/ios-demo-03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EddyVerbruggen/nativescript-local-notifications-demo/ecaf2e995b733bb11eab04ffbb6ec1091697b6ac/screenshots/ios-demo-03.png
--------------------------------------------------------------------------------