-
Notifications
You must be signed in to change notification settings - Fork 8
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
SDK-5238 Delayed init android docs #8397
base: develop
Are you sure you want to change the base?
Conversation
@chshapiro is attempting to deploy a commit to the Braze team on Vercel, but is not a member of this team. To resolve this issue, you can:
To read more about collaboration on Vercel, click here. |
Assigning @internetisaiah to this PR to shepherd. Just noting that he is traveling at a conference this week. Since the due date on this is not specified, I'm hoping this is okay. If something changes, please ping me! |
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/initial_sdk_setup/android_sdk_integration.md
Outdated
Show resolved
Hide resolved
While delayed initialization is enabled, all network connections to be canceled, and the Braze SDK will not pass any data to Braze servers. | ||
|
||
{% alert important %} | ||
Delayed initialization is available starting in Android SDK version xxxx. |
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.
I'm just going to comment here to make sure we don't forget to add the Android version once we have it.
<string name="com_braze_delayed_initialization_analytics_behavior">"QUEUE"</string> | ||
``` | ||
|
||
Additionaly, the push analytics behavior can be set during runtime in the [`Braze.enableDelayedInitialization()`](set link after release) method by using one of the following code snippets: |
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.
commenting to remember to add link after release
|
||
## Initializing After Delay | ||
|
||
To initialize the SDK once the delay period is over, use the [`Braze.disableDelayedInitialization()`](set link after release) method: |
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.
commenting to remember to link after relase
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.
Just some suggestions to help with the reader flow, but otherwise doc LGTM!
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
Delayed initialization is available starting in Android SDK version xxxx. | ||
{% endalert %} | ||
|
||
## Enabling Delayed Initialization |
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.
What are your thoughts on adding numbers to the subtitles? For example, Step 1: Enabling Delayed Initialization or 1. Enabling Delayed Initialization
I think this would help the reader understand that the steps flow together. This is also helpful for parity, because the Swift Docs uses numbered Steps)
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.
It's not really steps where they all need to be done. Each section is a different part of the feature. If there's numbers, I think users will think they need to do all the steps.
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.
Oh right that's true! Since there are cases where a user may never init afterwards, etc. I agree with having no numbers then
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.
Follow-up: are certain steps required before completing other steps? i.e., maybe doing something like this:
# Title
Description
## Enabling delayed initialization
...
## Optional configurations
### Push analytics
...
### Initialization after delay
...
(or something similar?)
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
|
||
When delayed initialization is enabled, you have the option to queue or drop push analytics. If push analytics are queued, these events will be logged once delayed initialization is disabled. | ||
|
||
By default, push analytics are queued when delayed initialization is enabled. In order to drop push analytics, update your `braze.xml` file to include `com_braze_delayed_initialization_analytics_behavior` as follows: |
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.
To me, this line:
By default, push analytics are queued when delayed initialization is enabled.
seems to conflict with the line above it:
If push analytics are queued, these events will be logged once delayed initialization is disabled.
could i get some clarity here when you get the chance @chshapiro ? thanks!
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.
*Note: this has been removed it in the current commit. Please be sure to double-check my changes to ensure I'm still representing the original idea properly 👍🏽
...loper_guide/platform_integration_guides/android/advanced_use_cases/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...loper_guide/platform_integration_guides/android/initial_sdk_setup/android_sdk_integration.md
Outdated
Show resolved
Hide resolved
…tial_sdk_setup/android_sdk_integration.md
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.
This LGTM other than the missing version number and the links to the new method. Once we add those this can be merged 🫡
...developer_guide/platform_integration_guides/android/initialization/delayed_initialization.md
Outdated
Show resolved
Hide resolved
...developer_guide/platform_integration_guides/android/initialization/delayed_initialization.md
Outdated
Show resolved
Hide resolved
…c/braze-docs into SDK-5238-delayedInitAndroidDocs
Thanks! This feature won't be released for a few more weeks - once it is, I will update the version numbers and links |
Hey @chshapiro : Just checking in to see if you knew the exact timeline for this feature release yet. Cheers! |
Hey @josh-mccrowell-braze we probably won't be releasing this until the new year. Will update here when we're ready to make this live |
Why are you making this change? (required)
Documentation for future delayed init feature on Android
Related PRs, issues, or features (optional)
(https://jira.braze.com/browse/SDK-5238)
Feature release date (optional)
Contributor checklist
Submitting for review
If your PR meets the above requirements, select Ready for review, then add a reviewer:
braze-inc/docs-team
as the reviewer.braze-inc/docs-team
instead.Thanks for contributing! We look forward to reading your work.