Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

(ios) pass data to on('notification') while app is in foreground #2907

Open
wants to merge 45 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
6f0d362
Update plugin.xml
duca14036 Jul 23, 2019
f812533
show notification when app is active
duca14036 Aug 6, 2019
9fbef3b
notification while app run
duca14036 Aug 22, 2019
2f4896f
Merge branch 'master' of https://github.com/phonegap/phonegap-plugin-…
duca14036 Apr 30, 2020
0cf2bd3
update to latest Firebase/Messaging
duca14036 Apr 30, 2020
7ddacb0
Release 2.3.1
duca14036 Jun 19, 2020
f8aec5d
chore: update plugin package (#1)
erisu Aug 12, 2020
e89d55c
cleanup: remove unused dependencies (#2)
erisu Aug 12, 2020
3fa9537
refactor(eslint): update dependencies w/ fixes (#3)
erisu Aug 12, 2020
3f4fb09
chore(ci): update travis configs (#5)
erisu Aug 12, 2020
073d418
chore(github-pages): remove config (#4)
erisu Aug 12, 2020
f118ba7
chore: update npm & git ignore list (#6)
erisu Aug 12, 2020
20d9dc4
chore: update version requirements (#7)
erisu Aug 12, 2020
3e7fc65
feat: remove ordova-support-google-services dependency (#8)
erisu Aug 12, 2020
c6209e7
chore: update xml namespace (#9)
erisu Aug 12, 2020
79c2d70
chore: match plugin.xml version w/ package.json (#10)
erisu Aug 12, 2020
d7bc4ad
style(md): format with md all in one (vscode) (#11)
erisu Aug 12, 2020
27967cc
feat(ios): support critical alert notifications (#12)
erisu Aug 12, 2020
1fcb939
breaking(android): move clearAllNotifications to destroy from pause (…
erisu Aug 12, 2020
6361d5d
chore(type-definition): Update PushNotificationStatic (#14)
erisu Aug 12, 2020
6505dde
fix(android): enable lights when lightColor is set (#15)
erisu Aug 12, 2020
185f454
breaking(android): drop phonegap-plugin-multidex dependency (#21)
erisu Aug 28, 2020
7143d59
chore(android): bump com.android.support:support-v13:28.0.0 (#20)
erisu Aug 28, 2020
e471bbb
ci(gh-actions): add workflow (#23)
erisu Aug 28, 2020
061c498
chore: add missing build of push.js (#22)
erisu Aug 28, 2020
1ae3428
breaking(android): bump fcm@18.+ (#19)
erisu Aug 29, 2020
f931bf3
chore: update ticket management (#27)
erisu Sep 1, 2020
38e4316
core(ios): use latest firebase library (#24)
erisu Sep 1, 2020
826e3ae
chore(android): cleanup & format (#26)
erisu Sep 1, 2020
fe1cdf2
doc: update various markdown docs (#28)
erisu Sep 4, 2020
67baa04
fix(browser): corrected path to manifest file. (#32)
jgmdev Sep 10, 2020
edaff20
feature: android notification data pass (#31)
erisu Sep 10, 2020
0962b76
chore(npm): properly configure for scope package (#33)
erisu Sep 11, 2020
dedf439
feat(ios): increase firebase framework to 6.32.2 (#42)
ucsbricks Oct 22, 2020
3298b62
fix(android): Use app name for default channel (#49)
dertieran Oct 22, 2020
ea8ea28
doc: cleanup docs (#51)
erisu Oct 23, 2020
08b452c
chore(android): set requirement >= 8.0.0 (#52)
erisu Oct 23, 2020
35597dc
doc(android): enable & set notification light with lightColor (#54)
erisu Oct 25, 2020
d793227
fix(android): missing channel description crash (#53)
erisu Oct 25, 2020
f31f040
Merge commit 'd7932274652ca2f977c67580b1dcbf1ed22fa878'
duca14036 Oct 27, 2020
45dbcb0
chore(npm): rebuilt package-lock.json (#55)
erisu Oct 28, 2020
fc27b40
release(1.0.0): version & changelog
erisu Nov 8, 2020
6a71d66
chore: bump version to 1.0.1-dev.0
erisu Nov 11, 2020
79333b2
fix: incorrect initial cordova-cli requirement
erisu Nov 11, 2020
7d8cb73
Merge commit '79333b25e1ff68fea377be499da91528c82fa21f'
duca14036 Nov 18, 2020
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
Prev Previous commit
Next Next commit
fix: incorrect initial cordova-cli requirement
erisu committed Nov 11, 2020

Verified

This commit was signed with the committer’s verified signature.
JounQin JounQin
commit 79333b25e1ff68fea377be499da91528c82fa21f
8 changes: 4 additions & 4 deletions docs/INSTALLATION.md
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@

| Plugin version | Cordova CLI | Cordova Android | Cordova iOS | CocoaPods |
| -------------- | ----------- | --------------- | ----------- | --------- |
| 1.0.0 | 9.0.0 | 8.0.0 | 5.1.1 | 1.8.0 |
| 1.0.0 | 10.0.0 | 8.0.0 | 5.1.1 | 1.8.0 |

To install from the command line:

@@ -117,7 +117,7 @@ To make the two work together, you need to migrate your GCM project from Google
{
"cordova": {
"plugins": {
"havesource-cordova-plugin-push": {
"@havesource/cordova-plugin-push": {
"ANDROID_SUPPORT_V13_VERSION": "28.0.0",
"FCM_VERSION": "18.+"
}
@@ -230,8 +230,8 @@ This plugin uses the [Firebase/Messaging](https://cocoapods.org/pods/Firebase) l
If you are attempting to install this plugin and you run into this error:

```log
Installing "havesource-cordova-plugin-push" for ios
Failed to install 'havesource-cordova-plugin-push':Error: pod: Command failed with exit code 1
Installing "@havesource/cordova-plugin-push" for ios
Failed to install '@havesource/cordova-plugin-push':Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/Users/smacdona/code/push151/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
2 changes: 1 addition & 1 deletion hooks/browser/updateManifest.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ module.exports = function (context) {

var pluginManifestPath = path.join(
context.opts.projectRoot,
'plugins/havesource-cordova-plugin-push/src/browser/manifest.json'
'plugins/@havesource/cordova-plugin-push/src/browser/manifest.json'
);

fs.readFile(pluginManifestPath, 'utf8', function (err, pluginJson) {
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -39,15 +39,15 @@
"engines": {
"cordovaDependencies": {
"1.0.0": {
"cordova": ">=9.0.0",
"cordova": ">=10.0.0",
"cordova-android": ">=8.0.0",
"cordova-ios": ">=5.1.1"
}
}
},
"types": "./types/index.d.ts",
"cordova": {
"id": "havesource-cordova-plugin-push",
"id": "@havesource/cordova-plugin-push",
"platforms": [
"ios",
"android",
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="havesource-cordova-plugin-push" version="1.0.1-dev.0">
id="@havesource/cordova-plugin-push" version="1.0.1-dev.0">

<name>Cordova Push Plugin</name>
<description>Enable receiving push notifications on Android, iOS and Windows devices. Android uses Firebase Cloud Messaging. iOS uses Apple APNS Notifications. Windows uses Microsoft WNS Notifications.</description>
@@ -13,7 +13,7 @@
</js-module>

<engines>
<engine name="cordova" version=">=9.0.0"/>
<engine name="cordova" version=">=10.0.0"/>
<engine name="cordova-android" version=">=8.0.0"/>
<engine name="cordova-ios" version=">=5.1.1"/>
</engines>