I am using Geolocation on Android to get a user’s position. I am a little bit confused about the EnableHighAccuracy setting. Basically, to make this work I have to set it to “true” for Android Simulator and to “false” for a physical device. Otherwise its broken and I get timeout error and no location. Can someone please clarify why this
Tag: android
Can you track background geolocation with React Native?
Problem I’d like to be able to track a users location even when the app is no longer in the foreground (e.g. The user has switch to another app or switched to the home screen and locked their phone). The use case would be a user tracking a run. They could open the app and press ‘start’ at the beginning
How to handle incoming content with Intent in PhoneGap
I am building a PhoneGap app. I have successfully added the intent filter to the AndroidManifest.xml and when a link is clicked with specified scheme and host, my app is in the list of application capable of opening the link. Up to this it is perfect. Now, when my app is launched, I want to detect which link launched my
undefined is not an object (evaluating ‘this.props.navigation.navigate’) – React Native
I am trying to make my first React Native Android app and I am getting this error: undefined is not an object (evaluating ‘this.props.navigation.navigate’) This is the code: I can not figure out why the error is coming. Answer You are exporting the component wrong. You should get rid of the export default on your class HomeScreen definition and at
React-Native modules for Android int value returned late?
I have a native Android app that now has a React-Native part to it. In short, i have a list view in native Android/Java. When i tap a row, i start a new Activity which leads to the React-Native code. The components make an API call, but before it does it, my code goes through the React Native module to
javascript set cookie doesn’t work on chrome android
i have a problem to set a cookie on chrome on my android phone. The source code is upload on an online server. here my javascript code : function updateCookie( value ) { document.cookie = ‘l=’+value+’; expires=Thu, 2 Aug 240 20:47:11 UTC; path=/’; location.reload(); } it work on chrome/mozilla on my computer it work on mozilla on my android phone
React-Native: How to open google play store from react native app?
I am trying to find a way how to open the google play store with my application when the user is pressing a button inside of the react-native application. Is there a way how to do this? Answer You can use deeplinking to redirect your user from your app using this: https://developer.android.com/distribute/tools/promote/linking.html and the Linking API from react-native: http://facebook.github.io/react-native/docs/linking.html
Cordova back button is not working on the first launch of android app
I am using Cordova 6.x to build Android app(6.0). I have overridden the back button functionality using event listener. But this event listener is called on the first time launch of the app. But if I kill the app and relaunch, this event listener is called on pressing back button. index.html app.js When I first time launch the app after
Lose focus and dismiss keyboard on clicking outside of the TextInput field in react native?
I have already researched about it and found this post: react-native: hide keyboard But this didn’t work for me. When I touch the portion of the screen thats outside the text input field, I was expecting that the input field will lose focus and the keyboard will get dismissed. But, nothing is happening. The cursor keeps blinking on the input.
Error code 1 cordova plugin file transfer android
I have a problem on cordova (android), when I try to download a file (a .zip exactly), It always occured a error code 1. The url downloads well on my computer. Here is the code : Thanks Answer The error was that I forgot to specify the name of the file when it will be downloaded on the device, I