question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.then not running on android device standard internet app

See original GitHub issue

I am trying to use sweetalert to open a alert message to allow for the user to reset there password via email. It is able to open the first message asking for the menu however the .then function doesnt run. This is the current code below for the javascript:

function forgotPassword() {
    swal({
        title: 'Forgot Password?',
        input: 'email',
        text: 'Please input your password',
        width: '60%'
    }).then(function (email) {
        swal({
            type: 'info',
            html: 'A reset email will be sent to if the account exists: ' + email
        })
    })

}

I am currently using a Galaxy S6 using android 6.0.1 with the internet browser that comes installed and not chrome. Once you use the chrome app it works fine. Ive tested it on my other devices (Windows 10 phone and iPhone) and it works fine.

It is expected to run just like you have in your documentation because I copied and pasted the code pretty much but some text changes and put it in a function.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ge0f3commented, Jun 27, 2018
<script src="https://cdn.jsdelivr.net/es6-promise/latest/es6-promise.auto.min.js"></script> will this make it work in Iphone safari browser also ?
1reaction
pknad505commented, Apr 6, 2017

I would suggest to add this into the documentation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix internet connection problems on Android devices
Open your Settings app and tap Network & internet or Connections. Depending on your device, these options may be different. Turn Wi-Fi off...
Read more >
How to Change the Default Web Browser on Android
Open the Settings app on your Android smartphone. · From there, tap on the Apps tab. · Now select Default apps. · Tap...
Read more >
How to Fix Mobile Data Not Working on Android - YouTube
00:42] Reset Network Connection on Phone [ ; 01:26] Enable the Right Network Mode [ ; 02:16] Remove and Re-insert SIM Card [...
Read more >
How to Change Default Browser on Android - YouTube
In this video I'll show you how to clear the cache for apps on your Android device.See more videos by Max here: ...
Read more >
Set Google Chrome as Your Default Browser on Android
When you set Google Chrome as your default browser on your phone, any links you click will automatically open in the app.0:00 -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found