-
Notifications
You must be signed in to change notification settings - Fork 86
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
Start SDK from RN context #130
base: master
Are you sure you want to change the base?
Conversation
@Taylor123 thank you for your efforts here. Thoughts:
Let us know a bit more about your expected use case for late initialization and we can give more specific guidance for 1-2 |
@Taylor123 another workaround that should work:
|
@Bucimis Would disabling work from RN since the JS context (and thus call to disable) is loaded after startWithApi is invoked? |
@Taylor123 true, unfortunately the initial disable call would need to take place in the native layer. Ultimately it may require the same amount of work as implementing late init without disable. The important part of any solution is that the call to startWithApikey in didFinishLaunching is gated until it's appropriate to call it (i.e. once the user has logged in). |
@Bucimis this sounds like a similar situation that our company is running into. We'd like to change the sdk configuration after a user is authenticated our system. That makes it hard to do since all the configuration is happening in the native layer on app initialization. Would it be possible to add react native methods to leverage what the iOS and Android SDKs already have to offer and allow configuration at run time from the javascript level? |
@pang0018 thanks for the helpful context and feature request. Runtime configuration (and initialization) is something we're aiming to offer in the future across all SDKs. In the meantime, let us know if we can help you reach your intended use case with the existing API. |
@Bucimis are there still plans to introduce this in the Braze SDK? |
Applications built in React Native should have the ability to determine when Braze (aka Appboy) starts to collect information and count as an MAU. For our specific instance, we only want to store data for MAUs that have authenticated. To do so, we must only register the app with Braze when a user has authenticated.
This is a work in progress and currently only supports iOS. The approach for Android seems a bit less obvious as Braze is managed by the
ActivityLifecycleCallbacks
. Would appreciate the teams input on this ASAP as we'd like to reduce our current MAUs as we're not using the anon data.One outstanding question: