Skip to content

LSApplicationQueriesSchemes are not merged correctly #3108

Closed
@rosen-vladimirov

Description

@rosen-vladimirov

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.

  1. Create a new project: tns create myApp
  2. Modify its Info.plist to have the following:
<key>LSApplicationQueriesSchemes</key>
<array>
    <string>itms</string>
</array>
  1. 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>
  1. Build the application for iOS (in fact prepare is enough).
  2. Check the Info.plist inside <project dir>/platforms/ios/myApp/myApp-Info.plist and the LSApplicationQueriesSchemes 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>

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions