BlackBerry BrowserField problem on 9800 - blackberry

I'm using 5.0 field2.BrowserField as in-app browser, but on 9800 simulator page isn't displayed. (tested on SimPackage-6.0.0.246_9800-ATT,SimPackage-6.0.0.141_9800)
BrowserField browser = new BrowserField();
add(browser);
browser.requestContent("http://www.blackberry.com" + ";deviceside=true");
what is problem?

I think there is an issue with the Browser Field on Simulator for the 9800 - 9850 devices. I have noted however, if you install the your app unto the simulator from a .cod file instead of loading it via IDE, the browser field will load the required page correctly, without issue. However, the browser field may still misbehaves on a real device, it does not render links embedded into the page correctly on my app for an example.

for simulator no need to add parameter just use http://www.blackberry.com
make sure you run the simulator with MDS simulator

Related

React JS not opening in apple browsers

I have a website created in react js, when I try to open it on windows or android the loading happens normally.
But on IOS devices it doesn't load anything from the site.
I tried to use https://polyfill.io/v3/polyfill.min.js in my index but I still couldn't.
PS: I don't have a mac to debug, tests only on an iphone version 15, I didn't find the iphone ios console to see the errors.
Problem solved, first step was to update the browserslist.
Second it was seen that the application was with storage in localStorage above what safari was handling, thus causing the error.
Removed localStorage.
Link:
https://github.com/browserslist/browserslist
Link:
https://stackoverflow.com/questions/1921048/limit-of-localstorage-on-iphone#:~:text=Mobile%20Safari%20on%20the%20iPhone,limit%2C%20afaik%2C%20on%20localStorage.

iOS Cordova assets not loaded

I wrote some new views for my application, and they all show up properly on chrome and safari. However, when I run the app on simulator and open up the safari debugger, those views don't show up under index.html/scripts/. I have confirmed that those files exist in the www/ and Staging/www/ folders in the Xcode project. I have run rake prepare_ios, but it does not fix the issue, do I need to add these new files to a directory somewhere?
After trying to access my application through mobile Safari, I encountered an error on the Safari inspector that I had hooked to my simulator. It told me that I could not use const since I was using strict mode. This error had not popped up previously, and only out of random luck (when i was closing the safari tab) did it even show up on the inspector. This led me to go and make changes to my files that were using const and the page loads now.

Weinre server no target for debugging webview

I'm trying to debug a webview on my phone using the weinre server. It shows up as a client but not as a target. I know that 4.4 and above have chrome debugging but I need to debug in 4.3
I've tried changing the localhost to the my ip address but it doesn't work. Any ideas as to why the target is not showing up?
I've attached a screenshot for reference.
Your server (running on your windows computer?) needs to be visible to your (android?) phone. Can you browse to the weinre server on your windows computer from your android phone - just to test that you have connectivity there?
You could also try using a public weinre server, such as: http://weinre.mybluemix.net/
Also possible there is an error in your HTML or other JS somewhere that is preventing the weinre script from running. You could try running on a 4.4 device and use a real debugger to see if you can figure out why it won't work on your 4.3 device.

WebWorks Web Inspector - Unexpected response code: 426

I am trying to use Web Inspector in a browser on Blackberry 7.0 (BB Torch 9860) and in Chrome I've got the following error when loading it:
Unexpected response code: 426 :1337:1
Any ideas why it happens?
I had a similar issue but managed to get it working by switching browsers.
Try it in safari instead of chrome. see step 7 of http://www.berryreview.com/2011/11/18/blackberry-os-7-web-inspector-easily-debug-blackberry-websites-webworks-browser-apps/
I'm not really sure why mostly because I don't care enough to find out why but hopefully this solves your problem
This was also giving me a lot of grief. I have an older Blackberry running version 7.0 something that I am testing on that would not attach to the web inspector in neither latest Chrome or Safari (version 6), both displaying the blank page with a search field in the top right and two controls, bottom left.
I finally managed to get the web inspector running, by installing the older Safari 5 and loading the web inspector page from that.
I downloaded it from here: http://support.apple.com/kb/DL1531

Blackberry 9800 Simulator Crashing When Launching Browser

The Blackberry 9800 simulator is crashing when launching the browser, throwing
JVM Error 104: Uncaught
IllegalStateException.
This is a clean install of the simulator with no 3rd party applications installed to it. I strictly wanted to use it for testing web applications. All other applications on the device seem to work without error.
I managed to get it working.
Exit the Simulator (if running)
Go to c:\program files\Research In
Motion
Right click BlackBerry Smartphone
Simulators 6.0.0
Click Properties
Select the Security Tab
Click The Edit button
Click the Add... button
Add your user account to with "Full
control" checked
Click the OK button
Launch the simulator and all should be well.
This solution didn't work for me, but reinstalling as described here did.
http://supportforums.blackberry.com/t5/Web-Development/9800-Simulator-Browser-crashes-JVM-Error-104/m-p/594666
right click, and launch like administrator (W7)

Resources