njleonzhang / cordova-baidu-yingyan Goto Github PK
View Code? Open in Web Editor NEW百度鹰眼cordova plugin
百度鹰眼cordova plugin
在Wex5论坛和百度鹰眼论坛都看到这个例子,由于最近公司需求,所以我把这个例子直接拿过来用,但是出现了好多问题,请问你是用Wex5的什么版本开发的,还有那个依赖插件cordova-plugin-settings-hook是在哪里下载的?可以的话可以给我你的qq或者微信,能不能教我怎么弄,刚接触这个东西,搞了好久。。
按照教程部署之后,真机编译出现错误,以下:
dyld: Library not loaded: @rpath/BaiduTraceSDK.framework/BaiduTraceSDK
Referenced from: /var/containers/Bundle/Application/FEEC99C6-8F9F-48B2-89AE-8394D809AC22/pluginDemo.app/pluginDemo
Reason: image not found
Message from debugger: Terminated due to signal 6
dyld`dyld_fatal_error:
-> 0x120011088 <+0>: brk #0x3
xcode:Version 7.3.1 (7D1014)
在Xcode8.3,iOS 10.3下重新编译工程出错了
其他插件可以主动请求权限,你这个插件根本不请求。位置权限。
你好,我用xcode8.2打包到真机(ios9.3.5)测试,打开就只是白屏停在那里了,不知是什么原因?在android上打包能正常运行的
当app被用户操作为后台以后,比如最小化、关闭屏幕、主动退出(上划移除或者被清理掉)以后,还能获取位置并上传么?
主要是SDK太老了,在Xcode 8上无法使用,官方做了更新。要继续使用这个插件的话要做些修改。
1、官网下载SDK替换platforms\ios\下的SDK.
2、修改插件里的头文件和源文件,主要参考官网的demo工程中的YYServiceManager.m文件。大概是:
头文件修改delegate为BTKTraceDelegate,去掉BTRACE * _traceInstance;这个。
源文件修改startTrace方法
BTKStartServiceOption *startServiceOption = [[BTKStartServiceOption alloc] initWithEntityName:entityName];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[[BTKAction sharedInstance] startService:startServiceOption delegate:self];
[[BTKAction sharedInstance] startGather:self];
});
我不会IOS开发所以搞得很费力,总算是能正常工作了,写下来方便后面需要的人,还是希望作者更新插件。。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.