Phonegap config.xml - unexplained intentions

The Phonegap / Cordova documentation as a whole does a great job of explaining the purpose of the various intentions and other bits in the config.xml file. However, I could not set the value / use of the following

<platform name="android">
    <allow-intent href="market:*" />
</platform>
<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
</platform>

I would be very grateful to everyone who could explain that they are intended.

+4
source share
1 answer

From the whitelist plugin documentation :

Goal whitelist

Controls which URLs the application may ask to open the system. From default, no external URLs are allowed.

In Android, this means sending an intent like BROWSEABLE.

This whitelist does not apply to plugins, only hyperlinks and calls to window.open ().

, , URL window.open(), :

<platform name="android">
    <allow-intent href="market:*" />
</platform>
<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
</platform>

Android Store App Store iOS. (market:) (. Google Play Store Android?), (itms:) itunes App Store. , , - , . URL Andriod iOS Google Apple .

+3

Source: https://habr.com/ru/post/1610942/


All Articles