@capgo/capacitor-appinsights 8.0.46 → 8.0.48
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/README.md
CHANGED
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
# @capgo/capacitor-appinsights
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
Integrate the Apptopia AppInsights SDK in your Capacitor app with a small TypeScript API. Initialize the panel SDK, set a user ID and read its state.
|
|
4
|
+
|
|
5
|
+
<a href="https://capgo.app/?ref=plugin_appinsights"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-appinsights" alt="Capgo - Instant updates for Capacitor" /></a>
|
|
3
6
|
|
|
4
7
|
<div align="center">
|
|
5
|
-
<
|
|
6
|
-
<h2><a href="https://capgo.app/
|
|
8
|
+
<p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
|
|
9
|
+
<h2><a href="https://capgo.app/register/?ref=plugin_appinsights">➡️ Get started for free</a></h2>
|
|
10
|
+
<p>14-day unlimited free trial. No credit card required</p>
|
|
11
|
+
<p><a href="https://capgo.app/consulting/?ref=plugin_appinsights">Missing a feature? We'll build the plugin for you 💪</a></p>
|
|
7
12
|
</div>
|
|
8
|
-
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<img src="https://raw.githubusercontent.com/Cap-go/capacitor-appinsights/main/assets/github-social-preview.png" alt="@capgo/capacitor-appinsights for Capacitor apps" width="300" />
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
## Key features
|
|
19
|
+
|
|
20
|
+
- **Initialize**: `init()` starts the AppInsights SDK with your partner ID.
|
|
21
|
+
- **User ID**: `setUserId()` sets or updates the user ID after initialization.
|
|
22
|
+
- **State**: `getState()` returns the current SDK state.
|
|
23
|
+
- **Official SDK**: wraps the `com.appinsights:appinsights` Android library. `getPluginVersion()` also works on iOS, and on web it returns `web` instead of a version number.
|
|
24
|
+
- **Platforms**: Android. The AppInsights SDK methods (`init()`, `setUserId()` and `getState()`) are Android only and reject on iOS and web.
|
|
9
25
|
|
|
10
26
|
## Why Capacitor AppInsights?
|
|
11
27
|
|
|
@@ -7,7 +7,7 @@ import Capacitor
|
|
|
7
7
|
*/
|
|
8
8
|
@objc(CapacitorAppInsightsPlugin)
|
|
9
9
|
public class CapacitorAppInsightsPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
10
|
-
private let pluginVersion: String = "8.0.
|
|
10
|
+
private let pluginVersion: String = "8.0.48"
|
|
11
11
|
public let identifier = "CapacitorAppInsightsPlugin"
|
|
12
12
|
public let jsName = "CapacitorAppInsights"
|
|
13
13
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED