Questions tagged [navigator]

The Navigator object contains information about the visitor's browser name, version, and more.

Navigator Object Properties

appCodeName Returns the code name of the browser
appName Returns the name of the browser
appVersion Returns the version information of the browser
cookieEnabled Determines whether cookies are enabled in the browser
platform Returns for which platform the browser is compiled
userAgent Returns the user-agent header sent by the browser to the server

Navigator Object Methods

javaEnabled() Specifies whether or not the browser has Java enabled
taintEnabled() Specifies whether or not the browser has data tainting enabled

1115 questions
120
votes
12 answers

Flutter: Move to a new screen without providing navigate back to previous screen

I'm implementing an authentication flow in my Flutter app. After a sign in attempt, the CheckAuth (which checks whether a user is signed in or not and then opens home screen or sign up screen accordingly) is opened with this code: void _signIn()…
Darkhan
  • 2,888
  • 5
  • 20
  • 30
104
votes
14 answers

Error thrown on navigator pop until : "!_debugLocked': is not true."

When popping a screen navigating to other one by clicking on the showBottomSheet, this error is thrown through the following code . I cant get why this is occurring. class _CheckoutButtonState extends State<_CheckoutButton> { final…
Aya Elsisy
  • 2,029
  • 4
  • 13
  • 23
55
votes
9 answers

Flutter: Keep BottomNavigationBar When Push to New Screen with Navigator

In iOS, we have a UITabBarController which stays permanently at the bottom of the screen when we push to a new ViewController. In Flutter, we have a bottomNavigationBar of a Scaffold. However, unlike iOS, when we Navigator.push to a new screen, this…
harry
  • 1,191
  • 1
  • 10
  • 12
47
votes
7 answers

How to use BottomNavigationBar with Navigator?

The Flutter Gallery example of BottomNavigationBar uses a Stack of FadeTransitions in the body of the Scaffold. I feel it would be cleaner (and easier to animate) if we could switch pages by using a Navigator. Are there any examples of this?
Paul
  • 1,943
  • 5
  • 18
  • 18
40
votes
6 answers

How to configure DB Navigator for Jetbrains PHPStorm and WebStorm

I need to set up a connection in the DB Navigator plugin for PHPStorm in a mac (snow leopard). It asks me for the route of a library that implements the java.sql.Driver class. I just don't have any idea of where is it. Any advice?
R01010010
  • 5,670
  • 11
  • 47
  • 77
36
votes
3 answers

Chrome navigator.geolocation.getCurrentPosition() error 403

For some reason suddenly when calling navigator.geolocation.getCurrentPosition() I get this error: Network location provider at 'https://www.googleapis.com/' : Returned error code 403. It used to work perfectly yesterday! Could there be anything…
mllm
  • 17,068
  • 15
  • 53
  • 64
34
votes
3 answers

How to detect browser country in client site?

I found the following website can detect my country and currency even in the private mode http://www.innisfreeworld.com/ It records in cookie, How do it do that? Is that possible fulfill in client site ? navigator?
KevinHu
  • 991
  • 3
  • 10
  • 20
28
votes
5 answers

Flutter - Pass Data Back with .popUntil

I have been using Navigator.pop and passing data back 1 screen with ease. However, if I use Navigator.popUntil, what is an acceptable way to pass an object back to the destination screen?
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
27
votes
1 answer

JavaScript error on Firefox: TypeError: can't redefine non-configurable property "userAgent"

I'm currently receiving a weird JavaScript error on my error monitoring tool Sentry that says can't redefine non-configurable property "userAgent". It seems like the error is happening on multiple pages but only on Firefox. Additionally, on all…
Ferdinand Frank
  • 345
  • 4
  • 11
27
votes
7 answers

React Navigation switching background colors and styling StackNavigator

I'm fairly new to React Native, but I have a simple working app with three scenes. I was previously using Navigator but it felt laggy and was excited to try out React Navigation (as in https://reactnavigation.org/). After implementing React…
Turnipdabeets
  • 5,815
  • 8
  • 40
  • 63
26
votes
5 answers

Select the camera while using navigate.getUserMedia()

I am using navigate.getUserMedia() method to capture video on my mobile and do further processing on it. But as of now it is capturing the video using the front camera. How do i make it to access the rear facing camera?? Below is some sample code…
Vinay C
  • 387
  • 1
  • 7
  • 16
23
votes
3 answers

Xcode: On debug, is there any way to prevent it from opening the navigator on the front-most window?

I'm trying to figure out how to use Xcode in a multi-window setup. I would like to have one window be my main window, and then have others that I use to do occasional spot editing. Here's the rub: I never want to have the navigator (or the debug…
DavidH
  • 1,420
  • 1
  • 14
  • 25
22
votes
1 answer

Firefox permission: 'name' member of PermissionDescriptor 'camera' is not a valid value for enumeration PermissionName

I'm making a web app that needs to check whether user camera access permission has been granted or not using permission query. I have tried the code: navigator.permissions.query({name:'camera'}).then(function(result) { console.log(result); }); It…
Redplane
  • 2,971
  • 4
  • 30
  • 59
22
votes
5 answers

How can I show a snackbar after navigator.pop(context) in Flutter?

We need close one screen and open a second screen. And show snackbar on the second screen from first screen. I tried to use Navigator.push, but this screen is already open and we have this error Bad state: Stream has already been listened to.
Emily Harkness
  • 305
  • 1
  • 4
  • 7
21
votes
3 answers

Could anyone explain the exact difference among project explorer, package explorer and navigator in eclipse?

What are the exact differences between project explorer, package explorer and navigator in eclipse? I am so confused of using the three. Because all seem to fit the same purpose. I don't know, what the exact difference is. Could anyone explain this…
Deepak Mani
  • 1,099
  • 2
  • 15
  • 20
1
2 3
74 75