AppStudio 7.4.2 released!

We’re pleased to announce that 7.4.2 has been released.

Late on July 29th, PhoneGap Build announced that version cli-9.0.0 is available. This is good news: As of August 1, the Google Play Store will require that all new apps are built using cli-9.0.0. Existing apps have till Nov 1, 2019.

This release updates AppStudio to handle the changes to PhoneGap Build. See this blog post for more info:
https://blog.appstudio.dev/2019/07/phonegap-build-updates-to-cli-9-0-0/

Here’s what is new and fixed in the new release:

  1. PhoneGap: If phoneGapVersion not specified, defaults to cli-9.0.0
  2. PhoneGap Samples: All samples are now compatible with cli-9.0.0

The easiest way to get the update is on the Help menu – “Check for Updates…”

PhoneGap Build Updates to cli-9.0.0

Late on July 29th, PhoneGap Build announced that version cli-9.0.0 is available. This is good news: As of August 1, the Google Play Store will require that all new apps are built using cli-9.0.0. Existing apps have till Nov 1, 2019.

The PhoneGap Build Version tells PGB which libraries use when building apps. cli-9.0.0 includes Android API Level 28, which is required for Android 9.0, so it makes sense to build apps using this new version.

What it means for you
Continue reading “PhoneGap Build Updates to cli-9.0.0”

AppStudio 7.4.1 released!

We’re pleased to announce that 7.4.1 has been released.

The biggest change is that the Samples now use Bootstrap 4 controls instead of jQuery Mobile. As mentioned before, it’s been 5 years since jQuery Mobile has been updated. If you’re still using it in your projects, please consider updating.

Here’s what is new and fixed in the new release:

  1. BS4 Navs: Fix what happens when clicked
  2. BS4: Input and Textarea can also be set using .value
  3. BS4: Textarea sizes to actual size of control
  4. BS4: Radiobutton: Inputmode property not needed
  5. BS4: Checkbox gives better message when index is out of range
  6. Deploy: Electron 5 is now supported
  7. Installer: Restore registry settings for Internet Explorer
  8. jqWidgets Grid: Clean up usage of ready property (was causing errors)
  9. jqWidgets: New jqWidgetsLicence property
  10. PWA: Some versions of IE do not support Let
  11. PWA: Allow for blank icon name
  12. PWA: Don’t put double quotes in the description
  13. PWA: Phase out some of the logging
  14. Run menu: Fix Run Electron menu item
  15. Samples: Use Bootstrap 4 controls instead of jQuery Mobile
  16. Samples: Compass now handles multiple ondeviceorientation events
  17. Samples: Fix old bug in GridNorthwind which caused error on split()
  18. Samples: GridWithScrolling did not have BASIC version
  19. Samples: jqWidgets Grid sample did not have JavaScript version
  20. Samples: New WebShare sample
  21. Wiki: Use JavaScript/BASIC tabbed control to show sample code more clearly.
  22. Wiki: Update offline edition

The easiest way to get the update is on the Help menu – “Check for Updates…”

The future of SQLite

Apple has announced that the next version of Safari will no longer support SQLite. This has been confirmed in the beta of iOS 13 – it’s gone.

There’s no need to panic. There are workarounds, which I’ll get to later in this post. Also, there are no indications that Google will do the same with Chrome.

Some History

SQLite was introduced into browsers many years ago as WebSQL. It was a great idea: SQLite is small, powerful and solid. You can make great apps with it. The problem came from the standards committee. W3C prefers a clear standard with alternative implementations: saying “Just use SQLite” isn’t good enough. They decided, in 2009, to deprecate WebSQL and replace it with IndexedDB.

(Behind the scenes, I hear there were some heavy politics going on. Microsoft and Oracle were both very unhappy with WebSQL using SQLite – they each had their own established database software and did not want an upstart competitor to become standard.)

Regardless, Safari and Google continued to include WebSQL in their browsers. FireFox and IE did not. https://caniuse.com/#search=websql

The suggested replacement, IndexedDB, is not a SQL database. It’s more of an indexed file system. It’s been criticized for being slow, clumsy and inconsistently implemented. For more information, see this article: https://developers.google.com/web/ilt/pwa/working-with-indexeddb

Alternatives

Web Apps on Android: No problem – Chrome continues to support WebSQL.

Web Apps on iOS: Either use Chrome to run your app, or make your app a native app.

Native Apps for iOS and Android: Use the PhoneGap plugin for SQLite (as you probably have been). Just as this to your config.xml – no changes to your code.

<plugin name="cordova-sqlite-evcore-extbuild-free" source="npm" />

Desktop Apps: Another reason to use Electron. Use the SQLite plugin https://www.npmjs.com/package/sqlite

Web Sharing

On your mobile device, sharing something is usually as simple as clicking the Share button, choosing which app you want to send it to, and then who you to share it with. Now you can add this capability to your own apps.

Here’s what the share button looks like on iOS:

