android-branch-deep-linking-attribution: The Callback given to Branch.reInitSession() is not called because an exception in Answer event (my supposition)
After the Branch.reInitSession(), I get this error in the logcat and then Callback object is not called.
I think you just forgot to limit the size of a parameter you send in the Answer event, that in same cases, it can be even long.
This issue is still the last current version available: 4.1.1.
2019-10-15 14:06:20.636 31557-31557/? E/Answers: Invalid user input detected java.lang.IllegalArgumentException: String is too long, truncating to 100 characters at com.crashlytics.android.answers.AnswersEventValidator.limitStringLength(AnswersEventValidator.java:38) at com.crashlytics.android.answers.AnswersAttributes.put(AnswersAttributes.java:38) at com.crashlytics.android.answers.AnswersEvent.putCustomAttribute(AnswersEvent.java:56) at com.crashlytics.android.answers.shim.KitEvent.toCustomEvent(KitEvent.java:31) at com.crashlytics.android.answers.shim.AnswersKitEventLogger.logKitEvent(AnswersKitEventLogger.java:34) at io.branch.referral.ExtendedAnswerProvider.provideData(ExtendedAnswerProvider.java:47) at io.branch.referral.ServerRequestInitSession.onRequestSucceeded(ServerRequestInitSession.java:124) at io.branch.referral.ServerRequestRegisterInstall.onRequestSucceeded(ServerRequestRegisterInstall.java:70) at io.branch.referral.Branch$BranchPostTask.onPostExecute(Branch.java:3229) at io.branch.referral.Branch$BranchPostTask.onPostExecute(Branch.java:3091) at android.os.AsyncTask.finish(AsyncTask.java:695) at android.os.AsyncTask.access$600(AsyncTask.java:180) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:6990) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 1
- Comments: 16 (7 by maintainers)
@Danyaga I had the same problem on 4.0.2 and 4.1.0 “Invalid user input detected java.lang.IllegalArgumentException: String is too long, truncating to 100 characters”
By upgrading to 4.1.2 the crash does not occur anymore.
Re-Init is not what you want for this scenario. This is a recent addition to handle the specific case where you already have an activity in the foreground, and you receive a push notification and need to handle
onNewIntent()to process new URI data.