why ProjectId doesn't put in CFBundleURLSchemes, this is UPL by unreal engine <init>…
- User
why ProjectId doesn't put in CFBundleURLSchemes, this is UPL by unreal engine
- Assistant
In this code snippet, the ProjectId is not directly put in the CFBundleURLSchemes because CFBundleURLSchemes require a specific format for URL schemes. Instead, the ProjectId is used to populate the CFBundleURLName key. The CFBundleURLName is a human-readable string that identifies the URL scheme, and it doesn't need to be in a specific format like the CFBundleURLSchemes.
The CFBundleURLSchemes key is where you specify the URL scheme itself, which in this case is "rgnunreal". The ProjectId, on the other hand, is used as the value for the CFBundleURLName key. So when the CFBundleURLSchemes for this app is checked, it will be associated with the URL scheme "rgnunreal" with the corresponding CFBundleURLName based on the value of the ProjectId.
It's important to note that the specific implementation might vary depending on the requirements and limitations of the ReadyGamesNetwork SDK.
- User
sorry, i mean why CFBundleURLName $S(ProjectId)
doesnt work
- Assistant
The reason why
<string>$S(ProjectId)</string>doesn't work in this context is because$S(ProjectId)is not a valid expression for referencing a variable value in Unreal Engine's UPL (Unreal Property List) format.In UPL, the variable references are typically handled with
$()notation, but this is not supported for the<string>value of CFBundleURLName. The UPL format doesn't provide a direct way to dynamically insert a value from a variable into that specific location.A possible solution would be to manually insert the ProjectId value in the string directly, like:
<string>ProjectIdValue</string>. Alternatively, you could consider modifying the UPL logic or integrate another custom script for generating the iOS Plist (Info.plist) with the desired dynamic behavior.