kontaktio / kontakt-beacon-admin-sample-app Goto Github PK
View Code? Open in Web Editor NEWSample application demonstrating kontakt.io' Android SDK functionalities. The application comprises:
Sample application demonstrating kontakt.io' Android SDK functionalities. The application comprises:
The link at the end is broken.
I'm trying to find the nearest beacon so i'm using the following function:
public void onBeaconsUpdated(final Region region, final List beacons) {
beaconManager = BeaconManager.newInstance(this);
beaconManager.setMonitorPeriod(MonitorPeriod.MINIMAL);
beaconManager.setForceScanConfiguration(ForceScanConfiguration.DEFAULT);
beaconManager.registerMonitoringListener(new BeaconManager.MonitoringListener() {
private BeaconDevice beacon;
@Override
public void onMonitorStart() {
}
@Override
public void onMonitorStop() {}
@Override
public void onBeaconsUpdated(final Region region, final List<BeaconDevice> beacons) {
beacon = beacons.get(0);
if(beacon.getAccuracy() < 4)
{
if(beacon.getMinor() == 1 && beacon.getMinor() != lastBeacon)
{
lastBeacon = beacon.getMinor();
//beaconManager.stopMonitoring();
}
}
}
But with the following method I don't get the nearest Beacon (that should be the one with Minor value 1). Am i doing something wrong or am i missing any configuration?
Thank you.
when trying to read beacon Characteristics it is calling onAuthenticationSuccess but RemoteBluetoothDevice.Characteristics are empty.
Hi
I want to know why beacons in foreground and background scan shows Region abandoned message as both my phone and beacon is place together. This notification shows in NotificationBroadcastInterceptor file. Please help me to make it work. :)
Hi, I am curious to check if beacon pro's accelerometer value is broadcast to gateway? I would like to get accelerometer value from beacon pro without using an Andorid phone scanner.
Hello,can anyone tell me whether I can use kontakt cloud services sdks with my own app developed using altbeacon
Hello Kontakt Team!
I have been looking and trying to use the Kontakt Beacon Admin Sample App found here: https://github.com/kontaktio/kontakt-beacon-admin-sample-app.
However, I have had issues getting actions to occur in the app. As stated in the ReadMe I have inserted my API Key into the code. I have also added an action to my beacons. Yet when I go to the "Actions" tab on the app, nothing happens when I type in my device unique id. I have tried this with the beacon's Proximity UUID, Instance ID, as well as the 4 character code on the back on the beacon, and none of these seem to trigger an action. Are none of these the correct ID that I should be entering?
Any assistance you could provide would be greatly appreciated,
Zane Smith
I am using the sample code provided on Github but I am not able to detect any beacons, Tried various ways but not able to detect any. I am working on stimulated Beacons using "https://play.google.com/store/apps/details?id=net.alea.beaconsimulator&hl=en_IN". I am trying to do POC to fetch distance between beacon and scanner.
Please take a look at this gist:
https://gist.github.com/ArabAgile/34c3dae64f70a78184d2654f38cb4243
I'm using secure beacons scanning as it's described in documentation:
After fetching proximities using
fetchProximities()
I'm getting secure proximities only, which supposed to ignore other beacons (Not my beacons + my beacons but not secures 4.0 firmware), but unfortunately that's not the case:
List<IBeaconRegion> beaconRegions = new ArrayList<>();
for (IProximityUUID proximityUUID : proximityUUIDs) {
UUID realBleProximity = proximityUUID.**getSecureProximity()**;
beaconRegions.add(new BeaconRegion.Builder().setProximity(realBleProximity).build());
}
scanWithRegions(beaconRegions);
It's scanning for ALL beacons, not only secures and mine.
Is that a bug, or my implementation missing something?
Regards
I have Kontakt beacons, and trying to use the code in the documentation and here to scan and display content on finding the beacon, but the problem is that the service takes to much time to scan for beacon and same for notification when beacon appear.
As well after the scan is started and broadcast is build the problem that the Notification Broadcast Handler does not respond until the beacon is discovered by Foreground Broadcast Handler at least once which defeats it's purpose.
So please advise what can be done to allow the Notification Broadcast Handler to start and not wait for the Foreground Broadcast Handler.
We are using https://github.com/kontaktio/kontakt-beacon-admin-sample-app/blob/master/sample-app-module/src/main/java/com/kontakt/sample/service/BackgroundScanService.java Service for beacon detection in background but it is not scanning all the time. It stops scanning itself after some time intervals.
What we need to do is to generate Notification on detection of beacon when app is in background.
Below is the code snippet where we are placing notification code:
private final ScanContext scanContext = new ScanContext.Builder()
.setScanMode(ProximityManager.SCAN_MODE_BALANCED)
.setActivityCheckConfiguration(ActivityCheckConfiguration.DEFAULT)
.setForceScanConfiguration(ForceScanConfiguration.DEFAULT)
.setIBeaconScanContext(new IBeaconScanContext.Builder()
.setEventTypes(EnumSet.of(
EventType.SPACE_ENTERED,
EventType.DEVICE_DISCOVERED,
EventType.SPACE_ABANDONED
))
.setIBeaconFilters(Collections.singleton(new IBeaconFilter() {
@OverRide
public boolean apply(IBeaconAdvertisingPacket iBeaconAdvertisingPacket) {
final UUID proximityUUID = iBeaconAdvertisingPacket.getProximityUUID();
final double distance = iBeaconAdvertisingPacket.getDistance();
//************************************************************************//
//This function is to show Notification on Bar.
generateNotification();
return proximityUUID.equals(KontaktSDK.DEFAULT_KONTAKT_BEACON_PROXIMITY_UUID) && distance <= ACCEPT_DISTANCE;
}
}))
.build())
.build();
Please guide us for any code changes or if there is some issue with SDK code, that it stops scanning after some interval.
we based on https://github.com/kontaktio/kontakt-beacon-admin-sample-app in background/fourgound scan to detect the Eddystone data Format.But everytimes the scan don't start.
I have Kontakt beacons, and trying to use the code in the documentation and here to scan and display content on finding the beacon, but the problem is that the code provided is giving errors.
So please advise which part we can use to scan for beacons.
Changes in most recent Kontakt library make certian samples obsolete.
As an example
KontaktDeviceConnection.ConnectionListener created here
does not match the documentation
Hi,
Can we get the tag of the beacons programmatically which are given in the admin panel so that we can classify them according to the tags?
I have the version 4.0.0, and I try to upgrade to 4.0.2, but my grawdle says that not found this version.
I only can upgrade to 4.0.1
Hi i am referring current version of sample app everything is working fine but i just want to know in background scan can we get details of beacon which got abandoned. I need to monitor a particular beacon from its enter to abandoned. Can anyone please guide me how to do it?
0
down vote
favorite
I have downloaded demo from GitHub
https://github.com/kontaktio/kontakt-beacon-admin-sample-app
Here they have used Server API Key to initialize.
public class App extends Application {
private static final String API_KEY = "Your Api Key here";
@OverRide
public void onCreate() {
super.onCreate();
initializeDependencies();
}
//Initializing Kontakt SDK. Insert your API key to allow all samples to work correctly
private void initializeDependencies() {
KontaktSDK.initialize(API_KEY);
}
}
My question is ,
it is suppose to scan and give only those beacon which are registered to my portal of which Server API key I have placed in above code ?
Currently, I am running the demo with 2 different API key and both the time I am getting 2 of my beacons which are registered with only single API key, my thinking is that second key should not give any beacon in result of scan.
Please clear my doubts. How to use API key to only get those beacons which are registered for that key only?
http://stackoverflow.com/questions/41852784/kontakt-io-beacon-usage-of-api-key
Do you guys know how to push a message between two devices(one act as a scanner and other one act as a transmitter)?
I´m working on test your SDK 2.0 on Android Studio 1.3 and I found that RANGE and MONITOR beacons options and also SYNCABLE CONNECTION option is not showing any data when are selected. I think these is due to missing Activity layouts.
Hope these help to improve it.
Federico Boesche
[email protected]
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.