Hello Asley,
Honestly I don't know if the iframe place of the audio tag can be a problem or not... you must try it! Read the plugin's documentation and then made some tests, Asley: if you have any problem or need any specific help, just post here and we will try to help.
Hello Asley,
Doing something like that means that we must use some Apache Cordova plugin, like cordova-music-controls-plugin.
Hello Harald,
The iOS app that I am talking about has been updated recently in the Apple Store. But, to be honest, I am not talking about the default icon of AB: maybe this have problems for the Apple Store? I am not sure about... since I did not try it...
But yes; the objective is to use different icons, that is, one for all the platforms (including Android) just like now, and a couple of them specifically used for the Android "adaptative icons" feature. I think this can work.
But I am not sure right now how exactly implement it... what we provide to AB is an icon that then AB uses to generate lot of icons for all the platforms. I am not sure how to proceed with the new "background" and "foreground" "adaptative icons".
Probably we can prepare a 1024x1024 "background" and "foreground" icon, then AB can also generates the appropiate images, that is, icon sizes. But I need to implement this and of course made various tests. But this is the idea in principle... I think this can work.
Hello Harald,
Various things to consider here... first of all, when I talk about a "rounded icon", I means a "rounded design", not a "rounded image" or something like that. For example, I can't understand why Apple reject an icon... since I already have a couple of apps published in the Apple Store without get the problem that you describe above.
My intention (I hope I have some time to do it!) is to leave the things equals than now, that is, maintain the creation of the icons like now, since works in almost all platforms, except for the Android versions who support "adaptative icons". So for this "adaptative icons" I want to offer a way to provide the icon's "foreground" and "background", in addition to the app's icon, and, only intended to be used by Android.
In fact we can try something like that right now using the App Options -> Cordova -> Configuration -> Extra XML, by placing the "adaptative icons" XML referred here in the Apache Cordova documentation. But I am not sure if this can work as expected, so, I will insists, my intention is to prepare this stuff by AB, if the user provide the proper "foreground" and "background" icons for the Android.
Hello Harald,
I think we can resume what to do with this: 1º Save the "scrollTop" of the element that we wanted, and then go to another view. 2º When the first view is shown, look at the value of the saved "scrollTop", and, goto it if we have a value different than zero, for example.
Based in the app sample that I prepare before in this thread, I modify it a bit in order to do what I describe above. Please, take a look Harald: copy the below code into a new file and save it as "MyApp.ab", then, open it with DecSoft App Builder and run it.
The "saved scroll top" variable is defined in the app's Ready event with a zero value. When we click the "Go to view 2" button (in the first view) we store the "scroll top" of the element that we wanted (the view itself in this case) in the referred variable. Then, look at the Show event of the first view: we check the value of the referred variable, and, if it's different than zero, we apply the scroll over the view.
Hello Desmond,
Thanks for your kindly words, sir. My only fear with this plugin is that the plugin's author advert that the Google Store can probably not allow apps that made tasks in background... here is the paragraph that I refer:
Plugin for the Cordova framework to perform infinite background execution.
Most mobile operating systems are multitasking capable, but most apps dont need to run while in background and not present for the user. Therefore they pause the app in background mode and resume the app before switching to foreground mode. The system keeps all network connections open while in background, but does not deliver the data until the app resumes.
Store Compliance
Infinite background tasks are not official supported on most mobile operation systems and thus not compliant with public store vendors. A successful submssion isn't garanteed.
Use the plugin by your own risk!
Of course, not all the apps must be distributed along the Stores, so, if you plain to distribute your app in another way, for example, by just downloading the APK file from your website, then probably you can use the plugin without worries about the possible problems in the regular Stores.
Hello Desmond,
Looking into this, I found this issue in the plugin's Github project page.
Apparently there is a problem or bug in the plugin that cause that we cannot get it working in Android, at least. If you read the linked issue, some user suggest to remove the below line from the "\MyApp_Compiled\plugins\cordova-plugin-background-mode\plugin.xml" file:
Certainly, doing that apparently solve the problem, that is, at least the "enabled" method works, and, also the plugins' events. Please, copy the below code into a file and save it as "MyApp.ab", and then take a look at the app's Ready event.
Certainly it's not common to edit plugin's files, but, apparently this is required for this specific plugin... until the problem or bug has been fixed. I recommend you to try with the above app, to read the plugin's documetation, the possible issues, etc.
Hello Harald,
Yes; we can use the plugin variables like you describe: we can do it by placing the plugin line in App Options -> Cordova -> Batch -> After. Additionally, we can also use the App Options -> Cordova -> Configuration -> Extra XML, using a XML code like the below one (with spanish descriptions):
Hello Desmond,
You are right, however, this is quite rare... according to the plugin documentation, we can use something like what we wanted:
However, if we try something like these alerts:
All of them appear to be undefined... so certainly the below code can't work as expected:
Even more... since the code fail... if we place an alert after that the above line of code, we can't see the alert too, since the error interrupt the script execution.
Honestly I don't know what to say... we are following the plugin's documentation, so, if they don't work as expected... we are missing something here... maybe you can find a possible alternative for this plugin? Or contact with the author? Maybe search in Google about the problem... because certainly the plugin appear to be installed properly, but, then, at least one of their **available** methods are not available...
Maybe we are missing here something? Maybe we can's use that method in the app's Ready event? :-(
Hello Harald,
Honestly, if the integrated HTML editor is not enough... we can always open the external editor that we wanted and just use the clipboard to copy and paste the HTML code... from one to another editor and viceversa... no buttons... no configurations (because finally the external editor must be configured in some way, we need to save their path, at least), no possible problems... because maybe a program can perfectly open an HTML file, but other programs not... etc. It's my opinion, of course!
Hello Harald,
Well. The included HTML editor of App Builder is more or less good to deal with small pieces of HTML, which is probably for what its intended to use. On the other hand, they offer highlight syntax, search and replace features, and, more important, somethings that are only available in AB, like the icons, variables, etc.
Maybe AB can incorporate something like a "External tools" menu, so the user can establish some programs to be called from that menu, however, the integration of that programs may are not possible. That is, we can execute an external HTML editor, but, get the final edited HTML don't appear something that we can do.
Hello Desmond,
Below is an small sample that works as expected. Please, try it. Copy the below text and save it in a file named like "MyApp.ab"... then open that file with App Builder and compile the app: also with Apache Cordova.
Look at the app's Ready event, in which I place the sample code, including the "alert" that we want to view.
Hello Desmond,
Please, copy here the code that you are trying to use, and indicate where you place that code (the app's Ready event, etc.). I take a look to prepare some sample for you, but, certainly the plugin is not as easy as can appear in principle... the plugin provide several methods, events, etc.
Hello Desmond,
Humm... maybe I confuse to you... I refer to the BAT file that AB generates when you compile the app. Inside the "_Compiled" folder, you must see the "cordova_android_run.bat" file. This is the RUN file that I am talking about.
Hello Desmond,
There a couple of questions here. First, maybe the emulator don't support the Cordova plugin... or viceversa, the plugin can't work in the emulator. My recomendation for this is that you simply avoid the emulator: connect a device to your computer via USB, and then, the AB Run BAT file just launch the app in your device, not the emulator.
The other thing here is the code that you want to execute... your code looks like this:
But probably that code is wrong... Javascript is case sensitive, and, probably you want to use "alert", not "Alert".
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.