시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드를 포함한 설치 지시를 복사합니다.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-zebra-datawedge`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/zebra-datawedge/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
AI-Assisted Setup을 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 Capgo 스킬을 추가하려면 다음 명령어를 사용하세요:
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins그런 다음 다음 명령어를 사용하세요:
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-zebra-datawedge` plugin in my project.만약 Manual Setup을 선호한다면, 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:
-
플러그인을 설치하세요
터미널 창 bun add @capgo/capacitor-zebra-datawedge -
자연 플랫폼을 동기화하세요
터미널 창 bunx cap sync android -
장치에서 DataWedge를 구성하세요
- 앱 패키지와 연관된 Zebra DataWedge 프로필을 생성하거나 선택하세요.
- 활성화
Intent Output. - 설정
Intent delivery로Broadcast Intent. - 액션을 선택하세요
app.capgo.zebra.SCAN.
-
Android 동작을 검토하세요
- Capgo 스타일 가이드를 읽으세요 Android 참고 사항 제작 단계에서 소프트 트리거를 활성화하기 전에
기본 설정
기본 설정import { DataWedgeConfigMode, DataWedgePlugin, ZebraConfiguration, ZebraDataWedge, ZebraRuntime,} from '@capgo/capacitor-zebra-datawedge';
const intentAction = 'app.capgo.zebra.SCAN';
await ZebraConfiguration.setConfig({ profileName: 'CapgoZebraProfile', profileEnabled: true, configMode: DataWedgeConfigMode.CREATE_IF_NOT_EXIST, appList: [ { packageName: 'com.example.app', activityList: ['*'], }, ], pluginConfigs: [ { pluginName: DataWedgePlugin.BARCODE, resetConfig: true, paramList: { scanner_selection: 'auto', scanner_input_enabled: 'true', }, }, { pluginName: DataWedgePlugin.INTENT, resetConfig: true, paramList: { intent_output_enabled: 'true', intent_action: intentAction, intent_delivery: 2, }, }, ],});
await ZebraDataWedge.addListener('scan', (result) => { console.log('Scanned', result.data, result.labelType);});
const result = await ZebraRuntime.softScanTrigger(intentAction);console.log(result.data);메인 런타임 그룹
Section titled “Main runtime groups”ZebraConfiguration프로파일과 비활성 앱 설정을 관리합니다.ZebraNotification스캐너 상태 및 프로파일 Switch와 같은 DataWedge 알림 방송에 등록합니다.ZebraQuery활성 프로파일, 연관된 앱, 스캐너 상태, 스캐너 목록 및 버전 정보를 읽습니다.ZebraRuntimeDataWedge를 활성화/비활성화하고 스캐너를 Switch하고 스캔을 트리거합니다.
Platform scope
Section titled “Platform scope”- Android: Zebra 장치에 DataWedge가 설치된 경우 완전히 지원됩니다.
- iOS: DataWedge는 Zebra Android 전용이므로 사용할 수 없습니다.
- Web: API shape parity 이상에서는 사용할 수 없습니다.
Getting Started에서 계속하세요.
Section titled “Keep going from Getting Started”Capgo를 사용 중이라면 시작하기 Capgo를 사용하여 네이티브 플러그인 작업을 계획하고 연결하려면 Capgo를 사용하여 네이티브 @capgo/capacitor-zebra-datawedge Capgo를 사용하여 네이티브 @capgo/capacitor-zebra-datawedge Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capgo 플러그인 @Capacitor @Capgo Capgo 플러그인 @Capacitor @Capgo 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트 이오닉 엔터프라이즈 플러그인 대체 Ionic Enterprise 플러그인 대체 제품 워크플로우에 대한 것입니다.