mobile

Android, communicate with mobile data while connected to wifi without internet access

那年仲夏 提交于 2020-08-03 02:43:22
问题 I have an automotive companion app that needs to communicate with both wifi and mobile data networks. My vehicle control unit provides a wifi network without internet access which exposes an API service that we can call from the app. In addition to this we need to communicate with another backend reachable from the internet using phone mobile data (3G/4G). I immediately noticed that some android phones, when connected to a wifi network without internet using android settings menu , show a

React js Material-UI responsive table

谁说胖子不能爱 提交于 2020-08-02 06:49:09
问题 I am building a web application in react js and I'm using the material-ui components library. I'm using the table component and it looks good on desktop but I want it to adjust and look good also on mobile browser. Is material-ui supports such thing? How can I do it? Example of the current situation: PC\Mobile: Source code: import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import

Firebase security rules - is Auth generated UID ought to be kept secret? [duplicate]

…衆ロ難τιáo~ 提交于 2020-07-30 01:54:12
问题 This question already has an answer here : Firebase - Is auth.uid a shared secret? (1 answer) Closed 2 years ago . I've been reading Firebase Realtime Database Security Rules guides (https://firebase.google.com/docs/database/security), and I'm a bit confused with regards to should I keep the UID generated by the Firebase Auth (lets say if my App users use Facebook to authenticate themselves) secret? I have this kind of data structure: users UID Lots of nodes of personal data to be read

Some images not showing in mobile browser (but showing in desktop browser)

喜夏-厌秋 提交于 2020-07-29 12:14:28
问题 I am having an issue where some images are not displayed in the mobile browsers on my iPhone, but I see them in all my desktop browsers. On my phone, I just see a blank box with a grey border where the image should be. A couple notes: It seems to happen randomly because some images are displayed one day, and then will stop displaying the next day I noticed if I scroll through the page while it is still loading, I can often see the image, and then it disappears. All the images are placed in

How do I save a picture from expo-image-picker to expo-file-system and then render it?

一世执手 提交于 2020-07-23 06:45:31
问题 I am trying to store selected images within the application, as opposed to in the image roll. Here is what I have tried: await FileSystem.downloadAsync( imageUri, // the image uri from expo-image-picker FileSystem.documentDirectory + `${uuid}-image.jpg` ) .then(({ uri }) => { console.log("Finished downloading to ", uri); }) .catch((error) => { console.error(error); }); I receive the error: Unable to download file: Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL" I also tried: await

How to play sound (mp3) in React Native?

眉间皱痕 提交于 2020-07-22 05:34:36
问题 I want to make audio player for my project. I dont know how to play audio with TouchableOpacity. I want to play audio but when I press on play icon (button) it have to be changed to pause icon (button). And I need some solution for loop. How can I use it? <TouchableOpacity style={styles.playButtonContainer}> <Ionicons name="ios-play" size={75} color="#000" /> <Ionicons name="ios-pause" size={75} color="#000" /> </TouchableOpacity> <TouchableOpacity> <Entypo name="loop" size={40} color="#000">

change viewport in media query

北城以北 提交于 2020-07-18 18:14:36
问题 I'm currently working on a responsive webdesign. The "smartphone view" is not yet ready because my client has to obtain some more budget. Therefore I need to implement a temporary view which I want to realize with an fixed viewport that only gets activated on smartphones. I set the viewport using on this way: <meta name="viewport" content="width=device-width, initial-scale=1.0"> I want to change the device-width to 700 pixels if the following media query gets triggered: @media only screen and

change viewport in media query

≡放荡痞女 提交于 2020-07-18 18:11:56
问题 I'm currently working on a responsive webdesign. The "smartphone view" is not yet ready because my client has to obtain some more budget. Therefore I need to implement a temporary view which I want to realize with an fixed viewport that only gets activated on smartphones. I set the viewport using on this way: <meta name="viewport" content="width=device-width, initial-scale=1.0"> I want to change the device-width to 700 pixels if the following media query gets triggered: @media only screen and

Iframe on load triggering even if iframe is not loaded on Safari

ぃ、小莉子 提交于 2020-07-10 08:57:05
问题 I had problem with iframe that was loading a document using google document viewer, sometimes the document would not load. I used this solution to check if iframe is successfully loaded, or if it should be reloaded. The solution works great on pc(chrome), but on iphone(safari) $('#iframe').on('load', ...) event triggers even when there is no content. On pc on load event is only triggered when iframe is trully loaded and has content. function reloadIFrame() { document.getElementById("ifm").src

Is it possible to customize Flutter Webview error message?

你离开我真会死。 提交于 2020-07-09 05:19:37
问题 I'm developing WebView mobile application in Flutter and I would like to customize webview errors, because if customer will have his wifi turned off and he got "net::ERR_ADDRESS_UNREACHABLE", it's not so good. So i would like to change this page to some custom design and show something like "This application requires internet connection, you should turn your wifi on".. Is something like this possible? I was searching in docs and found nothing. Thanks a lot. 回答1: You can try my plugin flutter