Ion config.xml widget identifier for different platforms

We use

   <widget id="com.activityo" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">

for android and you need to change the widget id for ios. I mean, I want to use 2 different widget identifiers for different platforms.

Anyway? thank

+7
source share
2 answers

How do you do this:

<widget android-packageName="androidappid" id="defaultappid" ios-CFBundleIdentifier="iosappid" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+4
source

Here is what I would like to use in the config.xml file :

<widget id="com.mywebsite.myapp" 
        android-packageName="com.mywebsite.myandroid" 
        ios-CFBundleIdentifier="com.mywebsite.myios" 
        version="1.0.0" 
        xmlns="http://www.w3.org/ns/widgets"
        xmlns:cdv="http://cordova.apache.org/ns/1.0">

In the above code:

id- Mandatory . Specifies the identifier of the reverse domain of the application.

android-packageName - - Android, .

ios-CFBundleIdentifier - - iOS. .

version - - , //.

xmlns - - config.xml.

xmlns:cdv - - .

: Cordova config.xml

0

All Articles