I got an app created with react material-ui, react-router v4 and using featherjs as backend. If I visit from the browser, the data loads and render but when I add it to my smartphone's home screen and view it. It doesn't load any data or render.
What's the problem? How can I debug this?
It's 4 months old, but i figured other people like me would benefit from an answer to the question. I found an article online : https://ayastreb.me/react-router-in-home-screen-pwa/
The idea is that you need to use hash based navigation for the router when your app starts from the homescreen as a standalone app (otherwise router doesn't fire up and your app is doing nothing). You can detect the case on lauch and switch to a hash based navigation - see the article.
Related
I'm trying to create an app that will refresh a chrome page every day without user intervention.
It's the first time I create something on Android and I have no clue on what to do. I tried searching on google but I only find answers about Javascript or incomplete answers. I also tried to simulate touchscreen input, but I can't make it work.
I use Visual Studio 2022 to write my code and I have, for now, only the base of the app.
to summarize, I want the app to :
be a background app/process
refresh a chrome page everyday at around 5AM
work without any help from the user
How can I do that ?
(If needed I can still switch to a javascript code)
ty
I want to create a page made with native android with a small portion (say a horizontal scroll view) made from react-native inside the same android page like an android page with a react-native widget plugged in, such that the app is completely widgetized.
I know that it is possible to do so because I read about it in this article and some companies are using it.
Can anyone help me how to achieve this?
My question is same to this question, I found a few useful articles related to this matter for iOS but I want a solution for android.
I am working on a simple Home Automation project, using Raspberry Pi3. The basic idea is to have an Android app which can switch on/off an electric bulb. I have created a simple HTML web page which runs a python script to turn on/off the connected relay to the light bulb, whenever I press the corresponding buttons on the web page.
What i want to achieve is to have the buttons on the web page somehow toggled from buttons on a simple Android app.
Please understand that I am almost entirely new to app development and have no interests in further pursuing it. So I am looking for some workaround maybe, or a quick solution that helps me use my already functional web page, just from a simple android app. I would be able to implement the development part, hopefully, if I can get an idea of what exactly do I have to develop for achieving the above mentioned functionality.
I have a Google Sheet that we use to generate picking tickets for our warehouse. There are several columns that have barcodes. They are generated using the following function call:
=image("http://www.barcodesinc.com/generator/image.php?code=" & E3 & "&style=68&type=C128B&width=200&height=80&xres=1&font=0", 3)
This works perfectly and does exactly what we need it to do, which is using a PC to print the ticket and hand it off to the warehouse guys.
In my attempt to make the process more streamlined I want to replace the tickets with an Android tablet and let them scan from there. The benefit to that is that they can also manually update the Sheet with exceptions and other items that are not bar coded. Here is what I have run into:
On the android if I view the Sheet through the Chrome browser it I can see the bar codes fine, but as soon as I hit the edit button, it opens the sheet in the Sheets app and I can no longer see the bar codes.
If I open the sheet in the Sheets app I can edit the cells but can't see the bar codes.
Note, when using my PC workstation I can see the bar codes and edit the sheet with no problems.
So, not sure if this is actually a programming question or not, but what can I do in order to be able to view the bar codes in the Sheets app or to be able to edit the sheet in the browser like I do on my PC? Yes, I have requested the desktop site in options for Chrome.
Any help would be appreciated, I would really like to roll this out and save some paper.
I am now answering my own question in case anyone runs into this. You need to request the desktop site (in Chrome options) as soon as you log into Google Drive AND after you open the sheet. Now the sheet will switch from view only mode to edit mode in the browser.
Bonus question: Is there anyway you can force the browser to always open stuff in the desktop site? Specifically for Google stuff, but for any other site really since larger tablets can handle the 'full' site and don't need to be redirected to the m.version of the site.
Is there any way to programmatically pause an Android app in Phonegap? I would like to mimic the behavior that occurs when you hit the HOME button. I've already had to overwrite the back button handler using this, and while in most cases I want it to do my action, when in a particular state the user would expect the app to minimize, and I want to replicate this behavior.
Keep in mind, on Android this is not the same as closing the app. That is quite easy to do with device.exitApp(); but I would like it to remember its state and keep running in the background. Especially if there's still an asynchronous job being done in the background.
Is there a feature in Phonegap to achieve this?
Possible duplicate of Manually pause an application in Android Phonegap, but I couldn't find some of the tools the OP mentioned there such as navigator, so I was nervious to totally edit and rewrite their post
The simple answer appears to be: no.
However, for anyone else that comes down this path, its not impossible. It's just that there isn't a feature of Phonegap to do it for you.
The Android equivalent of "sleeping an app" is actually just opening another intent. Specifically, opening the "Home" intent would sleep the running app and bring you back to the home screen. But as far as I can tell from asking around and scoping the docs, Phonegap doesn't have a direct way of opening intents.
What you (supposedly) can do is one of two things:
This plugin is supposed to be promising
Call the Java code that does it yourself using the means described here
Mind you, as of right now I've decided to not go any further with this, so I make no promises about either of those means, having not attempted them myself.
I invite anyone else who decides to pursue this further to update their experience here.