despia-native 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -16
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,18 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
JavaScript SDK for [Despia](https://despia.com) that enables your web app to access native device capabilities through Despia's runtime. This npm package provides command queuing and variable watching capabilities for seamless integration with over 23 native device features.
|
|
1
|
+
JavaScript SDK for [Despia](https://despia.com) - Transform your web app into a native iOS & Android app without writing Swift or Kotlin. This npm package provides command queuing and variable watching for seamless integration with Despia's GPU-accelerated native runtime, enabling access to 25+ device APIs through simple JavaScript calls.
|
|
4
2
|
|
|
5
3
|
## About Despia
|
|
6
4
|
|
|
7
|
-
Despia
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
5
|
+
Despia bridges the gap between web and native mobile development. Build your app using the web technologies you already know, then deploy it as a truly native application to the App Store and Google Play - complete with hardware acceleration, offline support, and deep OS integration.
|
|
6
|
+
|
|
7
|
+
Our visual editor allows you to configure native widgets, shortcuts, and dynamic app behaviors without touching Xcode or Android Studio. Ship to both app stores with one-click deployment, automatic CI/CD pipelines, and over-the-air updates. Export clean, human-readable Swift and Kotlin source code anytime - you own everything, no vendor lock-in.
|
|
8
|
+
|
|
9
|
+
**Go from web app to app store in a weekend - with full native capabilities.**
|
|
10
|
+
|
|
11
|
+
### Key Features:
|
|
12
|
+
- **Universal Framework Support** - Works with React, Vue, Angular, Svelte, vanilla JS, or any web framework
|
|
13
|
+
- **Visual Configuration** - Set up native features through an intuitive interface
|
|
14
|
+
- **Zero Native Coding** - Access device APIs without writing Swift or Kotlin
|
|
15
|
+
- **Source Code Export** - Get complete Xcode and Android Studio projects you can modify
|
|
16
|
+
- **True Ownership** - Full access to generated code, no restrictions
|
|
17
|
+
- **One-Click Publishing** - Direct deployment to App Store & Google Play
|
|
18
|
+
- **Automated Pipeline** - Built-in CI/CD with code signing and provisioning
|
|
19
|
+
- **OTA Updates** - Push updates instantly without app store review
|
|
20
|
+
- **Performance** - 60fps GPU-accelerated rendering
|
|
21
|
+
- **Device API Access** - NFC, HealthKit, Siri, RevenueCat, and 20+ more
|
|
22
|
+
- **Single Codebase** - Maintain one project for iOS, Android, and web
|
|
23
|
+
|
|
24
|
+
### Native Device Features:
|
|
25
|
+
- **App Links & Deep Linking** - Universal links and app-to-app communication
|
|
26
|
+
- **Widgets & App Clips** - Home screen widgets and instant app experiences
|
|
27
|
+
- **In-App Purchases** - RevenueCat integration for subscriptions and payments
|
|
28
|
+
- **Push Notifications** - Local and remote notifications with rich media
|
|
29
|
+
- **Camera & Media** - Camera access, photo library, and file management
|
|
30
|
+
- **Biometric Authentication** - Face ID, Touch ID, and fingerprint
|
|
31
|
+
- **Location Services** - Foreground and background GPS tracking
|
|
32
|
+
- **Contacts** - Address book access with proper permissions
|
|
33
|
+
- **Haptic Feedback** - Tactile responses for user interactions
|
|
34
|
+
- **App Analytics** - Version tracking, bundle IDs, device identifiers
|
|
35
|
+
- **Screenshots** - Programmatic screen capture
|
|
36
|
+
- **Status Bar** - Dynamic styling and visibility control
|
|
37
|
+
- **Privacy Controls** - IDFA tracking and permission management
|
|
38
|
+
- **Share Sheets** - Native sharing UI
|
|
39
|
+
- **UI Controls** - Loading indicators, navigation bars, dynamic layouts
|
|
40
|
+
- **Plus 8+ additional native capabilities**
|
|
16
41
|
|
|
17
42
|
## Installation
|
|
18
43
|
|
|
@@ -50,7 +75,7 @@ const contacts = await despia('readcontacts://', ['contacts']);
|
|
|
50
75
|
|
|
51
76
|
// Background Location
|
|
52
77
|
despia('backgroundlocationon://');
|
|
53
|
-
// Use native browser geolocation API (not despia
|
|
78
|
+
// Use native browser geolocation API (not despia native runtime)
|
|
54
79
|
const watchId = navigator.geolocation.watchPosition(
|
|
55
80
|
(position) => console.log('Location:', position),
|
|
56
81
|
(error) => console.error('Location error:', error)
|
|
@@ -138,7 +163,7 @@ Background location tracking requires a two-step process:
|
|
|
138
163
|
// Step 1: Enable native background location tracking via Despia
|
|
139
164
|
despia('backgroundlocationon://');
|
|
140
165
|
|
|
141
|
-
// Step 2: Use native browser geolocation API for actual tracking (not despia
|
|
166
|
+
// Step 2: Use native browser geolocation API for actual tracking (not despia native runtime)
|
|
142
167
|
const watchId = navigator.geolocation.watchPosition(
|
|
143
168
|
(position) => {
|
|
144
169
|
console.log('Location update:', {
|
|
@@ -417,7 +442,7 @@ const deviceInfo: any = despia.deviceInfo;
|
|
|
417
442
|
|
|
418
443
|
## Integration with Despia
|
|
419
444
|
|
|
420
|
-
Despia operates through a streamlined protocol handler system, allowing you to invoke native features using the global `window.despia` object. This npm package is the JavaScript SDK that makes your web app communicate with Despia's native runtime. The SDK provides:
|
|
445
|
+
Despia operates through a streamlined protocol handler system, allowing you to invoke native features using the global `window.despia` object. This npm package is the JavaScript SDK that makes your web app communicate with Despia's native runtime. The SDK provides:es and sdks
|
|
421
446
|
|
|
422
447
|
- **Command Queuing** - Sequential execution of Despia commands via `window.despia` setter
|
|
423
448
|
- **Variable Watching** - Async monitoring of response variables
|
|
@@ -440,4 +465,4 @@ This streamlined approach triggers Despia's native runtime to handle the native
|
|
|
440
465
|
|
|
441
466
|
## License
|
|
442
467
|
|
|
443
|
-
MIT
|
|
468
|
+
MIT
|