Comments (5)
Hi @cernfr1993 thank you for your reporting, we are still investigating a case.
Main problem here may be that in case of large content of InApp is sending to particular part of code (opening InApp with Activity/Fragment), system is killing it to some limitations -> this is result of our internal analysis.
Please check if you are using some really large InApp messages, especially builded by HTML editor, check for large images there or so.
from exponea-android-sdk.
Thank you for your response.
We do not use HTML builder in our inAppMessages and image has only 94 kB. I spouse image is not causing the problem. We also noticed this type of problem:
Caused by java.io.NotSerializableException
pn.b
java.io.ObjectOutputStream.writeObject0 (ObjectOutputStream.java:1240)
I hope it will help you.
Thank you.
from exponea-android-sdk.
Hi @cernfr1993 thank you for more info.
Unfortunatelly we are not able to reproduce this error. We tried large HTML inapps, large images and very long content in model InApps, but with no luck. Please do you have some stacktraces with SDK lines? Because we are not able to detect problem directly.
Stacktrace readiness is also needed for second problem with obfuscated 'pn.c' class. Is it SDK related?
If you want to share some code with us but is sensitive, please ask our support. Thank you
from exponea-android-sdk.
Hi @adam1929 i was able to find more information about relation between InAppMessages and TransactionTooLarge exception.
2022-12-13 11:47:32.984 30741-30968 InAppMessageManagerImpl com.pragonauts.notino.debug I Requesting to show in-app message for event type page_visit
2022-12-13 11:47:32.984 30741-30968 StandaloneCoroutine com.pragonauts.notino.debug I In-app message data preloaded, picking a message to display
2022-12-13 11:47:32.986 30741-31413 InAppMessageManagerImpl com.pragonauts.notino.debug I Requesting to show in-app message for event type page_visit
2022-12-13 11:47:32.987 30741-31413 StandaloneCoroutine com.pragonauts.notino.debug I In-app message data preloaded, picking a message to display
2022-12-13 11:47:32.987 30741-31413 InAppMessageManagerImpl com.pragonauts.notino.debug I Picking in-app message for eventType page_visit. 0 messages available: [].
2022-12-13 11:47:32.987 30741-31413 InAppMessageManagerImpl com.pragonauts.notino.debug I 0 messages available after filtering. Picking highest priority message.
2022-12-13 11:47:32.987 30741-31413 InAppMessageManagerImpl com.pragonauts.notino.debug I Got 0 messages with highest priority. []
2022-12-13 11:47:32.988 30741-30968 InAppMessageManagerImpl com.pragonauts.notino.debug I Picking in-app message for eventType page_visit. 0 messages available: [].
2022-12-13 11:47:32.988 30741-30968 InAppMessageManagerImpl com.pragonauts.notino.debug I 0 messages available after filtering. Picking highest priority message.
2022-12-13 11:47:32.988 30741-30968 InAppMessageManagerImpl com.pragonauts.notino.debug I Got 0 messages with highest priority. []
2022-12-13 11:47:32.991 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I Requesting to show in-app message for event type page_visit
2022-12-13 11:47:32.991 30741-31410 StandaloneCoroutine com.pragonauts.notino.debug I In-app message data preloaded, picking a message to display
2022-12-13 11:47:32.991 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I Picking in-app message for eventType page_visit. 0 messages available: [].
2022-12-13 11:47:32.991 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I 0 messages available after filtering. Picking highest priority message.
2022-12-13 11:47:32.991 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I Got 0 messages with highest priority. []
2022-12-13 11:47:32.998 30741-30968 InAppMessageManagerImpl com.pragonauts.notino.debug I Requesting to show in-app message for event type page_visit
2022-12-13 11:47:32.999 30741-30968 StandaloneCoroutine com.pragonauts.notino.debug I In-app message data preloaded, picking a message to display
2022-12-13 11:47:32.999 30741-30968 InAppMessageManagerImpl com.pragonauts.notino.debug I Picking in-app message for eventType page_visit. 0 messages available: [].
2022-12-13 11:47:32.999 30741-30968 InAppMessageManagerImpl com.pragonauts.notino.debug I 0 messages available after filtering. Picking highest priority message.
2022-12-13 11:47:32.999 30741-30968 InAppMessageManagerImpl com.pragonauts.notino.debug I Got 0 messages with highest priority. []
2022-12-13 11:47:33.007 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I Requesting to show in-app message for event type page_visit
2022-12-13 11:47:33.008 30741-31410 StandaloneCoroutine com.pragonauts.notino.debug I In-app message data preloaded, picking a message to display
2022-12-13 11:47:33.008 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I Picking in-app message for eventType page_visit. 0 messages available: [].
2022-12-13 11:47:33.008 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I 0 messages available after filtering. Picking highest priority message.
2022-12-13 11:47:33.008 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I Got 0 messages with highest priority. []
2022-12-13 11:47:33.016 30741-30968 InAppMessageManagerImpl com.pragonauts.notino.debug I Requesting to show in-app message for event type page_visit
2022-12-13 11:47:33.016 30741-31410 StandaloneCoroutine com.pragonauts.notino.debug I In-app message data preloaded, picking a message to display
2022-12-13 11:47:33.017 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I Picking in-app message for eventType page_visit. 0 messages available: [].
2022-12-13 11:47:33.017 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I 0 messages available after filtering. Picking highest priority message.
2022-12-13 11:47:33.017 30741-31410 InAppMessageManagerImpl com.pragonauts.notino.debug I Got 0 messages with highest priority. []
This problems happens when event page_visit is logged to SDK. Could you please check why Exponea SDK is trying to show InAppMessage even thought we do not have any InAppMessages active (only one InAppMessage is started but is outside of active time range).
Beside that our app tries to open Activity with event page_visit multiple times (we do not why its happening) and its causing app to crash. (Too many activities on backstack).
Thank you.
from exponea-android-sdk.
Hi @cernfr1993 I'm not seeing any relation of Exception and InApps from your log.
Log is saying that InAppMessageManager is searching for InApp for 'page_visit' event, and that is done on every page_visit event track - that is correct.
As you can see in logs there are messages such as '0 messages available after filtering' etc. This means obviously that there are no messages to be shown, so it don't try to open any Activity from SDK (for InApp showing purpose).
Honestly, there are some possible improvements in SDK for this case of high frequency tracking, but I doubt that change will help == SDK is using daemon threads for showing InApp message and these daemon threads holds some runtime resources. They need to. But chaining them is not a solution in this case, because multiple events tracking will hold that chain for no reason here and other InApp showing will be delayed too much.
Please try to find out why 'page_visit' is tracking so often and reduce that.
from exponea-android-sdk.
Related Issues (20)
- App crashes whenever I start Campaign In app messaging.
- In App message crashes with okhttp logging library HOT 3
- How to disable sdk at runtime? HOT 5
- In App Messaging still shows in device even if it was stopped in Dashboard HOT 1
- FetchManagerImpl.fetchInAppMessages - NullPointerException - Parameter specified as non-null is null HOT 3
- Manually tracked token is not tracked HOT 5
- Tracking ActivityLifecycleCallbacks on main thread HOT 1
- Exponea not initialized because of missing Gson Proguard/R8 rules HOT 1
- Lock contention issue HOT 2
- Shutting down the Cloud Messaging API (Legacy) in June, 2024 HOT 1
- Campaign parameter xnpe_cmp should not be required HOT 7
- Doesn't call onNewIntent HOT 1
- Image Decoding on Main Thread HOT 4
- Better way to initialise an AuthorizationProvider class? HOT 1
- Conflict between Exponea SDK WorkManager Initialization and WorkManager initialization in Application. HOT 2
- Timestamp not present in customers/events request body HOT 1
- Notification sound is played while the Notification chanel is set to be silent HOT 2
- Android 14 (Api 34) support HOT 2
- Remove DB calls on Main Thread HOT 3
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 exponea-android-sdk.