@affiliateo/react-native 1.0.1 → 1.0.2

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/package.json +1 -1
  2. package/src/provider.tsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@affiliateo/react-native",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Affiliateo SDK for React Native — mobile affiliate attribution and screen tracking",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/provider.tsx CHANGED
@@ -153,7 +153,7 @@ export function AffiliateoProvider({
153
153
  client.sendEvents(campaignId, deviceId, [
154
154
  { type: 'session_start', timestamp: new Date().toISOString() },
155
155
  ]).catch(() => {})
156
- } else if (nextState === 'background' || nextState === 'inactive') {
156
+ } else if (nextState === 'background') {
157
157
  client.sendEvents(campaignId, deviceId, [
158
158
  { type: 'session_end', timestamp: new Date().toISOString() },
159
159
  ]).catch(() => {})