iBeacon-Demo icon indicating copy to clipboard operation
iBeacon-Demo copied to clipboard

Request

Open ssam2000 opened this issue 10 years ago • 3 comments
trafficstars

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

ssam2000 avatar Oct 13 '15 14:10 ssam2000

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

petekmet avatar Jan 27 '16 19:01 petekmet

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

Darktt avatar Jul 30 '16 04:07 Darktt

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 .

petekmet avatar Jul 30 '16 05:07 petekmet