Phonegap app can not connect to database on mobile - javascript

I have been been working on an app in phonegap and make login and register with JavaScript and ajax call.
So I tested it on Google Chrome and it works perfect, connecting on server (mysql) and inserting data etc... So I decide to build app to test it on mobile (android), and it just not responding when I click on register or login button.
Is there some code or file which I need to import ?

Check the url you are connecting with in the ajax call, if its a full path

Application did not receive internet connection, so I changed my config.xml file.
Core plugins I found here: https://build.phonegap.com/plugins

Related

JITSI - Getting redirected to recommendBrowsers page when opening in chrome's mobile view

I have hosted a jitsi server using recommended docker installation guide and using React SDK for rendering UI. When I try to open the app in chrome's mobile view I am getting the below page.
I want to render this meeting in an IOS app using webview where I am getting this screen.
I went through some solutions and modified my custom-config.js to disableDeepLinking: true,
Tried with the option to pass in URL as #config.disableDeepLinking=true and also changed the configOverRide object
configOverwrite={{
disableDeepLinking: true
}}
but nothing is working. Can anyone suggest anything?

Sinch - Unable to establish call from web (javascript) to mobile app (android/iOS)

I am using Sinch for app to app calls.
Integrated and created iOS and Android apps which are working perfectly fine.
Now I am creating a web app to communicate with mobile apps.
I am able to make call from mobile app to web app i.e. to Javascript
I also successfully achieved web to web call, but I am unable to establish call from web to mobile app.
Following are my findings after debug:
Call In Progress is fired
Call Ended is fired after couple of seconds
Call State is 3 i.e. Progressing
Call End Cause is 1 i.e. Denied
I am following this sample and using sdk version 1.4.8
This is my calling code:
call = callClient.callUser("myUsername");
call.addEventListener(callListener);
Here you using the method "calluser()" so that method will work on web-to-web calling if want to make a call from web-to-app simply use "callPhoneNumber" method and pass number like this.
var call = callClient.callPhoneNumber('+46000000000');
call.addEventListener(callListeners);
I get it working.
Put supportManagedPush:true while initializing your JS sinch client on your web.
If app to app call working then web to app will work fine.
Note: This will enable web to call a android or IOS app while they are not running.(Using FCM wakeup)

Cordovarduino not working

I'm using cordovarduino with phonegap to connect an arduino via OTG to a android app built using phonegap. I programmed an arduino to send data (working and verified on terminal), but when I connect it to the phone then it doesn't give any output.
Am I missing something , like allowing a permission or so?
The git used by me for reference : https://github.com/xseignard/cordovarduino
I figured out the problem using console.log and other console output. The problem was I hadn't added the plugin to the config file. Doind
phonegap plugin add cordovarduino
& re-building solved the issue

NodeJS socket.io don't work on android Chrome

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

dropbox.js auth firefox os

I'm currently developing a Firefox OS app wich should be caplable of saving files into my Dropbox account but I have some problems with the oauth2 authentication process. My app has to be "privileged", which means that all documents are not hosted on a webserver and so I need to use the "Dropbox.AuthDriver.Popup" driver for the authentication process.
My problem:
Everything works fine until Dropbox redirects me to the "oauth_receiver.html" which is hosted on my webserver. It seems that the " Dropbox.AuthDriver.Popup.oauthReceiver();" method can't send the authtoken to my app.
So is it possible to perfom a dropbox.js oauth2 authentication with the built-in auth drivers? Or do I need to do it by hand?
I was able to login to dropbox from a Firefox OS App using:
https://github.com/smarx/othw/tree/master/JavaScript
I did make a few changes. For example getting the redirect url. I changed it to the dropbox home:
function get_redirect_uri() {
return "https://www.dropbox.com/home";
}
I then used the redirects manifest (manifest.webapp for my app) setting like:
"redirects": [
{"from": "https://www.dropbox.com/home",
"to": "/redirects/auth.html"}
]
https://developer.mozilla.org/en-US/Apps/Build/Manifest#redirects
App had to be privileged btw. May not be the best way of doing it but it appears to work.
I also moved the js from inline to an external js file which I executed when a button was clicked. The auth.html file should have access to the token after the redirect.

Categories

Resources