(after setting up correct intent filters for PhoneGap applications), Android intents can be handled by PhoneGap web applications.
Here's my AndroidManifest - Would this be a correct way to setup intent filters? This adds the app to the Share menu, and opens the app upon sharing, but window.plugins.webintent.getExtra returns nothing.
<?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="15" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" android:installLocation="auto" package="com.phonegap.helloworld"
xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:resizeable="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application android:label="@string/app_name" android:icon="@drawable/icon" android:debuggable="true" android:hardwareAccelerated="true">
<activity android:label="@string/app_name" android:name=".HelloWorld" android:screenOrientation="unspecified" android:configChanges="locale|keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="stateUnspecified|adjustUnspecified">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<action android:name="android.intent.action.SEND_MULTIPLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="application/vnd.google.panorama360+jpg"/>
<data android:mimeType="image/*"/>
<data android:mimeType="video/*"/>
</intent-filter>
</activity>
<activity android:label="@string/app_name" android:name="com.phonegap.DroidGap">
<intent-filter />
</activity>
</application>
</manifest>
Here's my AndroidManifest - Would this be a correct way to setup intent filters? This adds the app to the Share menu, and opens the app upon sharing, but
window.plugins.webintent.getExtrareturns nothing.