apps-sdk 1.0.174 → 1.0.175

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": "apps-sdk",
3
- "version": "1.0.174",
3
+ "version": "1.0.175",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -222,8 +222,8 @@ class Networking {
222
222
  return config.PAYWALL_DATA;
223
223
  }
224
224
 
225
- sendEvent = async (eventType, eventKeyword, eventData={}) => {
226
- if (config.TRACKING_ACTIVE === false && Platform.OS === 'ios') {
225
+ sendEvent = async (eventType, eventKeyword, eventData={}, forceSend = false) => {
226
+ if (config.TRACKING_ACTIVE === false && Platform.OS === 'ios' && !forceSend) {
227
227
  console.log('Event not sent, tracking is denied (iOS): ', eventType, eventKeyword);
228
228
  console.log('Tracking answered: ', config.TRACKING_ANSWERED);
229
229
  if (!config.TRACKING_ANSWERED) {
package/types/index.d.ts CHANGED
@@ -74,7 +74,7 @@ declare module 'apps-sdk' {
74
74
  setEndpoints(endpoints: any): void;
75
75
  getEndpoints(): any;
76
76
  setEvents(events: any): void;
77
- sendEvent(eventType: string, eventKeyword:string, eventData?: object): Promise<void>;
77
+ sendEvent(eventType: string, eventKeyword:string, eventData?: object, forceSend?: boolean): Promise<void>;
78
78
  createSubscription(): any;
79
79
  checkConnection(): Promise<boolean>;
80
80
  setImageCompression(compression: any): void;