Progressive Web App Install Prompt is not coming on mobile browser - javascript

I have created a project, basically a progressive web app wherein application is created dynamically through admin panel.I have root app where structure of app is created and when application is created through admin panel I am creating app id wise manifest file which gets imported on app when app is open.
When I run one of the created app on chrome browser on laptop Install prompt is appeared. Also when I run another app with other id with same root files but with different manifest, I got the install prompt. Both app installed successfully on laptop.However in case of mobile chrome browser, when I run first app then app gets installed after clicking on Install prompt. But, when I run another app I am not getting Install prompt.Instead I am getting option of "Open In Previous Installed App Name".
Please help in it.
I want to come install prompt in second case also.
Thanks in advance.

Related

How to install openvpn cli from an electron app?

I am making an electron app that connects to openvpn using its config .ovpn file. Is there a way to install the openvpn cli on the users system in the background without prompting the user, when the app is run for the first time irrespective of the OS? (I'm targeting Mac, Linux and Windows)
I've tried to do this with sudo-prompt and electron-sudoand while the app works, it's a lot of hassle for the user to be prompted multiple times for their password.

React Native White Screen on iOS Simulator

Up until recently, my app was running on iOS. I am now running into a white screen issue when running npx run-ios.
When running npx run-ios, the simulator starts up and builds the application, but Metro bundler says warn No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB. on the terminal. Which is odd as the command itself opens the simulator and builds the application.
I am also unable to access the developer menu in both the terminal and on the simulator. So I can't access/edit bundler configs.
Things I've tried:
I've tried to delete the node_modules and run npm-install.
Deleting the Pods folder and Podfile.lock and then running pod install.
As I was working in a development branch, so I checked out to the main branch, which was working fine before, but the same issue persists, so I am doubtful that it's my code (I might be wrong however".
Doing Clear device and settingson the simulator.
Trying a different simulator.
I've seen on different similar posts that the simulator and my dev environment should be on the same network. However, this was never an issue before, and there is also no wifi edit function on the simulator.
Running the iOS application from Xcode instead

React app taking too much time for loading on local system

I just started working on new reactjs app for learning purpose.
I installed app using this command: npx create-react-app reactnotes.
Then I am trying to start the app using this command: yarn start.
But in the browser it's been 2 minutes and the app is still loading but not opening on port http://localhost:3000/ default by React app. In the terminal
react-app-start only that is shown their and code is error-free.
I had the same issue and realized that it's happening while the network tab is open for the developer tool, so after I found the network throttling was enabled for "Fast 3G", just changed it to "No Throttling", so the issue was solved

Meteor app suddenly no longer runs on iOS

My Meteor-based app no longer works as designed on iOS, without me having changed anything relevant. The app still works when run from a local server (http://localhost:3000) as well as when hosted at meteor.com. But, in an iOS simulator and when deployed to an iOS device through xCode, the app fails to run properly.
The app opens with a form that needs to be filled in by the user. When submitting the form, on iOS, the entered values briefly are stored in session variables, but almost immediately the session variables are emptied and the form is displayed again. (What should happen is for an external JSON file to be loaded, based on the form values, after which the contents of that JSON file is manipulated and displayed.)
I just now upgraded to the latest version of Meteor, and xCode did an upgrade itself in the background.
The app is supposed to load a Google font file (from fonts.googleapis.com), but though this works fine when the app is served from either the localhost or meteor, the font does not appear to be loaded when the app runs on iOS.
I'm sorry I don't have actual example code (the whole app?) or a running version of the app that I can show you. As the app is not yet publicly available, I'm a bit reluctant to publish it here. :(
Is there a way to meaningfully debug a Meteor app running on iOS? Is there something obvious I'm missing in the deployment?
Turns out there's an issue with meteor 1.0.4 and building a project using Cordova (https://github.com/meteor/meteor/issues/3814).
I downgraded to meteor 1.0.3 through:
meteor update --release 1.0.3
Then, I deleted the Cordova folder in .meteor/local/ with
rm -R cordova-build
Then, I patched 1.0.3 to 1.0.3.2 with
meteor update --patch
This solved the problem.

How to download android app using .apk link directly from phone?

I have a list of .apk files on a webpage which I want to be able to download directly from my phone. So I should be able to navigate to that webpage and click the .apk link and it should download the app on my phone. Basically right now my web page is listing these apk files but if I try to click on one of the links using an android emulator, nothing happens. Any advice on how I can make these .apk links downloadable directly from the phone?
The emulator might not support downloads. I would try it with your phone, or if your webpage is not yet available find one that does have .apk and try it.
The emulator doesn't have any program to install apps like that. Here's what you can do though:
Download the app onto your computer and use adb to install it on your emulator, like so:
Download the apk to your computer to SOME_FOLDER
Add the platform-tools folder in your Android-SDK to your PATH. (this is the folder in your Android-SDK that has adb.exe)
Open up a command prompt and navigate to SOME_FOLDER.
Type "adb devices -l" and you should be able to see your emulator listed in the devices (your emulator already running, right?)
Now, type "adb install YOUR_APK_NAME.apk"
That's it. The last command might take upto a minute, or more. When its done you should see your app installed in the emulator.
For more details on using adb, please see here: http://developer.android.com/tools/help/adb.html#commandsummary

Categories