Giter Club home page Giter Club logo

kontakt-beacon-admin-sample-app's People

Contributors

dawidgdanski avatar jakubkontakt avatar michaldrabik avatar mkacikkontakt avatar robertbielas avatar sbobowiec avatar volt-hf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kontakt-beacon-admin-sample-app's Issues

Cannot detect the nearest Beacon

http://stackoverflow.com/questions/30503258/kontakt-beacon-how-to-retrieve-beacon-based-on-accuracy/30505559#30505559

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.

Kontakt cloud

Hello,can anyone tell me whether I can use kontakt cloud services sdks with my own app developed using altbeacon

Code cannot work properly .

Hello, may I know what steps I missed, I have lots of errors after I import the sample coding in android studio.
image
image

Actions Tab Issues

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

Secure beacons issue

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

Delay in Service and Notification

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.

Background Scan Issue

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.

Android Application Sample not working

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.

Beacon tags

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?

Latest Version 4.0.2

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

Get Beacon details onRegionAbandoned

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?

Kontakt IO Beacon - Usage of API Key

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

Missing layouts for some activity

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]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.