iBeacon-Demo
iBeacon-Demo copied to clipboard
Request
Hello Darktt
I would like to thank you for this project, I have been searched a lot until found your project working fine , I hope create a video step by step how to build a new project about beacon finder as your project looking forward for your reply dear .
Best reagards
Hi, I am having trouble to get showing shortcut icon on lock screen. Beacon is displayed, app receives region updates, but no shortcut icon on lock screen. I am using hardware iBeacon. Is "beaconRegion.notifyEntryStateOnDisplay = true" all I need to get shortcut displayed ? Thank you. Peter
Hi petekmet, I'm sorry to seen that issue too late, The iBeacon has UUID and must same as in this project and iBeacon device, You can change UUID with line 21 in AppDelegate.swift
func application(application: UIApplication, willFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool
{
let UUID: NSUUID = iBeaconConfiguration.UUID()
^ You can replace your Beacon UUID there.
let beaconRegion: CLBeaconRegion = CLBeaconRegion(proximityUUID: UUID, identifier: "tw.darktt.beaconDemo")
beaconRegion.notifyEntryStateOnDisplay = true
self.locationManager.delegate = self
self.locationManager.startMonitoringForRegion(beaconRegion)
return true
}
Best reagards
Hi there, Well the issue was just iphone model(!). I was testing on iPhone4s (updated to iOS 9.3) which does not show shortcut icon. Then I switched to iPhone6 and icon was displayed as expected. Peter
On Jul 30, 2016 06:00, "Li Ying-Zhi" [email protected] wrote:
Hi petekmet, I'm sorry to seen that issue too late, The iBeacon has UUID and must same as in this project and iBeacon device, You can change UUID with line 21 in AppDelegate.swift
func application(application: UIApplication, willFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool
{
let UUID: NSUUID = iBeaconConfiguration.UUID() ^ You can replace your Beacon UUID there. let beaconRegion: CLBeaconRegion = CLBeaconRegion(proximityUUID: UUID, identifier: "tw.darktt.beaconDemo") beaconRegion.notifyEntryStateOnDisplay = true self.locationManager.delegate = self self.locationManager.startMonitoringForRegion(beaconRegion) return true}
Best reagards
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Darktt/iBeacon-Demo/issues/1#issuecomment-236339779, or mute the thread https://github.com/notifications/unsubscribe-auth/ADlMBJ2cNDTre2GDtiI0xVQByfdyWSQ6ks5qasxogaJpZM4GN7lu .