fix: APPLICATION_ID meta-data read as Integer instead of String (fixes #13)#42
Open
juliosuas wants to merge 1 commit intoIntent-Lab:mainfrom
Open
fix: APPLICATION_ID meta-data read as Integer instead of String (fixes #13)#42juliosuas wants to merge 1 commit intoIntent-Lab:mainfrom
juliosuas wants to merge 1 commit intoIntent-Lab:mainfrom
Conversation
Android's Bundle interprets android:value="0" as java.lang.Integer. The Meta DAT SDK calls Bundle.getString() which returns null for non-String types, breaking the registration deep link to Meta Stella. Use a string resource reference (@string/mwdat_application_id) to force Android to treat the value as a String. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Problem
In
AndroidManifest.xml, theAPPLICATION_IDmeta-data is defined as:Android's
Bundleinterprets"0"as ajava.lang.Integer, not aString. The Meta Wearables DAT SDK expects aStringvalue viaBundle.getString(), which returnsnullfor non-String types. This breaks the deep link construction for the registration flow, showing "Error opening link" on the Meta Stella app.Logcat evidence:
Fix
Reference the value via a string resource instead of an inline literal:
strings.xml:
AndroidManifest.xml:
This forces Android to treat the value as a
String.Files Changed
app/src/main/AndroidManifest.xmlapp/src/main/res/values/strings.xmlTest plan
🤖 Generated with Claude Code