Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capacitor-appmetrica

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-appmetrica - npm Package Compare versions

Comparing version 1.0.0-beta.0 to 1.0.0-beta.1

2

package.json
{
"name": "capacitor-appmetrica",
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.1",
"description": "Capacitor plugin for Appmetrica",

@@ -5,0 +5,0 @@ "main": "plugin.js",

# Capacitor Appmetrica plugin
Currently only works on ios, but android support will be coming soon
# Available methods:
- logEvent
- setUserProfileID
- reportUserProfile
- getDeviceID
- activate()
- pauseSession()
- sendEventsBuffer()
- resumeSession()
- setLocationTracking()
- setStatisticsSending()
- setLocation()
- reportAppOpen()
- reportError()
- reportEvent()
- reportReferralUrl()
- setUserProfileID()
- getDeviceID()
- reportUserProfile()
# Usage example:
0. Add in `capacitor.config.json`
```json
{
"plugins": {
"Appmetrica": {
"apiKey": "Your API key"
}
}
```
1. In your module (e.g. `app.module.ts`)

@@ -52,2 +49,6 @@

async initialization() {
await this.appmetrica.activate("<SDK_API_KEY>", { logs: true })
}
async logEvent(name: string, params?: Object) {

@@ -78,1 +79,29 @@ await this.appmetrica.logEvent(name, params)

```
## BREAKING CHANGES in 1.x.x
1. Removed automatic initialization of Appmetrica, now you need to initialize it manually using the `activate` method
To migrate, remove the `Appmetrica` settings from the `capacitor.config.json`
```diff
{
"plugins": {
...
- "Appmetrica": {
- "apiKey": "Your API key"
- ...
- },
...
}
```
and run the `activate` method when the application starts. For example:
```typescript
ngOnInit() {
this.appmetrica.activate("<API_KEY>", options)
}
```
2. Added Android support
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc