Posts by DecSoft

Show threads by DecSoft
3355 posts found, page 94 of 224

DecSoft (In thread: New App Builder release 2019.26 (03/28/2019))

Hello to all,

Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:

Read the entire product's history


DecSoft (In thread: Changes in external CSS file are not recognized)

Hello Harald,

App Builder try the best in order to compile our apps. This mean to cache somethings, or to avoid to copy existing files, everything to get the app compiled as faster as possible. The system is not perfect and can be enhanced, of course.

If you change a CSS file and AB can recognize it (this mean that the file size changes) then AB copy again the file to be ready to use by the app. The compiler cache don't matter here, since the AB decision to copy or not the file is only if consider that the file has been changed.

What probably happen is that you launch the app without compile it before, something that is completely useful sometimes: because we can launch the app without compile it again. But if we do that... the compiler don't have the change to detect file changes and then copy it again.

Also is possible that we don't save the app. The Debug option saves the app automatically if needed, but the Compile option don't save the app: we must save it before if needed (and wanted). This can also cause that you experiment something like you describe.

Trying here with a simple CSS file, and, made changes to it (who changes the file size), everything works as expected, that is, AB detect the differences between the file sizes and therefore proceed to copy the new file in the appropriate place.


DecSoft (In thread: Made apps portables to another computers)

Hello Harald,

AB projects intended to be completely portable. And it is. What you must to do is to place the app's files aside the app's project file. For example, supose your app's project file is "MyApp.ab". Aside that file you can place a directory named "images". Then use the File manager to add the images from that folder: then AB uses relative paths to your app's project file and therefore you can share the project in other computers without problems.

The above is valid for all the available kind of files and folders. Of course, if you choose an absolute path that cannot be relative to the, for example, if you choose an image file from another unit, then, if that unit do not exists in another computer... the image load fail. But, if you save your app's project file in a directory, and, inside this directory you place your app's files (even inside other subfolders), then the app is completely portable to other file system and computers without problem.

The background idea for this: If I have network paths stored here, then I have to edit them again if I want to use the project locally e.g. on a notebook.

I am not quite sure about network paths... probably we can't deal it in a relative to the project file, so, my recomendation is what I say above: store your files in a folder aside your app's project file. Probably we can't use network paths, but, in the same way that we can't use absolute paths not relative to our app's project file... better said... we can use it... but probably the app cannot be compile in other system, except if the files exists in the specified URLs / paths.

The below try to be a sample of directories three:

The point is to pick files from the "Audios", "Styles", "Scripts"... directories, so App Builder automatically save their paths relative to our app's project file. Then we can move the "MyCuteApp" directory (the root one) to another computer and continue working in the project without problem.


DecSoft (In thread: Made apps portables to another computers)

Hello Harald,

Yes; it's now the expected behaviour. The styles and scripts can be edited because can contain optional "queries" to be included in their URLs.


DecSoft (In thread: Usage of the Cordova AdMob plugin in our apps)

Thanks for your kindly words, Amin! :-)


DecSoft (In thread: Usage of the Cordova AdMob plugin in our apps)

Hello Amin,

Yes; we can attach "general" events anywhere, maybe with a few cautions: attach it in a place that made it available for our purposes (if we attach events in a Button Click, they are not available until the button is clicked...), don't attach the same events twice (if this is possible), so, we must control it, or, attach the events in a place that is only executed one time in the app life, for example, the app Ready event.


DecSoft (In thread: Container name changes on Copy/Paste)

Hello Asley,

Please, upgrade your AB copy: the problem is fixed now. Thanks for your report!


DecSoft (In thread: New App Builder release 2019.25 (03/27/2019))

Hello to all,

Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:

Read the entire product's history


DecSoft (In thread: Usage of the Cordova AdMob plugin in our apps)

Hello Amin,

The plugin documentation is our friend. :-) The Ready event note is valid for all the Cordova plugins, and, for Cordova itself: before the Ready event the Cordova's stuff and plugins are not available to use, so we must use it inside or after the Ready event. About the the plugin's installation flag, the AdMob sample don't use it... and works... but maybe it's becuause it's just a test... or maybe because I have the right Google Play services here in the Android SDK.

The plugin works very well, and, certainly their API is quite simple. However, my intention is to enhance the AdMob Javascript plugin of App Builder, in order to have available methods like to prepare the interstitials, but also to prepare and show videos, etc. But I need some time in order to work on it! So in the meanwhile, and, like always, we can directly use the Cordova's plugin Javascript API.


DecSoft (In thread: Usage of the Cordova AdMob plugin in our apps)

Hello Amin,

Just to note... remember that, as any other Cordova plugin, their API must be used inside or after the app Ready event.


DecSoft (In thread: Usage of the Cordova AdMob plugin in our apps)

Hello Amin,

In principle, use the Cordova Custom plugins option like below must be enough:

So you must use the plugin's ID: cordova-plugin-admob

Additionally, the above can be also a valid way to do it if we need:


DecSoft (In thread: About a possible Datepicker sample app)

Hello Peter,

Trying something like the below:

Works more or less as expected (Firefox and Chrome place the input's template, Internet Explorer 11 leave the input empty)... so I am sorry, but maybe can't understand exactly your problem, Peter. For sure that I am missing something... :-(


DecSoft (In thread: Create folders with the Cordova Files plugin)

Hello Asley,

I am not completely sure if you can create a directoy in the place that you wanted, but anyway, you must use the Cordova Files plugin, that is, the Javascript API that such plugin offers. Please, read all the documentation, and, in particular (but not only) the last topic: Create directories. Post here if you have any specific problem!


DecSoft (In thread: Usage of the Cordova AdMob plugin in our apps)

Hello Amin,

You are right, methods like "prepareInterstitial" can be good. In fact the AdMob Javascript plugin uses it... but also uses their argument "autoShow" set to true, which causes that the interstitial appear right after their preparation.

Taking a look at the AdMob plugin API, the API appear very, very easy to use.

So, maybe I can enhance the AdMob Javascript plugin in the near future, but, for now, you must use the AdMob API directly, Amin. My recommendation is that you forget the AdMob Javascript plugin complete, just follow and use the AdMob plugin API.

Then please... post here any problem that you can have and I will try to help you.


DecSoft (In thread: Usage of the Cordova AdMob plugin in our apps)

Hello Amin,

We need to touch various things here. First of all, AB actions are finally translated to the right Javascript code, so, there must no difference between use AB actions and Javascript, since at the end we are talking about Javascript code.

What I am thinking is that the AdMob plugin relies in Internet to work... that is, probably to show an ad one or more HTTP requests are required, so maybe the quality of the internet connection matter here. Maybe the second show is faster?

Are you try with the AdMob app sample? Can you see the same "slow" behaviour? When I try this sample in the past (not too much time ago) I can't note any "slow" behaviour... both "banners" and "interstitials" appaer reasonably well.

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 cookies only to store your preferences.

Ok! Hide this note More information