I also checked this post: http://community.phonegap.com/nitobi/...
which still remains unanswered as to how we can inject multiple intent-filter using
The compiled AndroidManifest.xml contains only the last intent-filter tag which is:
please advice.
which still remains unanswered as to how we can inject multiple intent-filter using
The compiled AndroidManifest.xml contains only the last intent-filter tag which is:
please advice.
- 4 Posts
- 0 Reply Likes
Posted 6 years ago
- 1840 Posts
- 78 Reply Likes
Hi Vishal,
Can you provide us your app ID on PhoneGap Build?
-yiming
Can you provide us your app ID on PhoneGap Build?
-yiming
(Edited)
- 4 Posts
- 0 Reply Likes
- 1840 Posts
- 78 Reply Likes
Hi Vishal,
Can you repost the config formats you used? I don't see it in the app.
You'll need to click the option to use HTML in comments and embed your stuff within the
-yiming
Can you repost the config formats you used? I don't see it in the app.
You'll need to click the option to use HTML in comments and embed your stuff within the
code tag.-yiming
- 4 Posts
- 0 Reply Likes
Hello Yi Ming, please see below is config.xml, please let us know if you need any other info. I am not sure where you wanted us to use HTML in comments and use code tag, please provide more details and we will try with it.
================================================================================
<!-- config.xml reference: https://build.phonegap.com/docs/confi... -->
<!-- to compile for ios take out xmlns:android line in widget tag -->
Attendance
Cloud based employee Attendance tracking application using RFID/HID/Mifare cards, geolocation and punch photos, real time employee attendance monitoring
ourcompanyname Team
<!--
If you do not want any permissions to be added to your app, add the
following tag to your config.xml; you will still have the INTERNET
permission on your app, which PhoneGap requires.
-->
<!-- Customize your app and platform with the preference element. -->
<!-- all: current version of PhoneGap (3.5.0 was tested and stable for ourcompanyname app)-->
<!-- all: default means both landscape and portrait are enabled -->
<!-- all: possible values handset, tablet, or universal -->
<!-- all: hides the status bar at the top of the screen -->
<!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->
<!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->
<!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->
<!-- ios: if set to true, app will terminate when home button is pressed -->
<!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->
<!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->
<!-- android: MIN SDK version supported on the target device. MAX version is blank by default. -->
<!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. --> <!-- Plugins -->
<!-- Core plugins -->
<!-- Third party plugins -->
<!-- A list of available plugins are available at https://build.phonegap.com/plugins -->
<!--
<gap:plugin name="com.phonegap.plugins.barcodescanner" />
-->
<!-- Define app icon for each platform. -->
<!--IOS-->
<!-- iPhone -->
<!-- iPad -->
<!-- Settings Icon -->
<!-- Spotlight Icon -->
<!-- iPhone 5 / iPod Touch (5th Generation) -->
<!-- iPad -->
<!-- Retina iPad -->
<!--IOS-->
<!-- Define app splash screen for each platform. -->
<!--
Define access to external domains.
<access /> - a blank access tag denies access to all external resources.
<access origin="*" /> - a wildcard access tag allows access to all external resource.
Otherwise, you can specify specific domains:
-->
<!--
<access origin="http://phonegap.com" /> - allow any secure requests to http://phonegap.com/
<access origin="http://phonegap.com" subdomains="true" /> - same as above, but including subdomains, such as http://build.phonegap.com/
-->
<!--<access uri="*" subdomains="true" />-->
<!-- to compile for ios comment below section specific to NFC use -->
<!-- to compile for ios comment above section specific to NFC use -->
================================================================================
<!-- config.xml reference: https://build.phonegap.com/docs/confi... -->
<!-- to compile for ios take out xmlns:android line in widget tag -->
Attendance
Cloud based employee Attendance tracking application using RFID/HID/Mifare cards, geolocation and punch photos, real time employee attendance monitoring
ourcompanyname Team
<!--
If you do not want any permissions to be added to your app, add the
following tag to your config.xml; you will still have the INTERNET
permission on your app, which PhoneGap requires.
-->
<!-- Customize your app and platform with the preference element. -->
<!-- all: current version of PhoneGap (3.5.0 was tested and stable for ourcompanyname app)-->
<!-- all: default means both landscape and portrait are enabled -->
<!-- all: possible values handset, tablet, or universal -->
<!-- all: hides the status bar at the top of the screen -->
<!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->
<!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->
<!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->
<!-- ios: if set to true, app will terminate when home button is pressed -->
<!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->
<!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->
<!-- android: MIN SDK version supported on the target device. MAX version is blank by default. -->
<!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. --> <!-- Plugins -->
<!-- Core plugins -->
<!-- Third party plugins -->
<!-- A list of available plugins are available at https://build.phonegap.com/plugins -->
<!--
<gap:plugin name="com.phonegap.plugins.barcodescanner" />
-->
<!-- Define app icon for each platform. -->
<!--IOS-->
<!-- iPhone -->
<!-- iPad -->
<!-- Settings Icon -->
<!-- Spotlight Icon -->
<!-- iPhone 5 / iPod Touch (5th Generation) -->
<!-- iPad -->
<!-- Retina iPad -->
<!--IOS-->
<!-- Define app splash screen for each platform. -->
<!--
Define access to external domains.
<access /> - a blank access tag denies access to all external resources.
<access origin="*" /> - a wildcard access tag allows access to all external resource.
Otherwise, you can specify specific domains:
-->
<!--
<access origin="http://phonegap.com" /> - allow any secure requests to http://phonegap.com/
<access origin="http://phonegap.com" subdomains="true" /> - same as above, but including subdomains, such as http://build.phonegap.com/
-->
<!--<access uri="*" subdomains="true" />-->
<!-- to compile for ios comment below section specific to NFC use -->
<!-- to compile for ios comment above section specific to NFC use -->
- 4 Posts
- 0 Reply Likes
<?xml version="1.0" encoding="UTF-8"?>
<!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->
<!-- to compile for ios take out xmlns:android line in widget tag -->
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
xmlns:android = "http://schemas.android.com/apk/res/android"
id = "com.ourcompanyname.ourcompanynamemobileNFC"
versionCode = "1"
version = "1.11.0">
<name>Attendance</name>
<description>
Cloud based employee Attendance tracking application using RFID/HID/Mifare cards, geolocation and punch photos, real time employee attendance monitoring
</description>
<author href="http://ourcompanyname.com" email="cs@ourcompanyname.com">
ourcompanyname Team
</author>
<!--
If you do not want any permissions to be added to your app, add the
following tag to your config.xml; you will still have the INTERNET
permission on your app, which PhoneGap requires.
-->
<preference name="permissions" value="none"/>
<!-- Customize your app and platform with the preference element. -->
<preference name="phonegap-version" value="3.6.3" /> <!-- all: current version of PhoneGap (3.5.0 was tested and stable for ourcompanyname app)-->
<preference name="orientation" value="default" /> <!-- all: default means both landscape and portrait are enabled -->
<preference name="target-device" value="universal" /> <!-- all: possible values handset, tablet, or universal -->
<preference name="fullscreen" value="true" /> <!-- all: hides the status bar at the top of the screen -->
<preference name="prerendered-icon" value="false" /> <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->
<preference name="ios-statusbarstyle" value="black-opaque" /> <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->
<preference name="detect-data-types" value="true" /> <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->
<preference name="exit-on-suspend" value="false" /> <!-- ios: if set to true, app will terminate when home button is pressed -->
<preference name="auto-hide-splash-screen" value="true" /> <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->
<preference name="disable-cursor" value="false" /> <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->
<preference name="android-minSdkVersion" value="7" /> <!-- android: MIN SDK version supported on the target device. MAX version is blank by default. -->
<preference name="android-installLocation" value="auto" /> <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. --> <!-- Plugins -->
<!-- Core plugins -->
<gap:plugin name="org.apache.cordova.camera" version="0.2.9" />
<gap:plugin name="org.apache.cordova.console" version="0.2.7" />
<gap:plugin name="org.apache.cordova.device" version="0.2.8" />
<gap:plugin name="org.apache.cordova.file" version="1.0.1" />
<gap:plugin name="org.apache.cordova.file-transfer" version="0.4.2" />
<gap:plugin name="org.apache.cordova.geolocation" version="0.3.7" />
<gap:plugin name="org.apache.cordova.media" version="0.2.8" />
<gap:plugin name="org.apache.cordova.media-capture" version="0.2.8" />
<gap:plugin name="org.apache.cordova.splashscreen" version="0.2.7" />
<gap:plugin name="com.chariotsolutions.nfc.plugin" version="0.5.1" />
<plugin name="Geolocation" value="org.apache.cordova.GeoBroker" />
<!-- Third party plugins -->
<!-- A list of available plugins are available at https://build.phonegap.com/plugins -->
<!--
<gap:plugin name="com.phonegap.plugins.barcodescanner" />
-->
<!-- Define app icon for each platform. -->
<icon src="images/icon.png" />
<icon src="images/app-logo.png" />
<icon src="images/icon/android/drawable-ldbpi/ic_launcher.png" gap:platform="android" gap:density="ldpi" />
<icon src="images/icon/android/drawable-mdpi/ic_launcher.png" gap:platform="android" gap:density="mdpi" />
<icon src="images/icon/android/drawable-hdpi/ic_launcher.png" gap:platform="android" gap:density="hdpi" />
<icon src="images/icon/android/drawable-xhdpi/ic_launcher.png" gap:platform="android" gap:density="xhdpi" />
<icon src="images/icon/blackberry/finallogo.png" gap:platform="blackberry" />
<icon src="images/icon/blackberry/finallogo.png" gap:platform="blackberry" gap:state="hover"/>
<icon src="images/icon/webos/icon-64.png" gap:platform="webos" />
<icon src="images/icon/windows-phone/icon-48.png" gap:platform="winphone" />
<icon src="images/icon/windows-phone/icon-173.png" gap:platform="winphone" gap:role="background" />
<!--IOS-->
<!-- iPhone -->
<icon src="images/icon/ios/icon.png" gap:platform="ios" width="57" height="57" />
<icon src="images/icon/ios7/Icon-60.png" gap:platform="ios" width="60" height="60" />
<icon src="images/icon/ios7/Icon-60@2x.png" gap:platform="ios" width="120" height="120" />
<icon src="images/icon/ios/icon@2x.png" gap:platform="ios" width="114" height="114" />
<!-- iPad -->
<icon src="images/icon/ios/Icon-72.png" gap:platform="ios" width="72" height="72" />
<icon src="images/icon/ios/Icon-72@2x.png" gap:platform="ios" width="144" height="144" />
<icon src="images/icon/ios7/Icon-76.png" gap:platform="ios" width="76" height="76" />
<icon src="images/icon/ios7/Icon-76@2x.png" gap:platform="ios" width="152" height="152" />
<!-- Settings Icon -->
<icon src="images/icon/ios/Icon-Small.png" gap:platform="ios" width="29" height="29" />
<icon src="images/icon/ios/Icon-Small@2x.png" gap:platform="ios" width="58" height="58" />
<icon src="images/icon/ios/Icon-Small-50.png" gap:platform="ios" width="50" height="50" />
<icon src="images/icon/ios/Icon-Small-50@2x.png" gap:platform="ios" width="100" height="100" />
<!-- Spotlight Icon -->
<icon src="images/icon/ios7/Icon-40.png" gap:platform="ios" width="40" height="40" />
<icon src="images/icon/ios7/Icon-40@2x.png" gap:platform="ios" width="80" height="80" />
<gap:splash src="images/screen/splash-screen/ios/Default.png" gap:platform="ios" width="320" height="480" />
<gap:splash src="images/screen/splash-screen/ios/Default-Portrait@2x.png" gap:platform="ios" width="640" height="960" />
<!-- iPhone 5 / iPod Touch (5th Generation) -->
<gap:splash src="images/screen/splash-screen/ios/Default-568h@2x.png" gap:platform="ios" width="640" height="1136" />
<!-- iPad -->
<gap:splash src="images/screen/splash-screen/ios/Default-Portrait.png" gap:platform="ios" width="768" height="1024" />
<gap:splash src="images/screen/splash-screen/ios/Default-Landscape.png" gap:platform="ios" width="1024" height="768" />
<!-- Retina iPad -->
<gap:splash src="images/screen/splash-screen/ios/Default-Portrait@2x.png" gap:platform="ios" width="1536" height="2048" />
<gap:splash src="images/screen/splash-screen/ios/Default-Landscape@2x.png" gap:platform="ios" width="2048" height="1536" />
<!--IOS-->
<!-- Define app splash screen for each platform. -->
<gap:splash src="images/screen/splash-screen/windows-phone/splash.png" gap:platform="winphone" />
<gap:splash src="images/screen/splash-screen/android/images/res-long-port-ldpi/default.png" gap:platform="android" gap:density="ldpi" />
<gap:splash src="images/screen/splash-screen/android/images/res-long-port-mdpi/default.png" gap:platform="android" gap:density="mdpi" />
<gap:splash src="images/screen/splash-screen/android/images/res-long-port-hdpi/default.png" gap:platform="android" gap:density="hdpi" />
<gap:splash src="images/screen/splash-screen/android/images/res-long-port-xhdpi/default.png" gap:platform="android" gap:density="xhdpi" />
<!--
Define access to external domains.
<access /> - a blank access tag denies access to all external resources.
<access origin="*" /> - a wildcard access tag allows access to all external resource.
Otherwise, you can specify specific domains:
-->
<!--
<access origin="http://phonegap.com" /> - allow any secure requests to http://phonegap.com/
<access origin="http://phonegap.com" subdomains="true" /> - same as above, but including subdomains, such as http://build.phonegap.com/
-->
<content src="index.html" />
<feature name="http://api.phonegap.com/1.0/camera"/>
<feature name="http://api.phonegap.com/1.0/contacts"/>
<feature name="http://api.phonegap.com/1.0/file"/>
<feature name="http://api.phonegap.com/1.0/geolocation"/>
<feature name="http://api.phonegap.com/1.0/media"/>
<feature name="http://api.phonegap.com/1.0/network"/>
<feature name="http://api.phonegap.com/1.0/notification"/>
<!--<access uri="*" subdomains="true" />-->
<access origin="*" />
<plugin name="Geolocation" value="CDVLocation" />
<gap:splash src="images/splashdefault.png" />
<feature name="Camera">
<param name="ios-package" value="CDVCamera" />
</feature>
<feature name="File">
<param name="ios-package" value="CDVFile" />
</feature>
<feature name="FileTransfer">
<param name="ios-package" value="CDVFileTransfer" />
</feature>
<feature name="File">
<param name="android-package" value="org.apache.cordova.file.FileUtils" />
</feature>
<feature name="FileTransfer">
<param name="android-package" value="org.apache.cordova.filetransfer.FileTransfer" />
</feature>
<feature name="Geolocation">
<param name="ios-package" value="CDVLocation" />
</feature>
<!-- to compile for ios comment below section specific to NFC use -->
<gap:config-file platform="android" parent="/manifest">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="false" />
<application>
<activity android:name=".Attendance"
android:label="@string/app_name"
android:screenOrientation="nosensor"
android:alwaysRetainTaskState="true"
android:launchMode="singleInstance">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.nfc.action.TAG_DISCOVERED"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
</application>
</gap:config-file>
<!-- to compile for ios comment above section specific to NFC use -->
</widget>
- 2 Posts
- 0 Reply Likes
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers


