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

How to process efficiently with ImageView in a video render case?
Clicking/distortion when mixing two audio buffers
CTS instrumentation target package
launch login activity instead of MainActivity if app is on its first run
Gradle exclude file from sourceSet not working
Trying to save imageView image to gallery, but cannot saved to gallery.(Android)
unable to fetch push notifications from FCM when app is completely closed
Simple game tutorial mode
Android and ACRCloud: startRecording() called on an uninitialized AudioRecord
Request permission for marshmallow in creating a flashlight app
BaseExpandableListAdapter with BaseSwipeAdapter
Transition between fragments via back button and home button
How to set scroll position at last after update adapter notifydatasetchanged in RecyclerView
Import project from github
Read Contacts phone and email
Animate circle going from bottom to Action Bar (Toolbar)

Categories

HOME
flex
themes
error-handling
ms-access-2016
telegram-bot
visual-studio-emulator
mapbox
android-json
azure-container-service
gluon-mobile
lanczos
bing-maps
minecraft-forge
nancy
imessage
poedit
r-mice
shared
jaws
mustache
cart
github3.py
contacts
reactjs.net
html-encode
openerp-7
openalpr
ideascript
opensmpp
spring-mvc-test
apriori
android-softkeyboard
portforwarding
subclipse
outputcache
file-sharing
strftime
magento-2.0.7
geotiff
tinymce-3
page-replacement
bbpress
universal-analytics
gameplay-kit
vibrate
choice
stripe-connect
adafruit
dup
boost-serialization
thread-sleep
vigenere
android-launcher
doctype
evolus-pencil
skspritenode
avahi
theos
spy++
machine-instruction
angular-carousel
grails-plugin-rabbitmq
jjaql
wxformbuilder
gae-quotas
accesscontrolexception
scriptaculous
sphinxql
cffile
jquery-1.9
superscrollorama
frameworkelementfactory
apache-whirr
ilasm
luabind
gobject-introspection
screen-size
event-receiver
web-garden
isapi-extension
tabpanel
data-mapping
cuda.net
dojo-dnd

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