Posts by Andrea

Show threads by Andrea
45 posts found, page 2 of 3

Andrea (In thread: Http client CORS (AB1))

Hello everyone, I have a problem with connecting to a local address (to see the status of a shelly device)

The url is: http://192.168.1.151/relay/0

when open url from browser chrome i see this

if i try to do it from the app, creating an http client i get response "null - 1" CORS problems, is there any way to solve the problem?

I noticed that the requests are different, from browser the type is document, from application instead it is XHR (maybe it's normal)

as you can see from the screen, I tried to insert some headers, but the problem was not solved

PS: I also tried to insert further request method: GET and add other header Access-Control-Allow-Origin: *


Andrea (In thread: Input File error on Ios (AB1))

Thanks David for the answer, I inform you that I had already entered

reading around it seems that from ios 12 there are these problems


Andrea (In thread: Input File error on Ios (AB1))

sorry, solved with Capture property to False!


Andrea (In thread: Input File error on Ios (AB1))

Hi everyone, I have a problem when using an input files, on Ios.

Photo Library does not work and causes the app to crash.

Choose file is working correctly,

the web is full of this error in this line int retVal = UIApplicationMain (argc, argv, nil, NSStringFromClass ([AppDelegate class]));

but xcode's suggestion is clearer, I just don't understand how to replace the source type

thanks for any suggestions


Andrea (In thread: Condition into Report (AB1))

many things I ask you to learn (I know for sure that with HTTP client and server side everything would be easier)

I would like to use this second method more

The problem is: Record.date_created is y-MM-dd hh:mm!

for this I'm looking for a solution for Record.date_created | date: 'dd-MM-y' otherwise the condition of equality never occurs


Andrea (In thread: Condition into Report (AB1))

Do I like to complicate my life? What am I doing wrong?


Andrea (In thread: Condition into Report (AB1))
always wonderful! everything is always possible! :) Thank you David

Andrea (In thread: Condition into Report (AB1))

Hello, Is possible insert a condition into HTML?

I have a variable into html, [Record.status].

I would like that if the state of [Record.status] is 'processing' it shows some text (example), otherwise not

Thank you


Andrea (In thread: InAppBrowser URL schemes)
it worked perfectly! by the way without using the system browser! Now I can play with it for a while, this function may come in handy in other projects. Thanks David : )

Andrea (In thread: InAppBrowser URL schemes)

I try to explain myself better.

1) at the beginning, the customer navigates the site and proceeds to order by browsing with inAppBrowser.

At the last step, in the web page (on the server) always navigated through the inAppBrowser, at the end of the order, find a WHATSAPP button, which when pressed must close the inAppBrowser and at that point there will be a view in the app with a native button of the app, to send the message via whatsapp. (which would work in this case)

Of course the best would be via the web button, also transfer the content of the past order in some way, but otherwise I could also create a simple message like "I confirm my order", in this way the shop would have truthful confirmation.

Can I create a listener event on the final page of the order, connected to the button, which closes the inAppBrowser when pressed? How?


Andrea (In thread: InAppBrowser URL schemes)

Hi David, thanks always for your interest

I understand the reasoning and share it. The idea of ​​using whatsapp was born for two reasons.

1) The shop has the certainty of the veracity of the sender's data (phone number), I understand that there are other means, but this is what I like best.

2) For the target that has the store, those who order online are assumed to have whatsapp (which in all cases is not a mandatory step, but it is explained that by doing so the order is faster)

3) The message he sends contains all the elements of the order, with the sms surely it would be too many characters ..

But is there a solution with listening events? of the type I create a button on the web page with an id or class, which when pressed closes the InAppBrowser, and at that point a button appears in the app to send the confirmation via whatsapp


Andrea (In thread: InAppBrowser URL schemes)

I have to explain how the app works to understand ....

of course, I understand that it took me a bit of imagination to do it this way and it is not ideal.

But I tried to use the few skills I have.

1) Upon opening, it records the deviceid (for notifications) and passes it via parameter through the url inAppBrowser (an ecommerce site)

2) at that point the user browses the site and through cookies keeps in memory the string of the device id, when finalizing the purchase, the value of the cookie is recalled and is saved in the order DB.

(to be clear, the device id is not associated with a user, but with an order, since the site does not provide user registrations)

The last step requires that the user to validate the order, confirms on whatsapp, in this case I have a pre-filled button that redirects to whatsapp with the order summary (all automatic, therefore without having to write everything he bought ).

Now everything works perfectly via the web, if I do as you said, the app would just be a screen with two buttons .... and I would rather not leave the app.


Andrea (In thread: InAppBrowser URL schemes)

The point is not to exit the app,

looking for a start (but I still don't solve the problem) By adding to the XML

It no longer gives the error as before, proceeds to the whatsapp screen to send the message, but clicking continue, it says that whatsapp is not installed.

This is because he is still inside the web view ..

So I ran into other web searches and found a mod that should come close to the solution.

editing the core of plugin InAppBrowser.java

see this please

mod InAppBrowser for Whatsapp and other url schemes

the reasoning seems correct, but I still can't get it to go.

i am directly trying with a link starting with whatsapp: // send? phone = 3xxxxxx & text = hello

PS: I edited this file "compiled \ plugins \ cordova-plugin-inappbrowser \ src \ android \ InAppBrowser.java " as suggested in the post. and insert this

into EXTRA XML


Andrea (In thread: InAppBrowser URL schemes)

Hello everyone,

I have a difficulty to solve, I use in a project, the Cordova plugin inAppBrowser, on a specific page I have a link to a whatsapp contact starting with "https://web.whatsapp.com/send?phone=xxx"

Opened from browser as you know, automatically from smartphone opens the whatsapp app, this does not happen if the page is opened via plugin inAppBrowser.

To specify better, this link is not a dedicated page, but is located at the end of some steps that the user takes through navigation, in my case the checkout.

There is some method to make the whatsapp app open from browsing with inAppBrowser

Thank you!


Andrea (In thread: Report with JSON in AB1)
Thats'all! works great, thanks! for the rest I have to go back to studying, without getting discouraged! Thanks

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.