@inngageregistry/inngage-react 3.3.0-alpha.8 → 3.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inngageregistry/inngage-react",
3
- "version": "3.3.0-alpha.8",
3
+ "version": "3.3.0",
4
4
  "description": "Inngage Plugin for React Native applications for marketing campaign optimization using Push Notification.",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.d.ts",
@@ -38,4 +38,4 @@
38
38
  "@types/react-test-renderer": "^18.0.0",
39
39
  "typescript": "^5.0.4"
40
40
  }
41
- }
41
+ }
package/src/Inngage.ts CHANGED
@@ -6,6 +6,7 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
6
6
  import { addUserDataRequest, eventRequest, formatDate, subscriptionRequestAdapter } from "./utils";
7
7
  import notificationsListener, { notificationsListenerProps } from "./notificationsListener";
8
8
  import { subscriptionApi, eventsApi, addUserDataApi } from "./services/inngage";
9
+ import { InngageProperties } from './models/inngage_properties';
9
10
 
10
11
  import RNPermissions, { NotificationOption, RESULTS } from 'react-native-permissions';
11
12
 
@@ -102,6 +103,9 @@ const Inngage = {
102
103
  phoneNumber,
103
104
  email,
104
105
  }: SubscriptionProps) => {
106
+ InngageProperties.appToken = appToken;
107
+ InngageProperties.identifier = friendlyIdentifier!;
108
+
105
109
  try {
106
110
  const respToken = await getFirebaseAccess()
107
111
 
@@ -1,4 +1,4 @@
1
- class InngageProperties {
1
+ export class InngageProperties {
2
2
  static identifier: string = '';
3
3
  static appToken: string = '';
4
4
  static phoneNumber: string = '';