@capacitor-community/fcm 6.0.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapacitorCommunityFcm.podspec +1 -1
- package/README.md +8 -21
- package/android/build.gradle +10 -10
- package/dist/esm/web.js +1 -4
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +1 -4
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +1 -4
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Plugin/Plugin.swift +2 -0
- package/package.json +17 -17
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { git: package['repository']['url'], tag: s.version.to_s }
|
|
13
13
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '14.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.dependency 'Firebase/Messaging'
|
|
17
17
|
s.swift_version = '5.1'
|
package/README.md
CHANGED
|
@@ -6,39 +6,22 @@
|
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
8
|
<p align="center">
|
|
9
|
-
<img src="https://img.shields.io/maintenance/yes/
|
|
9
|
+
<img src="https://img.shields.io/maintenance/yes/2025?style=flat-square" />
|
|
10
10
|
<a href="https://www.npmjs.com/package/@capacitor-community/fcm"><img src="https://img.shields.io/npm/l/@capacitor-community/fcm?style=flat-square" /></a>
|
|
11
11
|
<br>
|
|
12
12
|
<a href="https://www.npmjs.com/package/@capacitor-community/fcm"><img src="https://img.shields.io/npm/dw/@capacitor-community/fcm?style=flat-square" /></a>
|
|
13
13
|
<a href="https://www.npmjs.com/package/@capacitor-community/fcm"><img src="https://img.shields.io/npm/v/@capacitor-community/fcm?style=flat-square" /></a>
|
|
14
14
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
15
|
-
<a href="#contributors"><img src="https://img.shields.io/badge/all%20contributors-
|
|
15
|
+
<a href="#contributors"><img src="https://img.shields.io/badge/all%20contributors-27-orange?style=flat-square" /></a>
|
|
16
16
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
17
17
|
|
|
18
18
|
</p>
|
|
19
19
|
|
|
20
|
-
## Sponsors
|
|
21
|
-
|
|
22
|
-
<table>
|
|
23
|
-
<tr>
|
|
24
|
-
<td align="center">
|
|
25
|
-
<a href="https://chatness.ai">
|
|
26
|
-
<img src="https://cdn.chatness.ai/images/logo-white-symbol.png" width="40" />
|
|
27
|
-
</a>
|
|
28
|
-
</td>
|
|
29
|
-
<td>
|
|
30
|
-
<a href="https://chatness.ai">
|
|
31
|
-
Chatness AI
|
|
32
|
-
</a>
|
|
33
|
-
</td>
|
|
34
|
-
</tr>
|
|
35
|
-
</table>
|
|
36
|
-
|
|
37
20
|
## Maintainers
|
|
38
21
|
|
|
39
22
|
| Maintainer | GitHub | Social |
|
|
40
23
|
| ------------ | --------------------------------------- | ----------------------------------------- |
|
|
41
|
-
| Stewan Silva | [stewones](https://github.com/stewones) | [@stewones](https://
|
|
24
|
+
| Stewan Silva | [stewones](https://github.com/stewones) | [@stewones](https://x.com/stewones) |
|
|
42
25
|
|
|
43
26
|
## Notice 🚀
|
|
44
27
|
|
|
@@ -251,9 +234,13 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
251
234
|
<td align="center" valign="top" width="20%"><a href="http://www.jcesarmobile.com/"><img src="https://avatars.githubusercontent.com/u/1637892?v=4?s=75" width="75px;" alt="jcesarmobile"/><br /><sub><b>jcesarmobile</b></sub></a><br /><a href="#question-jcesarmobile" title="Answering Questions">💬</a> <a href="https://github.com/capacitor-community/fcm/commits?author=jcesarmobile" title="Documentation">📖</a> <a href="#maintenance-jcesarmobile" title="Maintenance">🚧</a></td>
|
|
252
235
|
<td align="center" valign="top" width="20%"><a href="https://github.com/ramikhafagi96"><img src="https://avatars.githubusercontent.com/u/38646828?v=4?s=75" width="75px;" alt="Rami Khafagi"/><br /><sub><b>Rami Khafagi</b></sub></a><br /><a href="https://github.com/capacitor-community/fcm/commits?author=ramikhafagi96" title="Code">💻</a></td>
|
|
253
236
|
<td align="center" valign="top" width="20%"><a href="https://github.com/bipoza"><img src="https://avatars.githubusercontent.com/u/26112509?v=4?s=75" width="75px;" alt="Bittor Poza"/><br /><sub><b>Bittor Poza</b></sub></a><br /><a href="https://github.com/capacitor-community/fcm/commits?author=bipoza" title="Code">💻</a></td>
|
|
254
|
-
<td align="center" valign="top" width="20%"><a href="https://github.com/Vishal-Isharani"><img src="https://avatars.githubusercontent.com/u/10386581?v=4?s=75" width="75px;" alt="Vishal Isharani"/><br /><sub><b>Vishal Isharani</b></sub></a><br /><a href="#maintenance-Vishal-Isharani" title="Maintenance">🚧</a></td>
|
|
237
|
+
<td align="center" valign="top" width="20%"><a href="https://github.com/Vishal-Isharani"><img src="https://avatars.githubusercontent.com/u/10386581?v=4?s=75" width="75px;" alt="Vishal Isharani"/><br /><sub><b>Vishal Isharani</b></sub></a><br /><a href="#maintenance-Vishal-Isharani" title="Maintenance">🚧</a> <a href="https://github.com/capacitor-community/fcm/commits?author=Vishal-Isharani" title="Code">💻</a></td>
|
|
255
238
|
<td align="center" valign="top" width="20%"><a href="https://github.com/kashz"><img src="https://avatars.githubusercontent.com/u/12661101?v=4?s=75" width="75px;" alt="Shunta KARASAWA"/><br /><sub><b>Shunta KARASAWA</b></sub></a><br /><a href="#maintenance-kashz" title="Maintenance">🚧</a></td>
|
|
256
239
|
</tr>
|
|
240
|
+
<tr>
|
|
241
|
+
<td align="center" valign="top" width="20%"><a href="http://www.chrisweight.com/"><img src="https://avatars.githubusercontent.com/u/468638?v=4?s=75" width="75px;" alt="Chris Weight"/><br /><sub><b>Chris Weight</b></sub></a><br /><a href="#maintenance-chrisweight" title="Maintenance">🚧</a></td>
|
|
242
|
+
<td align="center" valign="top" width="20%"><a href="https://by.vincent.mahn.ke/"><img src="https://avatars.githubusercontent.com/u/1689033?v=4?s=75" width="75px;" alt="Vincent Mahnke"/><br /><sub><b>Vincent Mahnke</b></sub></a><br /><a href="#maintenance-ViMaSter" title="Maintenance">🚧</a></td>
|
|
243
|
+
</tr>
|
|
257
244
|
</tbody>
|
|
258
245
|
</table>
|
|
259
246
|
|
package/android/build.gradle
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
ext {
|
|
2
2
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
3
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.
|
|
4
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1
|
|
5
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
6
|
-
firebaseMessagingVersion = project.hasProperty('firebaseMessagingVersion') ? rootProject.ext.firebaseMessagingVersion : '
|
|
3
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
|
|
4
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
|
|
5
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
|
|
6
|
+
firebaseMessagingVersion = project.hasProperty('firebaseMessagingVersion') ? rootProject.ext.firebaseMessagingVersion : '24.1.0'
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
buildscript {
|
|
@@ -12,7 +12,7 @@ buildscript {
|
|
|
12
12
|
mavenCentral()
|
|
13
13
|
}
|
|
14
14
|
dependencies {
|
|
15
|
-
classpath 'com.android.tools.build:gradle:8.2
|
|
15
|
+
classpath 'com.android.tools.build:gradle:8.7.2'
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -20,10 +20,10 @@ apply plugin: 'com.android.library'
|
|
|
20
20
|
|
|
21
21
|
android {
|
|
22
22
|
namespace "com.getcapacitor.community.fcm.fcm"
|
|
23
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
23
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
|
|
24
24
|
defaultConfig {
|
|
25
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
26
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
25
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
|
|
26
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
|
|
27
27
|
versionCode 1
|
|
28
28
|
versionName "1.0"
|
|
29
29
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -39,8 +39,8 @@ android {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
compileOptions {
|
|
42
|
-
sourceCompatibility JavaVersion.
|
|
43
|
-
targetCompatibility JavaVersion.
|
|
42
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
43
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
package/dist/esm/web.js
CHANGED
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnC;QACE,KAAK,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,OAAO,MAAO,SAAQ,SAAS;IACnC;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,WAAW,CAAC,QAA2B;QACrC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,eAAe,CAAC,QAA2B;QACzC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,QAAQ;QACN,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,cAAc;QACZ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,WAAW,CAAC,QAA8B;QACxC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,iBAAiB;QACf,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,YAAY;QACV,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF;AAED,MAAM,GAAG,GAAG,IAAI,MAAM,EAAE,CAAC;AAEzB,OAAO,EAAE,GAAG,EAAE,CAAC","sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport { FCMPlugin } from './definitions';\n\nexport class FCMWeb extends WebPlugin implements FCMPlugin {\n constructor() {\n super();\n }\n\n subscribeTo(_options: { topic: string }): Promise<{ message: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n unsubscribeFrom(_options: { topic: string }): Promise<{ message: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n getToken(): Promise<{ token: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n deleteInstance(): Promise<boolean> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n setAutoInit(_options: { enabled: boolean }): Promise<void> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n isAutoInitEnabled(): Promise<{ enabled: boolean }> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n refreshToken(): Promise<{ token: string }> {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n\nconst FCM = new FCMWeb();\n\nexport { FCM };\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -10,10 +10,7 @@ const FCM$1 = core.registerPlugin("FCM", {
|
|
|
10
10
|
|
|
11
11
|
class FCMWeb extends core.WebPlugin {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(
|
|
14
|
-
name: 'FCM',
|
|
15
|
-
platforms: ['web'],
|
|
16
|
-
});
|
|
13
|
+
super();
|
|
17
14
|
}
|
|
18
15
|
subscribeTo(_options) {
|
|
19
16
|
throw this.unimplemented('Not implemented on web.');
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst FCM = registerPlugin(\"FCM\", {\n web: () => import(\"./web\").then((m) => new m.FCMWeb()),\n});\n// export * from './web'; // @todo\nexport * from \"./definitions\";\nexport { FCM };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class FCMWeb extends WebPlugin {\n constructor() {\n super(
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst FCM = registerPlugin(\"FCM\", {\n web: () => import(\"./web\").then((m) => new m.FCMWeb()),\n});\n// export * from './web'; // @todo\nexport * from \"./definitions\";\nexport { FCM };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class FCMWeb extends WebPlugin {\n constructor() {\n super();\n }\n subscribeTo(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n unsubscribeFrom(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n getToken() {\n throw this.unimplemented('Not implemented on web.');\n }\n deleteInstance() {\n throw this.unimplemented('Not implemented on web.');\n }\n setAutoInit(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n isAutoInitEnabled() {\n throw this.unimplemented('Not implemented on web.');\n }\n refreshToken() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\nconst FCM = new FCMWeb();\nexport { FCM };\n//# sourceMappingURL=web.js.map"],"names":["FCM","registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAACA,KAAG,GAAGC,mBAAc,CAAC,KAAK,EAAE;AAClC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;AAC1D,CAAC;;ACFM,MAAM,MAAM,SAASC,cAAS,CAAC;AACtC,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,EAAE,CAAC;AAChB,KAAK;AACL,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,eAAe,CAAC,QAAQ,EAAE;AAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,QAAQ,GAAG;AACf,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,cAAc,GAAG;AACrB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,WAAW,CAAC,QAAQ,EAAE;AAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,iBAAiB,GAAG;AACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,IAAI,YAAY,GAAG;AACnB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL,CAAC;AACD,MAAM,GAAG,GAAG,IAAI,MAAM,EAAE;;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -7,10 +7,7 @@ var capacitorPlugin = (function (exports, core) {
|
|
|
7
7
|
|
|
8
8
|
class FCMWeb extends core.WebPlugin {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(
|
|
11
|
-
name: 'FCM',
|
|
12
|
-
platforms: ['web'],
|
|
13
|
-
});
|
|
10
|
+
super();
|
|
14
11
|
}
|
|
15
12
|
subscribeTo(_options) {
|
|
16
13
|
throw this.unimplemented('Not implemented on web.');
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst FCM = registerPlugin(\"FCM\", {\n web: () => import(\"./web\").then((m) => new m.FCMWeb()),\n});\n// export * from './web'; // @todo\nexport * from \"./definitions\";\nexport { FCM };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class FCMWeb extends WebPlugin {\n constructor() {\n super(
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\nconst FCM = registerPlugin(\"FCM\", {\n web: () => import(\"./web\").then((m) => new m.FCMWeb()),\n});\n// export * from './web'; // @todo\nexport * from \"./definitions\";\nexport { FCM };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class FCMWeb extends WebPlugin {\n constructor() {\n super();\n }\n subscribeTo(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n unsubscribeFrom(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n getToken() {\n throw this.unimplemented('Not implemented on web.');\n }\n deleteInstance() {\n throw this.unimplemented('Not implemented on web.');\n }\n setAutoInit(_options) {\n throw this.unimplemented('Not implemented on web.');\n }\n isAutoInitEnabled() {\n throw this.unimplemented('Not implemented on web.');\n }\n refreshToken() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\nconst FCM = new FCMWeb();\nexport { FCM };\n//# sourceMappingURL=web.js.map"],"names":["FCM","registerPlugin","WebPlugin"],"mappings":";;;AACK,UAACA,KAAG,GAAGC,mBAAc,CAAC,KAAK,EAAE;IAClC,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;IAC1D,CAAC;;ICFM,MAAM,MAAM,SAASC,cAAS,CAAC;IACtC,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,EAAE,CAAC;IAChB,KAAK;IACL,IAAI,WAAW,CAAC,QAAQ,EAAE;IAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,eAAe,CAAC,QAAQ,EAAE;IAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,QAAQ,GAAG;IACf,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,cAAc,GAAG;IACrB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,WAAW,CAAC,QAAQ,EAAE;IAC1B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,iBAAiB,GAAG;IACxB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,IAAI,YAAY,GAAG;IACnB,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL,CAAC;IACD,MAAM,GAAG,GAAG,IAAI,MAAM,EAAE;;;;;;;;;;;;;;;;;;"}
|
|
@@ -112,6 +112,8 @@ public class FCMPlugin: CAPPlugin, MessagingDelegate {
|
|
|
112
112
|
print("Error deleting installation: \(error)")
|
|
113
113
|
call.reject("Cant delete Firebase Instance ID", error.localizedDescription)
|
|
114
114
|
}
|
|
115
|
+
// reset fcmToken
|
|
116
|
+
self.fcmToken = "";
|
|
115
117
|
call.resolve();
|
|
116
118
|
}
|
|
117
119
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor-community/fcm",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Enable Firebase Cloud Messaging features for Capacitor apps",
|
|
5
5
|
"main": "dist/esm/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"firebase cloud messaging"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "npm run clean && tsc && rollup -c rollup.config.
|
|
34
|
+
"build": "npm run clean && tsc && rollup -c rollup.config.mjs",
|
|
35
35
|
"clean": "rimraf ./dist",
|
|
36
36
|
"watch": "tsc --watch",
|
|
37
37
|
"prepublishOnly": "npm run build",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
43
43
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
44
44
|
"eslint": "eslint . --ext ts",
|
|
45
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
45
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
46
46
|
"swiftlint": "node-swiftlint",
|
|
47
47
|
"release:patch": "standard-version release --release-as patch",
|
|
48
48
|
"release:minor": "standard-version release --release-as minor",
|
|
@@ -51,25 +51,25 @@
|
|
|
51
51
|
"contributors:gen": "all-contributors generate"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@capacitor/android": "^
|
|
55
|
-
"@capacitor/core": "^
|
|
56
|
-
"@capacitor/docgen": "^0.0
|
|
57
|
-
"@capacitor/ios": "^
|
|
58
|
-
"@ionic/eslint-config": "^0.
|
|
59
|
-
"@ionic/prettier-config": "^
|
|
60
|
-
"@ionic/swiftlint-config": "^
|
|
54
|
+
"@capacitor/android": "^7.0.0",
|
|
55
|
+
"@capacitor/core": "^7.0.0",
|
|
56
|
+
"@capacitor/docgen": "^0.3.0",
|
|
57
|
+
"@capacitor/ios": "^7.0.0",
|
|
58
|
+
"@ionic/eslint-config": "^0.4.0",
|
|
59
|
+
"@ionic/prettier-config": "^4.0.0",
|
|
60
|
+
"@ionic/swiftlint-config": "^2.0.0",
|
|
61
61
|
"all-contributors-cli": "^6.24.0",
|
|
62
|
-
"eslint": "^
|
|
63
|
-
"prettier": "
|
|
64
|
-
"prettier-plugin-java": "
|
|
65
|
-
"rimraf": "^
|
|
66
|
-
"rollup": "^
|
|
62
|
+
"eslint": "^8.57.0",
|
|
63
|
+
"prettier": "^3.4.2",
|
|
64
|
+
"prettier-plugin-java": "^2.6.6",
|
|
65
|
+
"rimraf": "^6.0.1",
|
|
66
|
+
"rollup": "^4.30.1",
|
|
67
67
|
"standard-version": "^9.5.0",
|
|
68
|
-
"swiftlint": "^
|
|
68
|
+
"swiftlint": "^2.0.0",
|
|
69
69
|
"typescript": "~4.1.5"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@capacitor/core": "
|
|
72
|
+
"@capacitor/core": ">=7.0.0"
|
|
73
73
|
},
|
|
74
74
|
"prettier": "@ionic/prettier-config",
|
|
75
75
|
"swiftlint": "@ionic/swiftlint-config",
|