@capawesome/capacitor-intercom 0.1.0 → 0.1.1
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/Package.swift
CHANGED
|
@@ -21,10 +21,6 @@ let package = Package(
|
|
|
21
21
|
.product(name: "Cordova", package: "capacitor-swift-pm"),
|
|
22
22
|
.product(name: "Intercom", package: "intercom-ios-sp")
|
|
23
23
|
],
|
|
24
|
-
path: "ios/Plugin")
|
|
25
|
-
.testTarget(
|
|
26
|
-
name: "IntercomPluginTests",
|
|
27
|
-
dependencies: ["IntercomPlugin"],
|
|
28
|
-
path: "ios/PluginTests")
|
|
24
|
+
path: "ios/Plugin")
|
|
29
25
|
]
|
|
30
26
|
)
|
package/README.md
CHANGED
|
@@ -21,9 +21,9 @@ The Capacitor Intercom plugin is a modern integration of the Intercom SDKs for C
|
|
|
21
21
|
- 🔢 **Unread Count**: Read the unread conversation count and listen for changes.
|
|
22
22
|
- 🔔 **Push Notifications**: Compose cleanly with Firebase Cloud Messaging (Android) and APNs (iOS).
|
|
23
23
|
- 🌐 **Typed Web SDK**: Uses the official `@intercom/messenger-js-sdk` package on the web.
|
|
24
|
+
- 🤝 **Compatibility**: Looking for a different chat SDK? Check out the [Crisp](https://capawesome.io/docs/sdks/capacitor/crisp/) plugin.
|
|
24
25
|
- 📦 **CocoaPods & SPM**: Supports CocoaPods and Swift Package Manager for iOS.
|
|
25
26
|
- 🔁 **Up-to-date**: Always supports the latest Capacitor version.
|
|
26
|
-
- 🤝 **Compatibility**: Looking for a different chat SDK? Check out the [Crisp](https://capawesome.io/docs/sdks/capacitor/crisp/) plugin.
|
|
27
27
|
|
|
28
28
|
Missing a feature? Just [open an issue](https://github.com/capawesome-team/capacitor-plugins/issues) and we'll take a look!
|
|
29
29
|
|
|
@@ -917,6 +917,12 @@ Generate a user hash (HMAC) or a JSON Web Token (JWT) on your backend using your
|
|
|
917
917
|
|
|
918
918
|
Yes, the plugin is framework-agnostic. It works in any Capacitor app regardless of the web framework, including Ionic with Angular, React, or Vue, as well as plain JavaScript projects.
|
|
919
919
|
|
|
920
|
+
## Related Plugins
|
|
921
|
+
|
|
922
|
+
- [Crisp](https://capawesome.io/docs/sdks/capacitor/crisp/): Unofficial Capacitor plugin for the Crisp live chat and customer support platform.
|
|
923
|
+
- [Formbricks](https://capawesome.io/docs/sdks/capacitor/formbricks/): Unofficial Capacitor plugin for Formbricks to run in-app surveys.
|
|
924
|
+
- [PostHog](https://capawesome.io/docs/sdks/capacitor/posthog/): Unofficial Capacitor plugin for the PostHog product analytics platform.
|
|
925
|
+
|
|
920
926
|
## Newsletter
|
|
921
927
|
|
|
922
928
|
Stay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our [Capawesome Newsletter](https://cloud.capawesome.io/newsletter/).
|
|
@@ -237,12 +237,11 @@ public class Intercom {
|
|
|
237
237
|
runOnMainThread(() -> {
|
|
238
238
|
try {
|
|
239
239
|
requireInitialized();
|
|
240
|
-
io.intercom.android.sdk.Intercom.client()
|
|
241
|
-
.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
);
|
|
240
|
+
io.intercom.android.sdk.Intercom.client().setInAppMessageVisibility(
|
|
241
|
+
options.getVisible()
|
|
242
|
+
? io.intercom.android.sdk.Intercom.Visibility.VISIBLE
|
|
243
|
+
: io.intercom.android.sdk.Intercom.Visibility.GONE
|
|
244
|
+
);
|
|
246
245
|
callback.success();
|
|
247
246
|
} catch (Exception exception) {
|
|
248
247
|
callback.error(exception);
|
|
@@ -254,12 +253,11 @@ public class Intercom {
|
|
|
254
253
|
runOnMainThread(() -> {
|
|
255
254
|
try {
|
|
256
255
|
requireInitialized();
|
|
257
|
-
io.intercom.android.sdk.Intercom.client()
|
|
258
|
-
.
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
);
|
|
256
|
+
io.intercom.android.sdk.Intercom.client().setLauncherVisibility(
|
|
257
|
+
options.getVisible()
|
|
258
|
+
? io.intercom.android.sdk.Intercom.Visibility.VISIBLE
|
|
259
|
+
: io.intercom.android.sdk.Intercom.Visibility.GONE
|
|
260
|
+
);
|
|
263
261
|
callback.success();
|
|
264
262
|
} catch (Exception exception) {
|
|
265
263
|
callback.error(exception);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capawesome/capacitor-intercom",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Unofficial Capacitor plugin for Intercom on Android, iOS, and Web.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -66,16 +66,16 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@capacitor/android": "8.0.0",
|
|
69
|
-
"@capacitor/cli": "8.
|
|
69
|
+
"@capacitor/cli": "8.4.2",
|
|
70
70
|
"@capacitor/core": "8.0.0",
|
|
71
71
|
"@capacitor/docgen": "0.3.1",
|
|
72
72
|
"@capacitor/ios": "8.0.0",
|
|
73
73
|
"@intercom/messenger-js-sdk": "0.0.20",
|
|
74
74
|
"@ionic/eslint-config": "0.4.0",
|
|
75
75
|
"eslint": "8.57.0",
|
|
76
|
-
"prettier-plugin-java": "2.
|
|
76
|
+
"prettier-plugin-java": "2.9.7",
|
|
77
77
|
"rimraf": "6.1.2",
|
|
78
|
-
"rollup": "4.
|
|
78
|
+
"rollup": "4.62.3",
|
|
79
79
|
"swiftlint": "2.0.0",
|
|
80
80
|
"typescript": "5.9.3"
|
|
81
81
|
},
|