Fix: APPLICATION_ID meta-data read as Integer instead of String, breaking DAT registration#49
Open
kbaker827 wants to merge 1 commit intoIntent-Lab:mainfrom
Open
Conversation
Android's Bundle interprets inline integer literals as java.lang.Integer. The Meta DAT SDK expects a String for APPLICATION_ID, so it gets null back, breaking the deep link registration flow with a silent error. Reference the value via a string resource to force String type. Fixes Intent-Lab#13 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
android:value="0"inAndroidManifest.xmlis parsed by Android'sBundleasjava.lang.Integer, notStringStringforAPPLICATION_ID— gettingnullback breaks the deep link construction for the registration flowstrings.xmlresource (<string name="mwdat_application_id" translatable="false">0</string>) and reference it via@string/mwdat_application_id, which forces Android to treat it as aStringFixes #13
Test plan
KEY expected String but value was a java.lang.Integer🤖 Generated with Claude Code