@grouplinknetwork/group-link-ionic-plugin 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/README.md +50 -21
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,34 +1,63 @@
1
- # group-link
2
-
3
- plugin for implementing the company's native sdk group link
4
-
5
- ## Install
1
+ # group-link-ionic-plugin
2
+ This is the Group Link SDK for Ionic to use in Android and iOS Devices.
6
3
 
4
+ ## Instalation
7
5
  ```bash
8
- npm install group-link
6
+ npm install @grouplinknetwork/group-link-ionic-plugin
9
7
  npm run build
10
8
  npx cap sync
11
9
  ```
12
10
 
13
- ### Android
14
- ```bash
15
- npx cap open android
11
+ ### Import ```group-link-ionic-plugin```
12
+ ```ts
13
+ import { GLStart, GLRequestPermissions } from '@grouplinknetwork/group-link-ionic-plugin';
16
14
  ```
17
15
 
18
- ### iOS
19
- ```bash
20
- npx cap open ios
16
+ ### startGrouplink - Angular
17
+ ```ts
18
+ export class AppComponent {
19
+ constructor() {}
20
+
21
+ async ngOnInit() {
22
+ try {
23
+ GLStart("GROUP_LINK_TOKEN");
24
+ GLRequestPermissions();
25
+ } catch (error) {
26
+ console.error("Error starting GroupLinkSDK:", error);
27
+ }
28
+ }
29
+ }
21
30
  ```
22
31
 
23
- ## Publish
24
-
25
- ```bash
26
- npm run prebuild
27
- npm run build
28
- # npm publish
32
+ ### startGrouplink - React
33
+ ```ts
34
+ import { useEffect } from 'react';
35
+
36
+ function App() {
37
+ useEffect(() => {
38
+ try {
39
+ GLStart("GROUP_LINK_TOKEN");
40
+ GLRequestPermissions();
41
+ } catch (error) {
42
+ console.error("Error starting GroupLinkSDK:", error);
43
+ }
44
+ }, []);
45
+ }
29
46
  ```
30
47
 
31
- ## API
48
+ ### startGrouplink - Vue
49
+ ```ts
50
+ import { onMounted } from 'vue';
51
+
52
+ onMounted(() => {
53
+ try {
54
+ GLStart("GROUP_LINK_TOKEN");
55
+ GLRequestPermissions();
56
+ } catch (error) {
57
+ console.error("Error starting GroupLinkSDK:", error);
58
+ }
59
+ });
60
+ ```
32
61
 
33
- Access:
34
- https://docs.grouplinknetwork.com/ for more information
62
+ ## Docs
63
+ Access: https://docs.grouplinknetwork.com/ for more information
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grouplinknetwork/group-link-ionic-plugin",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "plugin for implementing the company's native sdk group link",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",