-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(inappmessaging): add support for triggering custom events #4201
feat(inappmessaging): add support for triggering custom events #4201
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/invertase/react-native-firebase/6sugiebrl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi there! This is awesome, thank you for extending the API here to wrap features we hadn't exposed from the native SDKs, that's a huge help
I'm prepared to accept this, it looks good except there is a compile error right now for iOS:
❌ /Users/runner/work/react-native-firebase/react-native-firebase/packages/in-app-messaging/ios/RNFBFiam/RNFBFiamModule.m:67:16: interface type 'NSString' cannot be passed by value; did you forget * in 'NSString'?
(NSString) eventId
Seperately, can you think of a way to get some basic coverage on the API?
At minimum exercising that it checks the argument correctly would be good, I'm not sure how I would test the actual in app message, that might not be worth it here
Fixed the NSString* issue and added a test that at least calls the new function. Not sure what I can verify in the test, but at least this will verify that the app doesn't crash on calling the function? |
I think we still need the cla signed but otherwise it will probably be good to go when I reread it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just need you to sign the CLA or we can't merge
I think I signed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent! Thanks @gilbertl !
Description
I want to use the programmatic event triggering feature in Firebase In App Messaging described here
https://firebase.google.com/docs/in-app-messaging/modify-message-behavior?platform=android#trigger_in-app_messages_programmatically
Related issues
No issues.
Release Summary
Support for In App Messaging's programmatic event triggering
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
It's not obvious how we can test whether the event was triggered.
jest
tests added or updated inpackages/\*\*/__tests__
There are no existing jest tests in the inappmessaging module
Test Plan
I'm not sure how to test this ...