Click on it, and you’ll see something like this:

Use the navigator.share() function in your app to bring up the Web Share picker. Not all browsers have this function, so check if it exists before calling.

You’ll need to put the data you want to pass to the app share in the argument to the share() function. For more details, see this Tech Note: https://wiki.appstudio.dev/Web_Sharing

Setting your app as a Web Share Target

On Android, you can add your app to the Web Share picker, so other apps can call yours. Your app has to be a PWA (which AppStudio now makes automatically) and needs to register itself.

It will now appear on the Web Share picker:

You can see the code to do this in this Tech Note: https://wiki.appstudio.dev/Web_Sharing.

AppStudio and jqWidgets

We’re happy to announce a partnership agreement with jqWidgets. It’s in the form of additional documentation, extra support and discounts for using one product with the other.

jqWidgets Ltd. provides controls for building professional web sites and mobile apps. It is built entirely on open standards and technologies like HTML5, CSS, JavaScript and jQuery. jQWidgets enables responsive web development and helps you create apps and websites that look beautiful on desktops, tablets and smart phones.

These controls work well with AppStudio. More that 2 dozen of them are built into AppStudio’s ToolBox.

The two companies have a similar approach to looking after their customers. Quick support on web boards, near instant bug fixes and regular new releases. The initial release of each product was at about the same time: 2011 and 2010, with major updates every year or so.

Both products are constantly updated to the latest web standards, so you will be able to keep your apps up to date.

For more information, see https://www.nsbasic.com/app/jqWidgets.php

As part of the agreement, AppStudio users can get jqWidgets licenses for 20% off. Contact sales@jqwidgets.com.

2019 Contest Results!

We’re pleased to announce the results of our 2019 programming contest.

We had three categories: Business, Non Commercial and Education. All registered NSB/AppStudio users were welcome to participate in the contest. Prizes were $100 USD in each category.

Judging was by NSB’s experts. All judging was arbitrary and final. We looked for quality, performance, ease of use, sophistication and overall coolness. Apps could be anything: Enterprise, business, commercial, education, games or even something whimsical.

All programs had to be created using NSB/AppStudio. Entries could be commercial, shareware or freeware, and for iPhone, iPad, Android or multiple platforms. Code could be written in JavaScript or Basic, HTML5 and css.

Without further ado, here are our winners: (full results are here)

Continue reading “2019 Contest Results!”

Progressive Web App (PWA) Support

AppStudio 7.4 brings support for Progressive Web Apps (PWA). The idea behind PWAs is to give users a more native app like experience when using Web Apps.

One of the important features of PWAs is the ability to run when there is no internet connection. To do this, the app needs to save all its components locally when it initially loads from the website. The app can then load those instead of going to the web each time you run the app.

Before version 7.4, AppStudio did this using Application Caching. Each app had a manifest containing the list of files to be cached. It worked fairly well, but was not perfect. PWA was designed to fix the problems with Application Caching. The Chrome and Safari teams have announced that Application Caching will be deprecated in future releases of their browsers.

With iOS 12, Apple now supports PWAs (Chrome has for a while), so it was time to update AppStudio to use the new standard.

The good thing is that the change is mostly transparent to AppStudio developers and their users. AppStudio takes care of all the code that is needed to implement a PWA automatically. There are two changes you’ll need to be aware of:
1. You’ll need to provide icons called 72.png, 192.png and 512.png. Put them in the ‘icons folder of your app.
2. The old ‘manifest’ property has been renamed ‘extrafiles’. Put the names of any extra files or folders your app needs here. They will then be deployed with your app. Files named in your old manifest property are automatically carried over.

There are more details about PWAs in our wiki: https://wiki.appstudio.dev/Progressive_Web_Apps.

AppStudio 7.4 released!

We’re pleased to announce that 7.4.0 has been released.

The biggest new feature is that AppStudio now produces Progressive Web Apps (PWAs). This is a new standard for saving web apps so they can run offline and as standalone apps. Here’s an article with more details.

Here’s what is new and fixed in the new release:

  1. PWA: Progressive Web App caching replaces Application Cache
  2. PWA: New manifest.json property
  3. BS4: Add link to Bootstrap 4 Theme Customizer: Bootstrap.Build
  4. BS4: Card display options now shown for text fields
  5. BS4: Card Footer can now be styled
  6. BS4: Datatable: recover gracefully if no value for lengthMenu
  7. BS4: Hamburger has a title when you hover over icon
  8. BS4: Select was emitting an extra character
  9. Deploy: Babel option removed.
  10. Deploy: Google Lighthouse now supported.
  11. Deploy: MakeEXE stuff removed – replaced by Electron
  12. Deploy: old Application Cache removed
  13. jQM: Error in List control fixed.
  14. Project: MakeExe properties removed (obsolete)
  15. Project: Properties removed: newVersionWarning, iconAndroid, exeicon, manifestFile, ManifestName

The easiest way to get the update is on the Help menu – “Check for Updates…”