NodeJS socket.io don't work on android Chrome - javascript

I have the following problem:
I created a simple chat app with the this system as core (https://github.com/kishorekumaru/ChatSystem__Sample).
Now I started this app on a debain server and on the desktop it works perfectly but when I opened the page on my Adnroid device and started Google Chrome brwoser, the page shows up but when I want to enter something it doesn't do anything.
There is also no data displayed.
I think that the Android browser can't connect to the databas.
But why?
My server.js file is the same like in the Github rep. (see above).
I only added new styles and a button to send the messages so far.
EDIT 1
I tried debugging it with Google Remote Debugging (https://developers.google.com/web/tools/chrome-devtools/debug/remote-debugging/remote-debugging#remote-debugging-on-android-with-chrome-devtools) then it works as designed, when I unplug the cable it crashes again....
Best regards
Tobias

Related

Signal Desktop (Development/Staging) client is not sending verification code to mobile and got stuck in reCaptcha

We tried to run Signal Desktop Client locally (on a Linux machine) and followed the instruction Development Guideline and performed Linux Setup and then All Platform Basic Setup
Then we tried Setting up standalone as by default the running
the app is connected to the staging server and we need to register. Now while we entered a valid mobile number (full no. with country code : (Bangladesh)+880183331....) and tried to send a verification SMS the desktop client window redirected us to a Captcha page in the chrome window where we had to reload first to actually see the challenge. Then after completing the challenge, it marks as solved and nothing happens, no verification code to mobile so can't progress in the desktop client window. can't open the development client though it opened the production client that was installed in the machine and later we uninstalled the production version to forcefully open the development client but nothing happened.
We even tried The staging environment and again got stuck in Send SMS part which redirected us to the Chrome Captcha page and does literally nothing.
Is mobile number verification for Signal Staging Server blocked in Bangladesh or there can be another issue that can be solved easily? We really got frustrated simply to run the project which got so much love from the open-source community.

Google sign-in in an Electron.js application not working

I'm making a desktop app version of a website with electron. The desktop app itself works, but the google sign in does not work because "this browser is not secure."
Opening the sign-in page in a secure browser will not work here because i did not make the actual sign-in version itself, I am only making the desktop app version.
I've seen other posts where they say to change the userAgent, but Google has disabled that, so it will not work.
I also have used a solution with nativefier app --userAgent..., but the Windows and Linux versions become messy with a bunch of extra files after building. I would like to get a single .exe file for Windows and a single .AppImage or .deb file or similar for Linux if possible.
If you have any solutions or workarounds for this, please let me know. Thanks!
I managed to log in with Google using this package: getstation/electron-google-oauth2. This package will open a browser window for the log in, then successfully pass it to Electron app. There are examples in the readme demonstrating how to make it work.
Also make sure that you configure a desktop OAuth 2.0 Client ID for the app:

Apple store - react native binary refused

I'm currently facing an issue trying to publish an update of my app in the Apple store.
When the app tries to connect to the API, the loader spins indefinitely.
When I test my app in all conditions it works perfectly.
I tried my app :
with different IOS version (including the 14.1 of IOS),
in debug mode,
in release mode,
with the testFlight app on an Iphone device
I also tried the connection with a VPN to check the server connection from another location
Moreover, I didn't change anything in my code that could alter the connection between the app and the server.
The app also works perfectly on Android.
The problem was solved making appeal of the reviewer's decision ... The app was totaly ok ...
I have same issue too. I tested my app all the way like you said. Also test with NT64 Internet Sharing too and i haven't get any issue like Apple said. They can't connect our api.

How to open iOS App Store from website in a WebView wrapped app?

We have an old iOS app which used WebView to load our website at "m.blablabla.com" (basically, it was wrapping our mobile website).
It's really old. We don't even have build files for that anymore. It has been replaced by a new native app.
But we still have thousands of users who haven't upgraded (even though they can), probably because they turned off auto-update and don't check for updates.
So we added an html/css/javascript message to the mobile website saying "We have a new app! This one will stop being supported soon. [ Update Now ]"
Here I am, genius with no iOS WebView experience (and no environment to test this old app either). I linked the "Update Now" button to our app on the itunes websites, thinking -- it's a WebView, I'm sure the Apple device will figure out it needs to open the app store.
Nope!
Button click does nothing.
I'm actually not sure why it's not working -- not sure if the button click is not registering, or because the device doesn't know what to do with the link.
Any suggestions?
Is there perhaps a specific way to launch app store using JavaScript when this button is clicked...?
Code sample: HTML
Update Now
Code sample: JavaScript
function update () {
window.location = 'https://itunes.apple.com/app/blablabla/id123456789';
}
(Just extracted the relevant code. Implementation is slightly different. On our Android WebView app, it redirects user inside the WebView to the Google Play store app page [using the google play store url]. So the surrounding code is fine, we tested it by mocking the app in Google Chrome. But in the iOS app, just looks like the app doesn't know what to do with the url.)

getting log for hybrid app(ionic) on android

I am having an unexpected result with my hybrid app(ionic framework) and the problem only replicates it self when i deploy the apk on an android phone. It works perfectly in a browser.
Is there a way i can see the logs when it is running on the phone? so i can try to understand what the problem is and where its coming from.
I have tried to run the app on my phone using ionic run android -l -c. But when i do that the app works perfectly like it does on the browser. i realised it basically just plugs itself to my local server and serves it on my phone from there (i alerted the index url. as an app it shows android_assets/www/index.html but when running with the above commant it shows http://192.168.XX.XXX/#/index)
How can i see logs when installed as an apk? Please Help
PS: im a newbie at ionic/AngularJS.
Here is a life saver for you and many others.
Install the app on the device.
Make sure you have USB debugging on on the real device.
On your desktop open Chrome, and in the URL address bar type
chrome://inspect
Here you'll be able to see the list of devices that are connected and are using WebView. Click on inspect and you will be able to use Chrome Dev Tools on your running APK.

Categories

Resources