Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advertising the beacon is not working. #283

Closed
ManjuSagar opened this issue Feb 20, 2017 · 6 comments
Closed

Advertising the beacon is not working. #283

ManjuSagar opened this issue Feb 20, 2017 · 6 comments
Assignees
Labels

Comments

@ManjuSagar
Copy link

ManjuSagar commented Feb 20, 2017

While advertising the virtual beacon in ios 10, success callback is executing but there is no virtual beacon recognised.

@NadirBertolasi
Copy link

I have the same problem on iOS 10 for advertising functions. Scan is working. The issue was found on iPhone 5S with iOS 10.3.1

@Atulvermaon18
Copy link

For advertising function what is UUID, is it going to generate by itself ? From my understanding if phone will act as beacon do I have to provide UUID of it is self generator.

@andersborgabiro
Copy link

@Atulvermaon18 You must provide explicit UUID, Major ID and Minor ID.

But I also have issues with advertising: #310

@brandon-objectstudio
Copy link

I am running in to a similar issue - I set up equivalent to the examples, no JS problems, and no exceptions in the objective C code. All success callbacks are executing but no beacon looks to be present and the delegate events are not firing.

What I did discover is that at this check, I am seeing that the peripheral manager is not powered on:

if (_peripheralManager.state == CBPeripheralManagerStatePoweredOn) {
[_peripheralManager startAdvertising:_advertisedPeripheralData];
} else {
[[self getLogger] debugLog:@"Advertising is accepted, but won't start until peripheral manager is powered on."];
}

What would one need to do to turn it on? Or is this an indicator of something else being problematic?

I am on iOS 10. I haven enabled bluetooth and have granted the permission using the cordova.plugins.locationManager.requestAlwaysAuthorization() call.

Also, why would I not see the debug log output on the cordova side? I had to have xCode attached to debug this?

@petermetz
Copy link
Owner

@brandon-applied

What would one need to do to turn it on? Or is this an indicator of something else being problematic?

It's up to iOS to turn it on, your application does not have control over that unfortunately. Please check the referenced issue and the bottom comments for some more guidance.

Also, why would I not see the debug log output on the cordova side? I had to have xCode attached to debug this?

There's a method call that you need to issue to enable the debug logs on the native side. By default they are turned off because it's bad practice to spam the stdout of the OS in production (e.g. when you app goes to the stores). The method call should be documented in the README file, let me know if you can't find it.

@petermetz
Copy link
Owner

@ManjuSagar Please check the bottom comments on #310 and see if that helps. Let's continue the discussion there.

@petermetz petermetz self-assigned this Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants