-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
起因是我使用natjs调用摄像头会闪退,以及页面无法跳转。而nat-explorer下载的没有问题。我创建的工程如下:
weexpack create xxx
// 安装配置使用最新的weex、babel-stage-0以及没有使用vue-router
cd xxx
npm install
npm install natjs --save
npm install less less-loader pug --save-dev
weexpack platform add android
weexpack plugin add xxx-camear xxx-image xxx-modal在AndroidManifest.xml添加
<activity
android:name="com.weex.app.WXPageActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<action android:name="com.weex.app.protocol.openurl"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="com.taobao.android.intent.category.WEEX"/>
<data android:scheme="http"/>
<data android:scheme="https"/>
<data android:scheme="file"/>
</intent-filter>
</activity>然后把nat-explorer源码内src目录下拷贝过来一份
npm run android
成功安装app,首页也没有问题。问题在于无法点击进去子页面。
- 以及我尝试
nat.toast点击路径,是和nat-explorer一致的。 - 由于是可以点击的,我尝试在主页上直接添加摄像头函数,来自
na-explorer/src/views/camera.vue。这个时候应用闪退。
weex文档实在太少,希望作者解答。
之后,我下载了nat-explorer源码,然后npm install & npm run android。这个是没有问题的。
和下载的app一样。
请问这两个还有什么细节上实现差异吗?
Metadata
Metadata
Assignees
Labels
No labels