Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Notifications #94

Merged
merged 78 commits into from
Jan 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
6a9b55b
generate notifications plugin
imhoffd Nov 5, 2020
59eb65f
port local notifications
imhoffd Nov 6, 2020
e22456f
rename to local-notifications
imhoffd Nov 7, 2020
f32ab0e
fix deprecated API usage
imhoffd Nov 7, 2020
667ef22
port web
imhoffd Nov 7, 2020
27c1aff
implement new permissions
imhoffd Nov 7, 2020
bd6e3f6
rewrite web
imhoffd Nov 9, 2020
79a711b
add required xml stuffs
imhoffd Nov 9, 2020
6b1f35e
replace deprecated plugin call methods
imhoffd Nov 9, 2020
712aaa3
import ios code
imhoffd Nov 10, 2020
0e6111d
android permissions (requestPermissions doesn't work)
imhoffd Nov 10, 2020
b41425b
wip
imhoffd Nov 20, 2020
3fbadd5
Merge branch 'main' into local-notifications
imhoffd Nov 23, 2020
c28508b
wip
imhoffd Nov 24, 2020
164c774
updated handleOnActivityResult for alpha 7
carlpoole Nov 24, 2020
48eb016
put back null check
carlpoole Nov 24, 2020
0c9f009
toggle-local
imhoffd Nov 24, 2020
fbd0887
refactor: update plugin registration from runtime refactor (#93)
adamdbradley Nov 24, 2020
14c62e3
Merge branch 'alpha.7' into local-notifications
imhoffd Nov 24, 2020
eb92b74
registerPlugin
imhoffd Nov 24, 2020
3833819
use new permission annotation
imhoffd Nov 24, 2020
28d0679
Merge branch 'update-permission-annotations' into local-notifications
imhoffd Nov 24, 2020
ae1219d
Merge remote-tracking branch 'origin/share-result' into local-notific…
imhoffd Nov 24, 2020
ac7478a
refactor(android): use new permission annotation (#113)
imhoffd Nov 24, 2020
84c4403
refactor(android): updated share plugin handleOnActivityResult signat…
carlpoole Nov 25, 2020
641cf52
Merge branch 'alpha.7' into local-notifications
imhoffd Nov 25, 2020
de8e45e
java permission updates
imhoffd Nov 25, 2020
9375aa7
ios delegate updates
imhoffd Nov 25, 2020
f7a9a2e
toggle-local
imhoffd Dec 2, 2020
a5c9ad1
Merge branch 'main' into local-notifications
imhoffd Dec 2, 2020
a267d1f
build docs
imhoffd Dec 2, 2020
e97578b
update gradle
imhoffd Dec 2, 2020
999c931
remove registry
imhoffd Dec 2, 2020
8adc9a7
remove constructor
imhoffd Dec 2, 2020
b93bcc1
docs
imhoffd Dec 3, 2020
cfccf05
rename listeners
imhoffd Dec 3, 2020
680da7e
deleted files
imhoffd Dec 3, 2020
ec453c9
add license
imhoffd Dec 3, 2020
5988088
add types for config files
imhoffd Dec 5, 2020
81e1a32
more info about smallIcon
imhoffd Dec 5, 2020
c10823a
better description
imhoffd Dec 5, 2020
0d6853f
Update local-notifications/ios/PluginTests/LocalNotificationsPluginTe…
imhoffd Dec 7, 2020
5ed43bf
Update local-notifications/package.json
imhoffd Dec 7, 2020
51d879f
Update local-notifications/android/src/main/AndroidManifest.xml
imhoffd Dec 7, 2020
67f9d78
Update local-notifications/src/definitions.ts
imhoffd Dec 7, 2020
53f0ba7
Update local-notifications/src/definitions.ts
imhoffd Dec 7, 2020
53b39a9
Update local-notifications/src/definitions.ts
imhoffd Dec 7, 2020
1b86dd6
Update local-notifications/src/definitions.ts
imhoffd Dec 7, 2020
9313e6c
handle checkPermissions
imhoffd Dec 7, 2020
908e6fe
regen docs
imhoffd Dec 7, 2020
7ce31d3
Merge branch 'main' into local-notifications
imhoffd Dec 7, 2020
2528632
replace deprecated methods
imhoffd Dec 7, 2020
72c0816
export deprecated types
imhoffd Dec 7, 2020
12c6802
Merge branch 'main' into local-notifications
imhoffd Dec 7, 2020
65b9dbf
regen docs
imhoffd Dec 7, 2020
1abe16c
Merge branch 'main' into local-notifications
imhoffd Dec 15, 2020
573689c
Merge branch 'main' into local-notifications
imhoffd Dec 16, 2020
a1d9c69
Merge branch 'main' into local-notifications
imhoffd Dec 16, 2020
e2e07cd
update to alpha.10
imhoffd Dec 16, 2020
c19bf6f
Merge branch 'main' into local-notifications
imhoffd Dec 28, 2020
7bd26dc
update to alpha.11
imhoffd Dec 28, 2020
02ad6a9
use loadDefault
imhoffd Dec 28, 2020
46429ef
Merge branch 'main' into local-notifications
imhoffd Jan 7, 2021
8695228
add plugin to readme
imhoffd Jan 7, 2021
23501c8
Fixing schedule date parsing, adding more useful fields to pendingNot…
theproducer Jan 8, 2021
4959365
Merge branch 'local-notifications' of github.com:ionic-team/capacitor…
theproducer Jan 8, 2021
0bfa2b4
Merge branch 'main' into local-notifications
theproducer Jan 11, 2021
b8f6466
Merge branch 'main' into local-notifications
theproducer Jan 11, 2021
8cb9d83
Renaming NotificationChannel to Channel and adding Channel docs
theproducer Jan 12, 2021
42daee7
Merge branch 'main' into local-notifications
theproducer Jan 12, 2021
5990beb
Updating target iOS version
theproducer Jan 12, 2021
a96be42
Renaming LocalNotificationDelegate to LocalNotificationHandler
theproducer Jan 12, 2021
7ac7225
Running docgen
theproducer Jan 12, 2021
f7d3b5b
fmt
theproducer Jan 12, 2021
5ecd63e
Disabling additional pendingNotification fields (for now)
theproducer Jan 12, 2021
f6a120f
Removing additional pendingNotification fields
theproducer Jan 12, 2021
583a979
update to alpha.13
imhoffd Jan 13, 2021
8814679
Merge branch 'main' into local-notifications
imhoffd Jan 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This repository contains the official Capacitor plugins maintained by the Capaci
| [`@capacitor/geolocation`](https://capacitorjs.com/docs/v3/apis/geolocation) | [`./geolocation`](./geolocation) | [![npm badge](https://img.shields.io/npm/v/@capacitor/geolocation?style=flat-square)](https://www.npmjs.com/package/@capacitor/geolocation)
| [`@capacitor/haptics`](https://capacitorjs.com/docs/v3/apis/haptics) | [`./haptics`](./haptics) | [![npm badge](https://img.shields.io/npm/v/@capacitor/haptics?style=flat-square)](https://www.npmjs.com/package/@capacitor/haptics)
| [`@capacitor/keyboard`](https://capacitorjs.com/docs/v3/apis/keyboard) | [`./keyboard`](./keyboard) | [![npm badge](https://img.shields.io/npm/v/@capacitor/keyboard?style=flat-square)](https://www.npmjs.com/package/@capacitor/keyboard)
| [`@capacitor/local-notifications`](https://capacitorjs.com/docs/v3/apis/local-notifications) | [`./local-notifications`](./local-notifications) | [![npm badge](https://img.shields.io/npm/v/@capacitor/local-notifications?style=flat-square)](https://www.npmjs.com/package/@capacitor/local-notifications)
| [`@capacitor/motion`](https://capacitorjs.com/docs/v3/apis/motion) | [`./motion`](./motion) | [![npm badge](https://img.shields.io/npm/v/@capacitor/motion?style=flat-square)](https://www.npmjs.com/package/@capacitor/motion)
| [`@capacitor/network`](https://capacitorjs.com/docs/v3/apis/network) | [`./network`](./network) | [![npm badge](https://img.shields.io/npm/v/@capacitor/network?style=flat-square)](https://www.npmjs.com/package/@capacitor/network)
| [`@capacitor/push-notifications`](https://capacitorjs.com/docs/v3/apis/push-notifications) | [`./push-notifications`](./push-notifications) | [![npm badge](https://img.shields.io/npm/v/@capacitor/push-notifications?style=flat-square)](https://www.npmjs.com/package/@capacitor/push-notifications)
Expand Down
1 change: 1 addition & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"geolocation",
"haptics",
"keyboard",
"local-notifications",
"motion",
"network",
"push-notifications",
Expand Down
2 changes: 2 additions & 0 deletions local-notifications/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
dist
61 changes: 61 additions & 0 deletions local-notifications/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# node files
dist
node_modules

# iOS files
Pods
Podfile.lock
Build
xcuserdata

# macOS files
.DS_Store



# Based on Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore

# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin
gen
out

# Gradle files
.gradle
build

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation

# Android Studio captures folder
captures

# IntelliJ
*.iml
.idea

# Keystore files
# Uncomment the following line if you do not want to check your keystore files in.
#*.jks

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
2 changes: 2 additions & 0 deletions local-notifications/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
dist
17 changes: 17 additions & 0 deletions local-notifications/CapacitorLocalNotifications.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = 'CapacitorLocalNotifications'
s.version = package['version']
s.summary = package['description']
s.license = package['license']
s.homepage = package['repository']['url']
s.author = package['author']
s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '12.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
end
23 changes: 23 additions & 0 deletions local-notifications/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright 2020-present Ionic
https://ionic.io

MIT License

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading