Closed
Description
Tell us about the problem
LSApplicationQueriesSchemes properties from Info.plist files are not merged correctly. In case you have defined the property in your application's package.json file and a plugin also defines it, the values should be merged, instead only one of them is used.
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 3.1.3
- Cross-platform modules: not relevant
- Runtime(s): not relevant
- Plugin(s): any plugin that has LSApplicationQueriesSchemes in Info.plist
Please tell us how to recreate the issue in as much detail as possible.
- Create a new project:
tns create myApp
- Modify its Info.plist to have the following:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>itms</string>
</array>
- Create a custom NativeScript plugin (or use any plugin that has Info.plist) and add the following in it:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>itms-apps</string>
</array>
- Build the application for iOS (in fact prepare is enough).
- Check the Info.plist inside
<project dir>/platforms/ios/myApp/myApp-Info.plist
and theLSApplicationQueriesSchemes
in it - it will contain only one of the values, while the real value must be:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>itms-apps</string>
<string>itms</string>
</array>