Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to test inAppMessaging #857

Closed
ReneMarquez opened this issue Sep 13, 2019 · 5 comments
Closed

Error trying to test inAppMessaging #857

ReneMarquez opened this issue Sep 13, 2019 · 5 comments

Comments

@ReneMarquez
Copy link

Description:

I'm trying to test the In app messaging feature with the latest update on iOS, I upgraded the npm package to the latest version (3.3.3) and it gives the next error trying to use the OneSignal.addTriggers(), if I comment that line, everything works

Simulator Screen Shot - iPhone 6 - 2019-09-13 at 13 55 23

Environment

1.- using version of library 3.3.3
2. I'm not using cocoapods, I installed just by linking and doing the extension part.

Steps to Reproduce Issue:

  1. update package version to 3.3.3 using npm
  2. try to use function OneSignal.addTrigger()
  3. red screen comes up

Anything else:

(crash stacktraces, as well as any other information here)

@rgomezp
Copy link
Contributor

rgomezp commented Sep 13, 2019

What version of RN are you using? Also, you're likely not using the latest version of the OneSignal iOS native SDK. Can you make sure you're using 2.11.0?

From our docs:

If you are not using Cocoapods AND react-native link react-native-onesignal does not work
Add RCTOneSignal project into Libraries manually (screenshot):
Open node_modules/react-native-onesignal/ios
Then, drag and drop RCTOneSignal.xcodeproj into XCode project folder Libraries

@ReneMarquez
Copy link
Author

What version of RN are you using? Also, you're likely not using the latest version of the OneSignal iOS native SDK. Can you make sure you're using 2.11.0?

From our docs:

If you are not using Cocoapods AND react-native link react-native-onesignal does not work
Add RCTOneSignal project into Libraries manually (screenshot):
Open node_modules/react-native-onesignal/ios
Then, drag and drop RCTOneSignal.xcodeproj into XCode project folder Libraries

I'm using React native 0.59.9
How can I check which sdk version am I using? My problem is not the linking part, as I've been using onesignal for a while now, and when I comment the lines related to inAppMessaging, everything works as expected

@rgomezp
Copy link
Contributor

rgomezp commented Sep 13, 2019

I'm not sure what could be happening here. Could you try upgrading to the latest RN which does automatic linking?

@rgomezp
Copy link
Contributor

rgomezp commented Sep 17, 2019

Update: we have released version 3.4.1 that should fix this issue. If not, please comment and I will reopen. Cheers

@rgomezp rgomezp closed this as completed Sep 17, 2019
@ReneMarquez
Copy link
Author

just fyi, I updated react native to latest, and installed react native onesignal using cocoapods and that fixed it, it was a mess but oh well, just for anyone that encounters anything similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants