Wootric / react-native-wootric

React Native wrapper for Wootric
MIT License
2 stars 17 forks source link

NSInvalidArgumentException: NSConcreteMutableAttributedString addAttribute:value:range:: nil value #27

Open andrescalco opened 2 years ago

andrescalco commented 2 years ago

Hello y'all!

Currently, I'm seeing an increase of crashes on iOS related to the Wootric library on my application, mostly being on iOS 15+ but with occurrences on iOS 12.5.4:

image

A few info about the installed packages:

"@wootric/react-native-wootric": "1.4.1",
...
"react": "17.0.2",
"react-native": "0.65.1"

Code snippet that is used to show the surveys

import Wootric from "@wootric/react-native-wootric";

Wootric.configureWithClientID(clientId, accountToken);
Wootric.setEndUserEmail(email);
Wootric.setEndUserExternalId(userId);
Wootric.setEndUserCreatedAt(installTime);
Wootric.setEndUserProperties(attributes);
Wootric.showSurvey();
JordaoViktor commented 2 years ago

I am having the same problem with


"@wootric/react-native-wootric": "1.5.0",

"react": "17.0.2",

"react-native": "0.66.4"
JordaoViktor commented 2 years ago

Hello y'all!

Currently, I'm seeing an increase of crashes on iOS related to the Wootric library on my application, mostly being on iOS 15+ but with occurrences on iOS 12.5.4:

image

A few info about the installed packages:

"@wootric/react-native-wootric": "1.4.1",
...
"react": "17.0.2",
"react-native": "0.65.1"

Code snippet that is used to show the surveys

import Wootric from "@wootric/react-native-wootric";

Wootric.configureWithClientID(clientId, accountToken);
Wootric.setEndUserEmail(email);
Wootric.setEndUserExternalId(userId);
Wootric.setEndUserCreatedAt(installTime);
Wootric.setEndUserProperties(attributes);
Wootric.showSurvey();

did you solved this issue?

diegoserranoa commented 2 years ago

Hi @JordaoViktor. I think this is a React Native issue. Please take a look at this commit: https://github.com/facebook/react-native/commit/5683932862ab870e735342342c68e03fb5ca9e09

It seems like this was fixed in react-native version 0.67.0 https://github.com/facebook/react-native/blob/main/CHANGELOG.md#v0670