android


Phonegap Android InAppBrowser not working


I am working on an Android App with Phonegap Cordova-3.0.0 and when I call InAppBrowser I got MotionEvent mTouchMode = 4 error. And InAppBrowser function is not working. So how can I fix this? Do I need do some setting on AndroidManifest.xml or config.xml?
And I got this on my AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
And I got this on my config.xml
<plugins>
<plugin name="InAppBrowser" value="org.apache.cordova.InAppBrowser" />
</plugins>
In Phonegap Cordova-3.0.0 version, for the app to communicate closely with various device-level features, we need to add plugins that provide access to core Cordova APIs.
The cordova plugin add command requires you to specify the repository for the plugin code.
For example, In-app browser:
$ cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
we need run this in command line. Don't need worries about AndroidManifest.xml or config.xml files. After you run $ cordova build, it will auto write for you.
You could get more idea about it in doc.phonegap
Add following code in config.xml this works fine for mi.
<plugin name="InAppBrowser" value="org.apache.cordova.InAppBrowser" />
<access origin="*" browserOnly="true"/>
You have to mention the below code line in config.xml
<plugin name="InAppBrowser" value="CDVInAppBrowser" />
try to add this to your manifest, it helps me with a f*king plugin to work
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
try also not use 'plugin' tag in config.xml, but:
<feature name="InAppBrowser">
<param name="android-package" value="org.apache.cordova.InAppBrowser"/>
</feature>
it will help for future updates of phonegap

Related Links

How many times onCreateLoader() will be called?
VectorDrawables tracing - repeating/restarting animation
An error occurred while connecting to camera in Android L?
Android: resolving language resources (in app and in Play Store)
How to Create Paytm Check sum URL in order to create paytm merchant id
Downloading data files with React Native for offline use
how to set font size for bluetooth printing?
Reddit api oauth requests
Retrive data from firebase with conditions
Fastboot command taking so much time
how to add vertical line on left side of listview after selecting checkbox in android
Horizontal ListView in a Widget
Android Recycler View Adapter
Multiple AsyncTaskLoader onLoadFinished not called
Storage in Nougat
how to get TextInput value without using state in react native android

Categories

HOME
design-patterns
linkedin
wakanda
phpmyadmin
socket.io
requirements
knitr
mapbox
android-json
crystal-reports-2013
recordrtc
vimdiff
radgridview
symbol
coin3d
entitymanager
symfony-2.8
connector
bourbon
visual-glitch
ember-cli
monit
roundup
google-api-client
perlbrew
game-theory
pic32
licensing
flooding
outliers
android-maps
inversion-of-control
android-things
user-defined-functions
iis-express
python-2.6
powershell-ise
jbutton
angularjs-material
papaparse
twos-complement
activexobject
salesforce-communities
watchman
git-rewrite-history
dm-script
flatmap
jvmti
numberpicker
dcmtk
android-softkeyboard
movilizer
congestion-control
vaadin-charts
dtsearch
rserve
posixct
yii2-user
subnet
opengl-4
git-flow
gpg-signature
objectscript
cd-burning
renaming
pytables
adafruit
greatest-n-per-group
jboss-tools
dimension
project-organization
dbamp
user-management
crouton-os
themoviedb-api
jdk1.7
baasbox
ocra
jsvc
telepat
fail2ban
mruby
parallel-testing
rcaller
matrix-inverse
ios8-extension
sbcl
multitasking
visual-studio-express
artemis
light
facebook-timeline
epiceditor
actiondispatch
pagedown
apache-abdera
asplinkbutton
boost-msm
jsr286
wiimote
stress
virtualpathprovider
xcelsius
tui
commercial-application
idatareader

Resources

Encrypt Message