android - Responsive web app as a phonegap packaged mobile app -
my requirement pretty simple. have responsive web -url, , want package android app, whenever app accessed web-url open in device native browser, , user behave mobile app. using below config.xml phonegap build:
<?xml version='1.0' encoding='utf-8'?> <widget id="com.demo.sample" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0"> <name>myapp</name> <description> sample.in mobile app. </description> <author email="@#$%@gmail.com" href="http://google.in"> team </author> <preference name="phonegap-version" value="3.7.0" /> <content src="http://google.in/" /> <plugin name="cordova-plugin-whitelist" version="1" /> <plugin name="inappbrowser" value="org.apache.cordova.inappbrowser" /> <icon src="icon/android/playstore-icon.png" /> <icon gap:platform="android" gap:qualifier="ldpi" src="icon/android/drawable-ldpi/ic_launcher.png" /> <icon gap:platform="android" gap:qualifier="mdpi" src="icon/android/drawable-mdpi/ic_launcher.png" /> <icon gap:platform="android" gap:qualifier="hdpi" src="icon/android/drawable-hdpi/ic_launcher.png" /> <icon gap:platform="android" gap:qualifier="xhdpi" src="icon/android/drawable-xhdpi/ic_launcher.png" /> <platform name="android"> <!-- can use density exists in android project --> <splash src="icon/android/loading-image.png" density="land-hdpi"/> <splash src="icon/android/loading-image.png" density="land-ldpi"/> <splash src="icon/android/loading-image.png" density="land-mdpi"/> <splash src="icon/android/loading-image.png" density="land-xhdpi"/> <splash src="icon/android/loading-image.png" density="port-hdpi"/> <splash src="icon/android/loading-image.png" density="port-ldpi"/> <splash src="icon/android/loading-image.png" density="port-mdpi"/> <splash src="icon/android/loading-image.png" density="port-xhdpi"/> </platform> <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <platform name="android"> <allow-intent href="market:*" /> </platform> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> </platform> </widget>
when package app, splash screen not visible while loading app on android. suggestions might wrong?
actually there work around rather trying include config file , can try copy pasting splash , icon images in platform/android/res/drawable
according might work
Comments
Post a Comment