Skip to content

Not Included ​

skapi-swift has every feature of skapi-py, plus the ones an app on a phone or a Mac needs and a Python program does not: sessions kept in the Keychain, a remembered encryption key for this device, and reconnecting when the app returns to the foreground. A few skapi-js features are left out, because the platform has no equivalent or because they need something today's backend does not offer.

skapi-js haswhy skapi-swift leaves it out
Admin and project-owner methods (managing users, invitations, newsletters, hosting, project settings)They belong to the dashboard on skapi.com and to the project owner, not to the users of your app. skapi-py leaves them out for the same reason.
Web push notifications: subscribeNotification(), unsubscribeNotification(), vapidPublicKey(), pushNotification()They use the browser's Push API with VAPID keys and a service worker. iOS and macOS deliver notifications through Apple's push service (APNs), which today's backend does not send to.
WebRTC video and voice calls: connectRTC(), closeRTC()They need a large native WebRTC library. Realtime messages are included.
HTML form helpers: passing a form element or a submit event to a method, and the form response and redirect optionsThere is no web page and no DOM in an app. Pass your values as JSON instead.
Upload and download progress callbacksNot in this release. Uploads and downloads return when they are done.
forwardRequest with responseType: "response"The request is relayed and its answer stored by Skapi's server, so there is no live Response to hand over. The destination's status code is in forwardRequestHistory. skapi-py leaves it out for the same reason.

What skapi-swift adds over skapi-py ​

These skapi-js features are web-only in skapi-js and left out of skapi-py. skapi-swift has a native counterpart for each:

skapi-jsskapi-swift
sessions in localStoragesessions in the Keychain, one Keychain service per project
the encryption key remembered in IndexedDBthe encryption key remembered in the Keychain, on this device only: Remembering this device
reconnecting when a tab becomes visible or the browser goes back onlinereconnecting when the app returns to the foreground or the network comes back: App lifecycle
uploading File objects from a pageuploading from a file URL, a path, Data or an InputStream: Files

skapi-swift 2.4.0