New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does @RemoteConfigProperty not parse JSON value? #10917
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Would you share the specific example of what is not working? See usage examples in our tests at https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseRemoteConfigSwift/Tests/SwiftAPI/PropertyWrapperTests.swift |
Hey @dpyy. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Is there actual documentation on @RemoteConfigProperty? Because I can't see any. So I guess the question back to you is, how exactly does @RemoteConfigProperty work for a JSON server value? What type is passed back? |
Hi @dpyy, unfortunately Top-Level ObjectIn this example the top-level entity in JSON is an object. This would have been returned as an Example JSON
Decodable
Apple has some excellent documentation on creating Property-Wrapper
The Top-Level ArrayIn this example the top-level entity in JSON is an array. This would have been returned as an Example JSON
Property-Wrapper
In this case the
Additional clarification
I just wanted to clarify whether this was a typo. Do you have example JSON payload that you'd expect to be parsed into |
Yeah it conforms to decodable |
Description
I expect @RemoteConfigProperty to parses JSON value into [String:[String]] but it doesn't
Reproducing the issue
No response
Firebase SDK Version
10
Xcode Version
14.2
Installation Method
Swift Package Manager
Firebase Product(s)
Remote Config
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: