问题标签 [ibeacon]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
296 浏览

objective-c - 通过 setValue forKey 将 NSArray 添加到 CLBeaconRegion 会导致错误

CLBeaconRegion是否可以通过 a将 Array 添加到a setValue forKey

我试图添加它:

但我只收到以下错误:

0 投票
1 回答
798 浏览

macos - 我如何将 iMac (OS x) 变成 ibeacon?

我知道 iOS7 设备充当 iBeacon。我怎样才能将我的 iMac 变成 iBeacon 以进行测试。提前致谢!

0 投票
3 回答
48800 浏览

android - Android 设备可以充当 iBeacon 吗?

Android 设备能否充当 iBeacon 并确定其他 Android 设备何时进入其范围?其他安卓设备是否需要开启蓝牙?

如果客户进入我的商店,但他的设备上没有安装我的应用程序,iBeacon 可以工作,还是必须先安装应用程序?每天都有很多顾客光顾我们的商店,但如果他们没有安装我的应用程序,iBeacon 概念是否有效?

0 投票
1 回答
2124 浏览

android - 低功耗蓝牙 Android - 后台搜索

我想知道如果有人进入或离开信标区域,是否可以在后台检查?

例如,在 iOS 中,您可以使用方法didEnterRegiondidExitRegion从后台发送通知。

是否有任何本地可能性或有人有解决方法?

0 投票
1 回答
243 浏览

objective-c - 向区域添加附加信息。信标

我希望能够在初始化 my 时添加更多信息,例如数组或字符串,CLBeaconRegion以便可以在我的didRangeBeacons-method 中接收它。(不是主要的,也不是次要的)

目前,它看起来像这样:

但我真的想像这样或类似的初始化它:

而且我显然应该能够从该地区获取信息,例如:

当然,不一定非得如此,只要你有一个想法,我“需要”什么。

我试过的

  • 我试图通过一个设置/获取它objc_setAssociatedObject
  • 我试图通过一个setValue forKey
0 投票
1 回答
1920 浏览

uilocalnotification - 本地通知只收到一次(iBeacons)

我想在 iPad 应用程序中使用 iBeacon 功能作为信标发射器,并使用 iphone 应用程序来接收信标。我能够相应地构建这两个应用程序,但现在我遇到了一些奇怪的问题:

iBeacon Transmitter iPad 应用程序充当信标信号的发射器。我实现了一个用于选择我想传输的信标 ID 的操作表。这是代码:

据我所知,传输工作非常好......

我想响应收到的信号 ID 的 iphone 应用程序应在收到 ID 后立即引发本地通知。这在第一次运行时效果很好。我可以选择 ipad 操作表中的 3 个信标中的每一个来在 iphone 上发送此通知。但是,例如,当我重新选择第一个信标时,什么也没有发生。对于应用程序而言,应用程序每次收到信标时都做出响应至关重要。我将iphone代码设置如下:

位置管理器相应地抛出其委托调用,并由我在位置管理器服务中实现。

当我记录委托方法的调用时,我收到以下方案:

1) DidDetermineState 被调用 2) DidEnterRegion 被调用 3) 但之后没有 DidExitRegion 被调用。

