So I'm trying to use Discord to authenticate users in my Electron app and was thinking of using a popup window to show the authorize with Discord screen. However, it seems like the Discord app recognizes that its running on an Electron instance and tells me that I'm running an old version of the Discord desktop app instead of the expected authorization screen. Is there any way fix this problem?
Thanks
After looking at another solution here, it seems like I just have to disable nodeIntegration for that specific window.
Related
So, when I went to https://chromestatus.com/features I noticed in the url bar app it said install app. When I clicked it it install a chrome web app with the website in it. How would I be able to implement this in my website?
I tried going through the source code of the website and didn't find anything useful.
When you hover over it says install. It is the button right next to the bookmark. I don't know if this is an experimental feature since I'm on chrome canary. But I still want to implement it into my website. Is it possible to do it with java script?
I believe it is a Progressive Web App and Chrome is testing the plus button UI for the add to homescreen behaviour.
To do this for your website you'd need a web app manifest and a service worker. See here for more info.
I'm trying to get my Electron Mac app to start at login, but I can't get it to work.
I'm implementing the start at login functionality from Electron's API (https://electronjs.org/docs/all#appsetloginitemsettingssettings-macos-windows) and that part seems to work. I've pushed the app to the Mac App Store and it's gone through. I've downloaded the app, set the app to login through the settings, but when I restart my Mac, the app won't open and I get this message in the console:
I'm building my MAS build using electron-builder, which leads me to believe it might have something to do with the build process.
Does anyone have a suggestion as to what it might be about?
I ended up signing my application again using Electron's guide - https://github.com/electron/electron/blob/master/docs/tutorial/mac-app-store-submission-guide.md - and now the start at login works.
I am creating a small debugging app to monitor a particular interaction (WebRTC) between two users of my main app.
I have a web app (React) and a mobile app (React-Native) that each connect through socket.io to a node server I created. This node server's purpose is to collect information from both users, and display this information in a web page in real time.
My web app has a button that when you click it it opens up that debugging web page in a new tab with the debugging information; I just use window.open. Is it possible to do something similar from my mobile device, running a react-native application? That is, can I click a button and have a browser tab open on my laptop somehow? Does React-Native remote debugging work with something like this?
There is currently no supported way you can do this in React Native.
However, you can certainly add it yourself.
Navigate to node_modules/react-native/local-cli/server/middleware/getDevToolsMiddleware.js
Look for launchChrome(debuggerURL);, you can invoke another launchChrome function with your desired URL.
This will only appear when you select Debug JS Remotely.
You can configure the CLI server code more to launch the URL when you are not debugging.
I am new to react-native world. Following few tutorials, I found that it react-native app runs on javascript engine on mobile. I am following ios tutorial. So when I go to localhost:8081/index.ios.bundle it loads JS for the app. I know I can use ngrok to manipulate this URL.
I have multiple concerns with this:-
If I change the URL of js from something local to something remote, this would result in a completely new app and now I don't need to go through the App Store to upgrade my app version. Can this be a potential issue in the future?
Since anybody can open this JS in a browser which might have important information like client id and secret for the app, can this be an issue as well?
I am not 100% sure. You can indeed update hybrid app easier and if it is only a quick fix you don't need to go through apple store verification process. Apple can also delete your app and ban you if you don't follow guidelines. Usually your js is local in production for instant app start time, and the network is used only for fresh data.
This is solved with an authentication mechanism.
I'm writing a mobile App with HTML5 and Javascript. I'm using also jquery.
So my question is. Is there a way to restart a App ?
Want i want is. If my App works in online modus and lose the connection to the internet, the app should restart and change to the offline modus.
Hope U understand me.
I'm also open for other ideas.
If when you attempt to get or post a request to your server and it fails and gives you a connection error you can just navigate back to your first page and clear out all your stored variables. Create a function like
function reset_app(){
$.mobile.changePage('#first_page');
global_vars = default_global_vars;
}
its so simple
go to mob task manager and touch the icon of Restart....jquery mobile