Comments (4)
We haven't heard of other customers having an issue like this. What version of Kotlin is in your app?
The full logs would be helpful, and perhaps the APK itself. For that, you may want to go through support so those don't need to be publicly posted.
from braze-android-sdk.
- +1 to posting the full logs here. There's a log starting with
Braze SDK loaded in
that posts the full amount of time spent on the main thread by the SDK during initialization. - Can you post the ANR report generated? These should be available after only 5 seconds of the app freezing
- Can you post a video or provide reproduction steps (or even a small reproducible sample app) of the 40 second freezing?
- Are you making a method call to any of the documented blocking/synchronous methods to the singleton during initialization? (shown below)
from braze-android-sdk.
Thanks for the quick response you two 🙇
Kotlin Version: 1.7.20
Full Logs until start fetching data (Braze only)
Details
12:49:48.628 Braze v25.0.0 .Braze I Firebase Cloud Messaging found. Setting up Firebase Cloud Messaging.
12:49:48.674 BrazeManager D Init Braze
12:49:48.674 Braze v25....inkHandler D Custom IBrazeDeeplinkHandler set
12:49:48.674 BrazeManager D Begin Braze Session
12:49:48.674 Braze v25....ckListener V BrazeActivityLifecycleCallbackListener using in-app messaging blocklist: []
12:49:48.674 Braze v25....ckListener V BrazeActivityLifecycleCallbackListener using session handling blocklist: []
12:49:48.676 Braze v25....ageManager D Custom InAppMessageViewFactory set
12:49:48.676 Braze v25....ageManager D Custom IInAppMessageViewWrapperFactory set
12:49:48.676 Braze v25....ageManager D Custom InAppMessageManagerListener set
12:50:18.638 Braze v25....onProvider D Unable to find the xml BOOLEAN configuration value with primary key 'com_braze_push_adm_messaging_registration_enabled'. Using default value 'false'.
12:50:18.638 Braze v25....onProvider D Using resources value for key: 'com_braze_push_adm_messaging_registration_enabled' and value: 'false'
12:50:18.638 Braze v25.0.0 .Braze I Automatic ADM registration not enabled in configuration. Braze will not register for ADM.
12:50:18.641 Braze v25.0.0 .Braze V Starting up a new user dependency manager
12:50:18.647 Braze v25....dPrefUtils V Detected SDK update from '' -> '25.0.0'. Clearing com.braze.storage.server_config.xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx storage.
12:50:18.649 Braze v25....tringUtils V Generating MD5 for user id: apiKey: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
12:50:18.653 Braze v25....onProvider D Using resources value for key: 'com_braze_session_timeout' and value: '2700'
12:50:18.655 Braze v25....onProvider D Unable to find the xml BOOLEAN configuration value with primary key 'com_braze_session_start_based_timeout_enabled'. Using default value 'false'.
12:50:18.655 Braze v25....onProvider D Using resources value for key: 'com_braze_session_start_based_timeout_enabled' and value: 'false'
12:50:18.663 Braze v25....onProvider D Unable to find the xml INTEGER configuration value with primary key 'com_braze_trigger_action_minimum_time_interval_seconds'. Using default value '30'.
12:50:18.663 Braze v25....onProvider D Using resources value for key: 'com_braze_trigger_action_minimum_time_interval_seconds' and value: '30'
12:50:18.665 Braze v25.....bo.app.h6 V Subscribing to trigger dispatch events.
12:50:18.670 Braze v25....onProvider D Unable to find the xml STRING_ARRAY configuration value with primary key 'com_braze_custom_location_providers_list'. Using default value '[]'.
12:50:18.670 Braze v25....onProvider D Using resources value for key: 'com_braze_custom_location_providers_list' and value: '[]'
12:50:18.671 Braze v25....nceManager D Did not find stored geofences.
12:50:18.673 Braze v25....nceManager I Geofences implicitly disabled via server configuration.
12:50:18.673 Braze v25....nceManager I ***Geofence API not found. Please include the android-sdk-location module***
12:50:18.673 Braze v25....nceManager D Braze geofences not enabled. Geofences not set up.
12:50:18.674 Braze v25.0.0 .o I ***Location API not found. Please include android-sdk-location module***
12:50:18.676 Braze v25.0.0 .g1 D Did not find stored Feature Flags.
12:50:18.680 Braze v25....dPrefUtils V Detected SDK update from '' -> '25.0.0'. Clearing com.braze.storage.content_cards_storage_provider.metadata.d41d8cd98f00b204e9800998ecf8427e.a8781125-b32e-458b-9700-b9711b1d2f50 storage.
12:50:18.684 Braze v25.0.0 .i0 V recalculateDispatchState called with session state: NO_SESSION lastNetworkLevel: NONE
12:50:18.684 Braze v25.0.0 .i0 V currentIntervalMs: -1
12:50:18.684 Braze v25.0.0 .i0 D Data sync started
12:50:18.688 Braze v25.0.0 .i0 V recalculateDispatchState called with session state: NO_SESSION lastNetworkLevel: GOOD
12:50:18.688 Braze v25.0.0 .i0 V currentIntervalMs: -1
12:50:18.688 Braze v25.0.0 .i0 V recalculateDispatchState called with session state: NO_SESSION lastNetworkLevel: GOOD
12:50:18.688 Braze v25.0.0 .i0 V currentIntervalMs: -1
12:50:18.691 Braze v25.0.0 .d1 D Started offline event recovery task.
12:50:18.768 Braze v25....ckListener V Automatically calling lifecycle method: ensureSubscribedToInAppMessageEvents for class: class com.dummy.base.MainActivity
12:50:18.768 Braze v25....ageManager D Subscribing in-app message event subscriber
12:50:18.768 Braze v25....ageManager V Subscribing sdk data wipe subscriber
12:50:18.858 Braze v25....ckListener V Automatically calling lifecycle method: openSession for class: class com.dummy.base.MainActivity
12:50:18.858 Braze v25.0.0 .u D Getting the stored open session
12:50:18.859 Braze v25.0.0 .n5 D No stored open session in storage.
12:50:18.859 Braze v25.0.0 .u I New session created with ID: 4f2f2df2-9c1d-42fa-921f-9e5d154c8240
12:50:18.859 Braze v25.0.0 .b1 D bo.app.g5 fired: SessionCreatedEvent(session=
MutableSession(sessionId=4f2f2df2-9c1d-42fa-921f-9e5d154c8240, startTime=1.683777018859E9, endTime=null, isSealed=false, duration=-1))
12:50:18.860 Braze v25.0.0 .b1 D Triggering bo.app.g5 on 0 subscribers.
12:50:18.860 Braze v25.0.0 .b1 D Triggering bo.app.g5 on 2 subscribers.
12:50:18.860 Braze v25.0.0 .a1 D Session start event for new session received.
12:50:18.864 Braze v25.0.0 .u D Checking if this session needs to be sealed: 4f2f2df2-9c1d-42fa-921f-9e5d154c8240
12:50:18.864 Braze v25.0.0 .u D Checking if this session needs to be sealed: 4f2f2df2-9c1d-42fa-921f-9e5d154c8240
12:50:18.864 Braze v25.0.0 .p D Not adding user id to event: {
"name": "ss",
"data": {},
"time": 1.683777018863E9,
"session_id": "4f2f2df2-9c1d-42fa-921f-9e5d154c8240"
}
12:50:18.865 Braze v25.0.0 .p V Attempting to log event: {
"name": "ss",
"data": {},
"time": 1.683777018863E9,
"session_id": "4f2f2df2-9c1d-42fa-921f-9e5d154c8240"
}
12:50:18.866 Braze v25.0.0 .m5 D Adding event to storage with uid 9616f7c0-3217-4173-813e-b00f385fc049
12:50:18.867 Braze v25.0.0 .b1 D bo.app.p0 fired: commandType = ADD_BRAZE_EVENT
brazeEvent = {"name":"ss","data":{},"time":1.683777018863E9,"session_id":"4f2f2df2-9c1d-42fa-921f-9e5d154c8240"}
sessionId = null
brazeRequest = null
12:50:18.868 Braze v25.0.0 .b1 D Triggering bo.app.p0 on 0 subscribers.
12:50:18.868 Braze v25.0.0 .b1 D Triggering bo.app.p0 on 1 subscribers.
12:50:18.870 Braze v25.0.0 .b1 D bo.app.p0 fired: commandType = FLUSH_PENDING_BRAZE_EVENTS
brazeEvent = null
sessionId = 4f2f2df2-9c1d-42fa-921f-9e5d154c8240
brazeRequest = null
12:50:18.870 Braze v25.0.0 .b1 D Triggering bo.app.p0 on 0 subscribers.
12:50:18.870 Braze v25.0.0 .b1 D Triggering bo.app.p0 on 1 subscribers.
12:50:18.871 Braze v25.0.0 .p V Updated shouldRequestTriggersInNextRequest to: true
12:50:18.872 Braze v25.0.0 .q6 V Push token cache cleared.
12:50:18.872 Braze v25.0.0 .l0 V Device object cache cleared.
12:50:18.872 Braze v25.0.0 .a1 D Requesting trigger refresh.
12:50:18.873 Braze v25....onProvider D Unable to find the xml STRING configuration value with primary key 'com_braze_server_target'. Using default value 'PROD'.
12:50:18.873 Braze v25....onProvider D Using resources value for key: 'com_braze_server_target' and value: 'PROD'
12:50:18.875 Braze v25.0.0 .b1 D bo.app.p0 fired: commandType = ADD_REQUEST
brazeEvent = null
sessionId = null
brazeRequest = {
"respond_with": {
"triggers": true,
"config": {
"config_time": 0
}
}
}
to target: https://sdk.iad-01.braze.com/api/v3/data
12:50:18.875 Braze v25.0.0 .b1 D Triggering bo.app.p0 on 0 subscribers.
12:50:18.875 Braze v25.0.0 .b1 D Triggering bo.app.p0 on 1 subscribers.
12:50:18.876 Braze v25.0.0 .b1 D bo.app.c6 fired: TriggerDispatchStartedEvent(request={
"respond_with": {
"triggers": true,
"config": {
"config_time": 0
}
}
}
to target: https://sdk.iad-01.braze.com/api/v3/data)
12:50:18.876 Braze v25.0.0 .b1 D Triggering bo.app.c6 on 0 subscribers.
12:50:18.876 Braze v25.0.0 .b1 D Triggering bo.app.c6 on 1 subscribers.
12:50:18.876 Braze v25.0.0 .b1 D bo.app.p4 fired: RequestDispatchStartedEvent(request={
"respond_with": {
"triggers": true,
"config": {
"config_time": 0
}
}
}
to target: https://sdk.iad-01.braze.com/api/v3/data)
12:50:18.877 Braze v25.0.0 .b1 D Triggering bo.app.p4 on 0 subscribers.
12:50:18.877 Braze v25.0.0 .b1 D Triggering bo.app.p4 on 1 subscribers.
12:50:18.879 Braze v25....onProvider D Unable to find the xml BOOLEAN configuration value with primary key 'com_braze_sdk_authentication_enabled'. Using default value 'false'.
12:50:18.879 Braze v25....onProvider D Using resources value for key: 'com_braze_sdk_authentication_enabled' and value: 'false'
12:50:18.879 Braze v25.0.0 .r0 V SDK Auth is disabled, not adding signature to request
12:50:18.879 Braze v25....ckListener V Automatically calling lifecycle method: registerInAppMessageManager for class: class com.dummy.base.MainActivity
12:50:18.880 Braze v25....ageManager V Registering InAppMessageManager with activity: com.dummy.base.MainActivity
12:50:18.881 Braze v25....ageManager D Removing existing in-app message event subscriber before subscribing a new one.
12:50:18.881 Braze v25....ageManager D Subscribing in-app message event subscriber
12:50:18.881 Braze v25....ageManager V Removing existing sdk data wipe event subscriber before subscribing a new one.
12:50:18.881 Braze v25....ageManager V Subscribing sdk data wipe subscriber
12:50:18.885 Braze v25....onProvider D Unable to find the xml STRING configuration value with primary key 'com_braze_sdk_flavor'. Using default value 'null'.
12:50:18.885 Braze v25....onProvider D Using resources value for key: 'com_braze_sdk_flavor' and value: 'null'
12:50:18.891 Braze v25.0.0 .r0 V Added request to dispatcher with parameters:
{
"respond_with": {
"triggers": true,
"config": {
"config_time": 0
}
}
}
12:50:18.891 Braze v25.0.0 .p V Updated shouldRequestTriggersInNextRequest to: false
12:50:18.892 Braze v25....onProvider D Unable to find the xml BOOLEAN configuration value with primary key 'com_braze_automatic_geofence_requests_enabled'. Using default value 'true'.
12:50:18.892 Braze v25....onProvider D Using resources value for key: 'com_braze_automatic_geofence_requests_enabled' and value: 'true'
12:50:18.892 Braze v25.0.0 .a1 D Requesting Braze Geofence refresh on session created event due to configuration.
12:50:18.893 Braze v25.0.0 .a1 D Not automatically requesting Content Card refresh on session created event due to server configuration.
12:50:18.893 Braze v25.0.0 .a1 D Not automatically requesting Feature Flags refresh on session created event due to server configuration.
12:50:18.893 Braze v25.0.0 .b1 D com.braze.events.SessionStateChangedEvent fired: SessionStateChangedEvent{sessionId='4f2f2df2-9c1d-42fa-921f-9e5d154c8240', eventType='SESSION_STARTED'}'
12:50:18.893 Braze v25.0.0 .b1 D Triggering com.braze.events.SessionStateChangedEvent on 0 subscribers.
12:50:18.893 Braze v25.0.0 .b1 D Triggering com.braze.events.SessionStateChangedEvent on 0 subscribers.
12:50:18.893 Braze v25.0.0 .b1 I Event was published, but no subscribers were found. Saving event for later publishing to a matching subscriber. Event class: class com.braze.events.SessionStateChangedEvent
12:50:18.897 Braze v25.0.0 .u D Cancelling session seal alarm
12:50:18.899 Braze v25.0.0 .b1 D bo.app.j5 fired: bo.app.j5@efbaad
12:50:18.899 Braze v25.0.0 .b1 D Triggering bo.app.j5 on 0 subscribers.
12:50:18.899 Braze v25.0.0 .b1 D Triggering bo.app.j5 on 1 subscribers.
12:50:18.899 Braze v25.0.0 .i0 V recalculateDispatchState called with session state: OPEN_SESSION lastNetworkLevel: GOOD
12:50:18.900 Braze v25.0.0 .h0 D Unable to find the xml INTEGER configuration value with primary key 'com_braze_data_flush_interval_good_network'. Using default value '30'.
12:50:18.900 Braze v25.0.0 .h0 D Using resources value for key: 'com_braze_data_flush_interval_good_network' and value: '30'
12:50:18.900 Braze v25.0.0 .i0 V currentIntervalMs: 30000
12:50:18.900 Braze v25.0.0 .i0 D Data flush interval has changed from -1 ms to 30000 ms after connectivity state change to: GOOD and session state: OPEN_SESSION
12:50:18.900 Braze v25.0.0 .i0 D Posting new sync runnable with delay 30000 ms
12:50:18.900 Braze v25.0.0 .i0 V Kicking off the Sync Job. initialDelaysMs: 30000: currentIntervalMs 30000 ms
12:50:18.902 Braze v25.0.0 .u D Checking if this session needs to be sealed: 4f2f2df2-9c1d-42fa-921f-9e5d154c8240
12:50:18.903 Braze v25.0.0 .p I Completed the openSession call. Starting or continuing session 4f2f2df2-9c1d-42fa-921f-9e5d154c8240
12:50:18.904 Braze v25.0.0 .q D Messaging session not started.
12:50:18.904 Braze v25.0.0 .p V Opened session with activity: com.dummy.base.MainActivity
12:50:18.905 Braze v25....nceManager D Braze geofences not enabled. Not requesting geofences.
12:50:18.906 Braze v25.0.0 .l0 D Cache locked successfully for export: bo.app.l0@7f5b973
12:50:18.920 Braze v25....onProvider D Unable to find the xml BOOLEAN configuration value with primary key 'com_braze_device_object_whitelisting_enabled'. Using default value 'false'.
12:50:18.924 Braze v25....onProvider D Using resources value for key: 'com_braze_device_object_whitelisting_enabled' and value: 'false'
12:50:18.934 Braze v25.0.0 .l0 V Sending full device due to NOTIFICATIONS_ENABLED true
12:50:18.947 Braze v25....onProvider D Unable to find the xml BOOLEAN configuration value with primary key 'com_braze_device_object_whitelisting_enabled'. Using default value 'false'.
12:50:18.947 Braze v25....onProvider D Using resources value for key: 'com_braze_device_object_whitelisting_enabled' and value: 'false'
12:50:18.947 Braze v25.0.0 .q6 V Push token cache cleared.
12:50:18.951 Braze v25.0.0 .q6 D Cache locked successfully for export: bo.app.q6@3f1fdf4
12:50:18.951 Braze v25.0.0 .q6 D No push token available to add to attributes object.
12:50:18.953 Braze v25.0.0 .r0 D Event dispatched: {"name":"ss","data":{},"time":1.683777018863E9,"session_id":"4f2f2df2-9c1d-42fa-921f-9e5d154c8240"} with uid: 9616f7c0-3217-4173-813e-b00f385fc049
12:50:18.954 Braze v25....onProvider D Unable to find the xml STRING_ARRAY configuration value with primary key 'com_braze_internal_sdk_metadata'. Using default value '[]'.
12:50:18.955 Braze v25....onProvider D Using resources value for key: 'com_braze_internal_sdk_metadata' and value: '[]'
12:50:18.957 Braze v25....onProvider D Unable to find the xml STRING_ARRAY configuration value with primary key 'com_braze_sdk_metadata'. Using default value '[]'.
12:50:18.960 Braze v25....onProvider D Using resources value for key: 'com_braze_sdk_metadata' and value: '[]'
12:50:18.961 Braze v25....onProvider D Using runtime override value for key: 'com_braze_sdk_metadata' and value: '[]'
12:50:18.969 Braze v25.0.0 .j3 D Making request with id => "79b596ace29f9d78"
to url: https://sdk.iad-01.braze.com/api/v3/data
with headers:
"X-Braze-TriggersRequest" => "true"
"X-Braze-Last-Req-Ms-Ago" => "7200000"
"X-Braze-DataRequest" => "true"
"Accept-Encoding" => "gzip, deflate"
"Content-Type" => "application/json"
"X-Braze-Api-Key" => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
and JSON :
{
"device_id": "a6769da8-1655-427a-b2ca-0354bxxxxx",
"time": 1683777018,
"api_key": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
"sdk_version": "25.0.0",
"app_version": "5.xx.0",
"app_version_code": "250000.0.0.0",
"device": {
"os_version": "32",
"carrier": "T-Mobile",
"model": "sdk_gphone64_arm64",
"resolution": "1440x2984",
"locale": "ja_JP",
"remote_notification_enabled": true,
"android_is_background_restricted": false,
"time_zone": "Asia\/Tokyo"
},
"events": [
{
"name": "ss",
"data": {},
"time": 1.683777018863E9,
"session_id": "4f2f2df2-9c1d-42fa-921f-9e5d154c8240"
}
],
"respond_with": {
"triggers": true,
"config": {
"config_time": 0
}
}
}
12:50:19.055 Braze v25.0.0 .t5 V Enabling SSL protocols: [TLSv1, TLSv1.1, TLSv1.2, TLSv1.3]
-
There was no log starting
Braze SDK loaded in
(Verbose logs enabled) But I could see it in a sample project. Seems our project omits some logs at the beginning or they can't be logged by LogCat for some reason 🤔 -
Freezing was the wrong expression - the app isn't freezing, it's like just waiting for something to return before it continues
-
Let me check if I can disclose that here or I need to go the way through the support.
-
We are calling only
deviceId
manually, but I already checked it by replacing with static string without success
// Update:
I found a lead for the issue in our project, but I need more time to investigate. Let me put this issue on hold for now, unless you have any clue based on the information I provided before 🙏
from braze-android-sdk.
@radixdev @bryanlogan I think we located the issue and fixed it (currently being tested). It was indeed related to deviceId
which was used by another Library (Adjust
) which I didn't consider at first during my investigations. After changing to an async access the long initial app loading time resolved. Thanks for you quick support 🙇
from braze-android-sdk.
Related Issues (20)
- [Bug]: Content Cards impression not logged when setting vertical padding to `Braze.ContentCardsDisplay.Recycler` HOT 3
- [Bug]: Crash in HTML IAM when calling `window.open` HOT 4
- [Bug]: Double Activity shows up on Android in Recents tasks when a Push Notification is Clicked HOT 5
- [Bug]: Braze Accent Color HOT 4
- [Bug]: ANR at Broadcast of Intent { act=com.safetyculture.iauditor.intent.BRAZE_SESSION_SHOULD_SEAL } HOT 6
- [Bug]: Black screen visible on Notification click with Android 14 HOT 1
- [Bug]: requestContentCardsRefresh() not refreshing the content cards HOT 2
- [Bug]: Strict Mode in In-app messages HOT 3
- [Feature]: Jetpack Compose Support HOT 5
- [Bug]: In-app message disappears after blocking/minimizing the application HOT 3
- [Bug]: ContentCardFragment does not display first in-app message HOT 3
- [Bug]: Strict Mode DiskReadViolation HOT 3
- [Bug]: Android resource linking failed HOT 2
- [Bug]: Crash - NoSuchFieldError - No static field Key of type CoroutineExceptionHandler HOT 8
- [Bug]: Register activity lifecycle callbacks HOT 3
- the return value of remoteMessage.getNotification() is null. HOT 4
- [Feature]: IsAnonymous getter for BrazeUser HOT 3
- [Bug]: Content Card is not enabled when upgrading Braze SDK HOT 10
- [Bug]: Notification runtime permission, POST_NOTIFICATIONS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braze-android-sdk.