我也反复收到此错误:“PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1003 “找不到具有指定主机名的服务器。” UserInfo=0x166875e0 {NSErrorFailingURLStringKey= https://gsp10-ssl.apple.com /use , NSErrorFailingURLKey= https://gsp10-ssl.apple.com/use , NSLocalizedDescription=找不到指定主机名的服务器。, NSUnderlyingError=0x1656a9b0 "找不到指定主机名的服务器。"} "

这看起来很奇怪.. 每次我在 ipad 的操作表中选择信标时,有没有一种方法可以接收本地注释?

有趣的是,当我打开我选择的 Beacon 时,我的 iphone 会时不时地抛出本地笔记,而我在两者之间没有任何改变。突然间,DidExitRegion 被调用,DidEnterRegion 再次被调用......

谢谢你!!

0 投票
0 回答
851 浏览

cordova - 链接器错误 XCode 5 - Phonegap Estimote 插件

我正在使用 Phonegap 3,并且成功设置了我的项目。

我从 phonegap 命令行添加了这个插件 - https://github.com/kdzwinel/phonegap-estimotebeacons 。

这个插件需要我添加在这里找到的 Estimote SDK - https://github.com/Estimote/iOS-SDK

我按照说明添加了我的项目构建阶段

我还在标题搜索路径中添加了一个条目。

当我构建我的项目时,我收到以下错误

ld /Users/manhattanassociates/Library/Developer/Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Products/Debug-iphonesimulator/HelloWorld.app/HelloWorld normal i386 cd /Users/WMOS/phonegap/hello/platforms/ios setenv IPHONEOS_DEPLOYMENT_TARGET 5.0 setenv PATH "/Applications/Xcode 3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode 3.app/Contents/Developer/usr/bin:/usr/bin:/bin: /usr/sbin:/sbin" /Applications/Xcode\ 3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode\ 3.app/Contents/Developer/平台/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0。sdk -L/Users/manhattanassociates/Library/Developer/Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Products/Debug-iphonesimulator -L/Users/WMOS/phonegap/hello/platforms/ios/EstimoteSDK/Headers-F/Users/ manhattanassociates/Library/Developer/Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Products/Debug-iphonesimulator-filelist /Users/manhattanassociates/Library/Developer/Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Intermediates/HelloWorld.build/Debug- iphonesimulator/HelloWorld.build/Objects-normal/i386/HelloWorld。LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load /Users/manhattanassociates/Library/Developer/Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Products/Debug-iphonesimulator /libCordova.a -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=5.0 -framework SystemConfiguration -framework CoreBluetooth -lEstimoteSDK7 -framework AssetsLibrary /Users/manhattanassociates/Library/Developer/ Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Products/Debug-iphonesimulator/libCordova。a -framework CoreGraphics -framework MobileCoreServices -framework CoreLocation -weak_framework ImageIO -Xlinker -dependency_info -Xlinker /Users/manhattanassociates/Library/Developer/Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Intermediates/HelloWorld.build/Debug-iphonesimulator/HelloWorld。 build/Objects-normal/i386/HelloWorld_dependency_info.dat -o /Users/manhattanassociates/Library/Developer/Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Products/Debug-iphonesimulator/HelloWorld.app/HelloWorlddat -o /Users/manhattanassociates/Library/Developer/Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Products/Debug-iphonesimulator/HelloWorld.app/HelloWorlddat -o /Users/manhattanassociates/Library/Developer/Xcode/DerivedData/HelloWorld-bujsvxnxcvwnudceybglzoiagwbz/Build/Products/Debug-iphonesimulator/HelloWorld.app/HelloWorld

ld:未找到 -lEstimoteSDK7 的库 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

关于我做错了什么的任何想法?

0 投票
2 回答
248 浏览

ios - 如何判断我的设备是否看不到信标?

我正在创建一个 iOS 7 应用程序,它将对附近的信标做出反应。但是,我需要考虑拥有 iPhone 4 或任何其他不会检测到信标的设备的用户。如何判断运行我的应用程序的设备是否支持信标?

0 投票
4 回答
10081 浏览

ios - 如何限制信标的广告范围?

是否可以限制信标的范围,以便只有在一定近距离(或接近度)内的设备才能识别并连接到信标?例如,0.5 米区域外的设备不应该看到或连接到信标。我正在使用 iOS 设备作为信标。在 Apple 的API 中, CLBeaconRegionCoreLocation类中有一个名为peripheralDataWithMeasuredPower的方法,它表示:

peripheralDataWithMeasuredPower: 检索可用于将当前设备宣传为信标的数据。

(NSMutableDictionary *)peripheralDataWithMeasuredPower:(NSNumber *)measuredPower

参数:

测量功率:设备的接收信号强度指示器 (RSSI) 值(以分贝为单位)。该值表示从一米外测得的信标强度,并在测距期间使用。指定nil使用设备的默认值。

这可以用来限制信标的范围吗?如果是,我无法理解如何决定为measurePower参数设置的值?他们想表达...value represents the measured strength of the beacon from one meter away..什么?

如果这是一个非常基本的问题,请原谅。我最近开始了 iOS 开发,非常感谢您的帮助。谢谢。

0 投票
3 回答
6064 浏览

ios - 如何将数据发送到变成 iBeacon 的 iphone?

如何将数据发送到充当 iBeacon 的 iPhone?我正在寻找如下过程:

  1. 搜索附近的 iBeacons
  2. 连接到一些 iBeacon
  3. 在设备之间交换数据

有人知道如何将不同的蓝牙功能组合在一起以实现这一点吗?

提前谢谢