Skip to content

iOS & Android Guidelines

o5faruk edited this page May 2, 2021 · 2 revisions

⚠️⚠️⚠️

This sdk documentation is deprecated and will not be updated. Check out our new docs at https://sdk.buildfire.com/docs/ios-and-android-guidelines/

⚠️⚠️⚠️

iOS

As upgrading to iOS 13 and migrating to WKWebView from UIWebViews brings security and performance enhancements it has the limitations below that needs to be addressed in buildfire plugins:

LocalStorage

See https://github.com/BuildFire/sdk/wiki/LocalStorage

IndexedDB

indexedDB.open() will now cause an error called in an invalid security context. We recommend switching to File System Services for widget side on devices and keep using indexedDB on control or widget side on web side.

You can figure out the platform using the following snippet:

var isDevice = window.buildfire.getContext().device.platform !== 'web'

If the storage required by the plugin instance is small local storage can be used instead on both sides (web and devices) for the widget.

WebSQL

Web SQL is no longer supported in iOS and throws Web SQL is deprecated error when used. We recommend using alternatives explained in indexedDB section.

Android

LocalStorage

See https://github.com/BuildFire/sdk/wiki/LocalStorage

Clone this wiki locally