Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codenameone iOS app crashes using BrowserComponent using the Camera #3876

Open
Karrtojal opened this issue Feb 27, 2025 · 0 comments
Open

Codenameone iOS app crashes using BrowserComponent using the Camera #3876

Karrtojal opened this issue Feb 27, 2025 · 0 comments

Comments

@Karrtojal
Copy link

Describe the bug
In an iOS app generated by codenameone there is an issue using a BrowserComponent. The web page loaded, only have a to select files.
When you choose "Photo Library" or "Choose Files" works fine. But if you choose "Take Photo or video" the application closes abruptly.

To Reproduce
Steps to reproduce the behavior:
1.
Example code:

public void start()
    {
        if(current != null)
        {
            current.show();
            return;
        }
        
        Form hi = new Form("", new BorderLayout());
        BrowserComponent browser = new BrowserComponent();
        String baseUrl = "https://xxxxxx.com/test.html";
        browser.setURL(baseUrl);
        hi.add(BorderLayout.CENTER, browser);
        hi.show();
    }
  1. Compile a generate an iOS app with codenameone.
  2. Open the app and click on Input component. Then select "Take Photo or video".
  3. The app crash.

Expected behavior
Don't crash, take a picture or video and the photo are selected.

Screenshots
Here and example, but can be test it with any simple html with a form and an input to choose files.

Image

Image

Desktop (please complete the following information):

  • OS: iOS

Smartphone (please complete the following information):

  • Device: [iPhone 16]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant