Posts by Mario Steinbacher

Show threads by Mario Steinbacher
38 posts found, page 2 of 3

Mario Steinbacher (In thread: Camera IOS and show image)

Thank you very much David!

You are awesome!


Mario Steinbacher (In thread: Camera IOS and show image)

Hello David!

Do you have any experience with the new WKWebview and the camera cordova plugin not showing caputured images?
because since I use your new WKWebview I do get an Error when I want to display the taken, or from photolibrary, image with the camera.
Not allowed to load resource: file://path_to_the_file

Is there any config.xml prefernce setting I have to set or something else?

The problem is only on IOS

best regards

mario


Mario Steinbacher (In thread: Error: toLowerCase of undefined)

Hello David!

thank you for your detailed answer.

but the the config.xml gernerated by app builder adds these tags

and not the correct ones

thats the reason for the error because the configparser istn't able to find the name attribute.

the file-xhr error: I have to try it again but in the past when I was using the new WKWebView I only got a blank white page and a XMLHttp security error in the console because of loading from file://

and this was the reason I meantioned the xhr plugin because with this it worked.

When I have more info if it works I'm gonna reply here. (have to update xcode but ran out of disk space .... :-( )

best regards

Mario


Mario Steinbacher (In thread: Error: toLowerCase of undefined)

or now this one

https://github.com/oracle/cordova-plugin-wkwebview-file-xhr


Mario Steinbacher (In thread: Error: toLowerCase of undefined)

I think I found it.

the problem are the new ios preference tags in the generated config.xml.

they are missing the name atrribute and also the value attribute.

best regards

Mario

P.S. And what also could be usefull is this plugin https://github.com/TheMattRay/cordova-plugin-wkwebviewxhrfix


Mario Steinbacher (In thread: Error: toLowerCase of undefined)

Hello David!

Do you have any experiences with ther error Cannot read property 'toLowerCase' of undefined when executing the generated shell file on an mac device?

I have updated to the latest mac os(11.3) node(16.0.0) and cordova (10.0.0) XCode(12.4)

During executing the cordova_ios_release.sh it tells me after each plugin or even cordova-ios(6.2.0) : Cannot read property 'toLowerCase' of undefined and then it ends aflter all plugins with the error Cannot read property 'toLowerCase' of undefined and Paused...

Have you ever had that problem? I found some forum entries but these are about two years old and they say it is solved with cordova-ios 5.x but now I have 6.2.0 and do have this problem

best regards

Mario


Mario Steinbacher (In thread: http control done and fail handler functions)
Hello David!
Thank you for your tips. and sorry for any inconvinience.
this was just a guess because I have a swiper on my homescreen with buttons on each swiping element. And from time to time (more often then less) the buttons dont work anymore just get focused on click. but after swiping to the next and back the buttons do work again.
the only error I found was my described problem.
But thats not your problem maybe the swiper does something weard.
sorry
and thank you for your awesome work
good night and have a great weekend (if its possible these times)

Mario Steinbacher (In thread: Input File pick image and or capture image)

Thank you David!

I endet up with your fourth solution with two buttons one for select and one for capture.

Because and Android and iOS app only.

Thank you!


Mario Steinbacher (In thread: http control done and fail handler functions)

Hello David!

I do have a feature request for the http control element on fast user interactions.

Because fast user interactions by opening a view and going back immediately results in a global Javascript ErrorEvent.

I explain my specific problem:

In my main view I have may buttons to open other views and in some of these other views I have a http control that executes in the show event do load new data. But when the user immediately goes back to the main view before the done event have been fired the event fires on my home screen but there does this http control not exist and so it throws the error.

My solution would be to check if "self" is defined before doing the rest of the function.

best regards

mario


Mario Steinbacher (In thread: Input File pick image and or capture image)

Hello David!

I have a question about how to pick and or capture an image with the Input File Control.

How to ...

  • only pick an image
  • only capture an image
  • let the user decide to pick an image or capture a new image

I have set the Accept value to image/* or .jpg or .jpeg (Capture is on Environment, Multiple false) but on ios always the camera opens and on android always the file picker opens.

I hope you understand what I mean.

I have not found a sample for these usecases (or I'm blind)

best regards

ps: Thank you for the sidebar feature :) you are awesome!


Mario Steinbacher (In thread: Sidebar from right side)
Hello David,

what I mean is when I have placed the sidebar on the right side, with the css you provided earlier.
I am able to hide the sidebar by swiping to the left. (without code from me anywhere)
It should be swiping to the right to hide the sidebar if the siderbar is on the right side. And swiping to the left if the sidebar is on the left side.
This would be an awesome feature in the Settings to choose from. like: position of the sidebar menu: left or right (with correct swipe direction to hide)
Do you understand what I mean?

best regards

Mario Steinbacher (In thread: Upload image file to the app's server)
Hello David,

I'm currently working on a feature to caputure an image and send it to the server with other input data.
But it seems that the function app.cordova.file.getBlobFromFileUri doesn't exist anymore.

Do you have any other solution for this usecase?

best regards
Mario

Mario Steinbacher (In thread: Sidebar from right side)
Hello David,

If you can remember a month or two ago you implemented the feature "swipe left ON sidebar" to hide the sidebar.
but not swipe right would be needed.
because now when you swipe left on the sidebar on the right side it hides. This is not intuitive.


Mario Steinbacher (In thread: Sidebar from right side)

Ohhh!

But now I have to swipe to the left to hide the sidebar.


Mario Steinbacher (In thread: Sidebar from right side)
Thank you David! Other question: I'm not able to download the latest version, I'm getting an windows error. my current version is 2021.1 this is what I get when i click on Tools -> Check for Updates Access violation at address 0000000000409863 in module 'AppBuilder.exe'. Read of address 00000010119A2F2.

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.