Android Build for socket.io using intel xdk - android

I use IntelXDK 2015 update for build my apps.
I build an app using "Cordova Hybrid Mobile App Platforms" for "Android Build" option but socket.io didn't worked.
However when I used "Legacy Hybrid Mobile App Platforms" for "Android Build" option, socket.io works
I haven't any idea why that happens
Thanks

Have the same issue. The emulate and test through the intel app preview works like charm but when I build in to Android Cordova app I have the same problem.
Also tried to use "Legacy Hybrid Mobile App Platforms" and works.

Related

how to use expo simulator for CRNA Create-React-Native-App?

i was thinking that we only have two android emulator and also iOS simulator used to develop react native app through their android studio and xcode sdk.
but CRNA(Create React Native App) users can not use both emulator and simulators.
They can only run the app using a mobile device through Expo app.
Is there any simulator in expo for CRNA user ?
please suggest any idea to use simulator
thanks in advance
They make running the app on actual devices super easy and obvious, and I totally understand why you'd think it's not possible to run the app in the simulators as well. But, in fact, you can.
Expo recommends using the Android Emulator in Genymotion
And if you open the project in the Expo IDE, you should see this option...

Want to run eclipse phonegap 2.7 project through phonegap desktop app for android

i want to use phonegap desktop app for debugging.Want to use phonegap 2.7 eclipse project to run through phonegap desktop app
For testing phonegap, I used the chrome extension Ripple Emulator, and used phonegap serve command from the terminal. I then went to localhost:3000 and enabled the Ripple Emulator for that page.
Check it out here:
https://chrome.google.com/webstore/detail/ripple-emulator-beta/geelfhphabnejjhdalkjhgipohgpdnoc?hl=en

Ajax call fails in Intel XDK hybrid mobile App - live deployment

I am fighting a big problem here for 2 days. I have created a hybrid mobile app in Intel XDK. The app makes remote Ajax calls to my server. Everything went fine. Tested in Emulator and everything went fine. Also tested in App preview by connecting my Android device to my MAC - this also went fine.
Now, it was time to build and generate the APK file. After I installed the APK in my Android device, all the Ajax calls have failed. It simply shows blank.
I then checked some forums and have also made "Access-Control-Allow-Origin: *" in my server. Even this did not help. My Ajax calls are not responding or is being blocked - I don’t know.
I am using the latest version of Intel XDK. I have also included both the intelxdk.js and xhr.js within the HEAD tag.
USB Debugging is fine and works. But, I have no idea how to debug this live deployment. What else can I try.
Any help would be highly appreciated.
There is a known ajax issue with apk built with latest Intel XDK on Android > 4.4, this is due to the version of Cordova CLI 4.1.2.
In the Intel XDK -> project settings -> build settings for Android, change the Cordova CLI version from 4.1.2 to 3.5 and ajax should work again. We are working on a fix when using latest CLI
Also u dont need intelxdk.js and xhr.js if you are building Cordova builds.

How to test Phonegap applications in Eclipse ADT bundle

I have Download the Eclipse ADT Bundle and i am able to Launch the Eclipse and Can see the Option to develop Android Application.Now as I want to Develop PhoneGap Application so have Downloaded that too.Now through the Command Promt i have created a phonegap application Directory successfully.After this i Opened this PhoneGap application Directory folder into the Eclipse .Till here everything is fine . As this is Hello World Application it is working fine in the emulator and I can see the output but as it is very slow and as i do not have any mobile device to connect to the IDE and test the application i googled out and got to know about the Chrome Ripple Which i have installed as Extension in my Chrome Browser.Chrome Ripple is a debugging tool in which we can see the output very fast on the browser itself, no need of any Emulator or Physical Device .
But the problem is that we need to have a localhost server installed into the Eclipse IDE to run the PhoneGap HTML5 pages into a localhost server and then test it on Ripple but i am not seeing any way to add Any server in this eclipse version ..
Please help me how can i add any localhost server into this Eclipse ADT Bundle to test PhoneGap application..
Thanks..
If you have KitKat 4.4+ it is a lot easier to use chrome for debug.
Type un chrome:
chrome://inspect
You can connect to you mobile and inspect html structure and debug without any server.
Other way is to add browser platform in Cordova that is available from last version (4.0). It is intended for debug into browser similar way as ripple mocking all plugins.

Issue with Phonegap / Cordova and Android dev

I started learning Phonegap and cross-platform mobile dev. I have an issue testing my Android app while only using command line.
Windows 7, Nexus 5 linked to the computer and found in the adb devices.
So, building a new Phonegap project, adding Android to it with no problem.
phonegap build android
works fine. Then :
c:\Android\Project\hello>phonegap install android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] trying to install app onto device
[phonegap] no device was found
Device is properly linked with usb debugging checked. What's "amusing" (but not really for me right now) is that if I launch Eclipse, adds the project and run it as an Android project, it uploads and launch on my device instantly. The point is, I don't want to launch Eclipse just for that...
Please help me resolve this.
BTW I also tested the emulator on Eclipse, it's awfully slow ! Isn't there a better way to test this, or the only option is to have my phone linked all the time ?

Categories

Resources