Once I finished building my app for iOS on the codename website, I tried downloading it onto my iPhone but whenever I click install an error message pops up saying
"Cannot connect to codename-one.appspot.com"
Make sure your device has a valid internet connection and that the browser can reach https://codename-one.appspot.com/
If you are behind a firewall you might need to configure your device to use a VPN or go around said firewall.
Related
I am writing an app in React in order to make a beautiful UI for my API. When I run it in Arch Linux's Firefox it works well. However, when I run it in my Android device, it seems like the initial API call (inside the useEffect of the App.js) is not done, not in Firefox neither in Chrome.
I am serving the app in the computer and then opening it with my local IP address (not localhost, obviously) with my phone.
Does anyone know why isn't that working in the phone even though it is working in my Linux machine?
The source code (of the UI and of the API) is in my Github (https://github.com/ToniIvars/Localdrive).
Thank you in advance.
I suffer a similar problem recently, may relate to unreachable IP address or some security problem.
I recommend using the chrome remote debug tool to make everything clear, in short that's how to do that:
First, open your phone debug mode, connect it to the PC with adb debug enable
Open chrome on your phone
Open chrome on your PC, go to 'chrome://inspect#devices'
Wait for a second and you should see your device, click inspect on it
Soon you can find out what cause the problem
Here's a full tutorial: https://developer.chrome.com/docs/devtools/remote-debugging/
I tried the following in order to record mobile app steps using jmeter:
Start Jmeter on the my laptop and add the necessary recording templates.
Copied and installed the Jmeter cert on the mobile phone.
Connected the mobile phone to the same wifi that my laptop (with Jmeter) is on.
In the proxy hostname, I added the ip address of my laptop (with Jmeter). I also add the same port that was configured in Jmeter for my laptop.
Clicked start on the HTTP(S) Recording controller to start recording.
NB. I ensured my firewall was off during the recording.
I tried these steps several times, but when I use my mobile app on my phone, nothing gets recorded. I then tried navigating to a site using the browser but it does not record these actions either. Instead, it records other steps that I don't recognise. Please see links below for what I am seeing in Jmeter.
Does anyone have a solution to this?
Recorded Steps
Errors Displayed
You're getting this error:
because JMeter is not capable of decrypting the intercepted traffic as you didn't install JMeter's MITM certificate onto your mobile device.
The certificate is called ApacheJMeterTemporaryRootCA.crt and it's being generated in "bin" folder of your JMeter installation when you start the HTTP(S) Test Script Recorder.
I cannot provide exact steps for the certificate installation without knowing the operating system (including version) of your mobile device, however you might find the following material helpful:
Five Tips for Using Self Signed SSL Certificates with iOS
Android: Add & remove certificates
Recording Using Android Devices
Using self-signed SSL in Android (Nougat+)
hey you have to "trust the jmeter certificate in your mobile device". in ios its "trusted certificates-->certificate trust setting--> enable button for jmeter certificate which you took from jmeter machine to the mobile (ios in my case)"
I have developped a Codename one App. It runs normally in Android. I am trying to make it run in Iphone as well.
1) I have purchased a developer apple account, paying the 100$.
2) I have generated a .cert file in windows, using instructions.
https://knowledge.digicert.com/solution/SO27347.html
3) I used ios signing to use the certificate there.
However, the one issue is "choose a device" from IOS certificate wizard, is empty. Check image.
Whenever i make an IOS build, it says build successful, but displays an error accepting the certificate.
What am i missing? What should i do?
In the menu button on the top right click add device and add the UDID's for the devices you own. On these devices you will be able to install the debug versions of the apps you build.
Not sure where to go with this one as I am not sure if it is code related or something else. I have a working React Native app that works great on the simulator and also on the device when connected to the wifi or plugged into the Mac.
Now I have noticed that when I remove the device and place it on 4G/3G the app does not load and hangs on the loading screen. It may take a number of re-opens of the app before I can get it to run once. Funny thing is that at the minute the app only has the UI built so there are no calls to remote servers etc that may be causing it to hang.
Any ideas?
For iOs, in Xcode you can go Product > Scheme > Edit Scheme... > Run & set the Build Configuration to Release. Then run it on your device & it will be a release build that won't try to connect to your packager, but won't have the sometimes useful developer options at your disposal.
Most of the time I am working behind a Microsoft NTLM Authenticationg Proxy. For some reason the proxy settings in the Simulator don't work with that.
Most java programs I get to work with the proxy through a program called cntlm, but not the Codename One Simulator or other Codename One features requiring a network connection. Therefore I cannot login to Codename One and ...
I am unable to use the OTA Device Skin Download.
Where would I find the skins to install skins manually?
The skins are here: http://github.com/codenameone/codenameone-skins/
However, can you please file an issue on that so we can track this. It should work fine with the standard simulator proxy settings. I'll verify that.