android


Chrome mobile, Navigation is blocked when redirecting to SMS


I'm trying to open the SMS outbox when the user lands on a page. It does work on the Android stock browser and
Firefox, but not on Chrome (it only works if they click on a link).
I'm getting the "Navigation is blocked" error, without any further explanation:
I've tried with window.location.href, location.href, window.location, with setTimeout... but nothing.
Do you know any way to achieve this?
I have the same problem, it seems that Chrome is blocking some request that are called using "window.location" when these calls have variables.
As a workaround, try creating an anchor, set the href attribute and click it (programatically).
var a = document.createElement('a');
a.setAttribute('href',desiredLink); //<-- this is the URL
document.body.appendChild(a);
a.click();

Related Links

Android App Closes on creation?
GridLayout spitting out “inconsistent constraint” debug-level logs
Android DB: Merging Two Databases Using SQL Dumps
Questio about AdMob ad url to application
trouble importing android-remote-stacktrace
ADT rev20 - apps don't install on any AVD
View will get twice at onItemClick
downloading xml from ftp in android
Notification upon ended parsing of web response
How to transfer “data” between two device (android,iphone)?
write spinner selected value to database
Using AsyncTask to download an XML file
Screen resolution / Physical size
android - showDialog(); error
linux joining multicast group setsockopt returns errno 19 device not found
Foreign keys in android 2.2 and higher

Categories

HOME
eclipse
adal
polymer
twig
themes
gradient
replace
simulink
babeljs
spring-session
code-coverage
frontend
title
lanczos
okhttp
fosrestbundle
syntaxnet
jquery-ui-sortable
watson-conversation
project-intu
speech-synthesis
pybossa
parameter-passing
microsoft-dynamics-nav
template-engine
html5-appcache
imessage
imagemap
react-toolbox
visual-studio-extensions
strongname
maze
custom-post-type
linked-data
firebase-analytics
errbot
zend-debugger
python-import
indy10
baidu-map
yowsup
hivemq
dm-script
cd
node-mssql
hammer.js
netbeans6.8
tf
scalding
subnet
arules
sandcastle
cronexpression
cubism.js
microstation
myspace
iotivity
installshield-2010
respondcms
turbo-prolog
beanstalk
user-management
jaunt-api
sapi
computer-architecture
include-guards
toolkit
cgi-bin
baasbox
skspritenode
pyobjc
keyup
git-ftp
snackbar
umlgraph
theos
jama
angular-carousel
malformedurlexception
mutual-authentication
vbe
clickbank
mt4j
ie8-compatibility-mode
model-driven-development
neos-server
nebula
fb.ui
robotlegs
panda3d
cakephp-1.2
subproject
wiimote
virtualpathprovider
pinch
multiplatform
codebase
objective-j
squishit
cruisecontrol.rb
sifr
echo3
lalr
dsl-tools
entitykey
contentpresenter

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App