Giter Club home page Giter Club logo

beaconcontrol_android_sample_app's People

Contributors

roman-upnext avatar tomaszjurkowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

beaconcontrol_android_sample_app's Issues

Illegal Major/Minor Values in Sample Beacon

It is possible to enter a sample beacon on the web admin interface with illegal values (i.e. major/minor > 65.535). This makes the app crash on the beacons tab when it tries to add a new region in the SDK (ClientsManager.addNewRegion)

See the method's code below:

private void addNewRegion(BeaconModel bm) {
        Region region = new Region(bm.getUniqueId(), Identifier.parse(bm.getProximityUUID()), Identifier.parse(bm.getProximityMajor().toString()), Identifier.parse(bm.getProximityMinor().toString()));
       ...
}

In my example, neither the ProximityUUID nor the major/minor could not be parsed. Maybe more checks and a message to the user should be added? However, I was able to fix to ProximityUUID by using Identifier.fromUuid(UUID.fromString(bm.getProximityUUID())). Maybe the web interface should also not accept illegal values for major/minor.

Beacon Control App issue

Hi,

I have installed the beacon control sample app and tried to trigger the url actions via application page by assigning a zone with beacon devices, when i open the beacon control app it crashes and shows error as unfortunately app has been stopped.

Kindly suggest me a solution for this.

My Log shows as

06-12 04:42:43.901 19445-19445/io.upnext.beaconcontrol.app E/AndroidRuntime: FATAL EXCEPTION: main Process: io.upnext.beaconcontrol.app, PID: 19445 java.lang.NullPointerException: Attempt to invoke interface method 'boolean java.util.List.removeAll(java.util.Collection)' on a null object reference at io.upnext.beaconcontrol.sdk.backend.service.BeaconServiceHelper.removeUnsupportedRangesFromTriggers(BeaconServiceHelper.java:116) at io.upnext.beaconcontrol.sdk.backend.service.BeaconServiceHelper.handleUnsupportedProtocols(BeaconServiceHelper.java:91) at io.upnext.beaconcontrol.sdk.backend.service.BeaconServiceHelper.access$000(BeaconServiceHelper.java:30) at io.upnext.beaconcontrol.sdk.backend.service.BeaconServiceHelper$1.onSuccess(BeaconServiceHelper.java:65) at io.upnext.beaconcontrol.sdk.backend.service.BeaconServiceHelper$1.onSuccess(BeaconServiceHelper.java:62) at io.upnext.beaconcontrol.sdk.backend.mediator.HttpCallMediator.notifyOnSuccess(HttpCallMediator.java:62) at io.upnext.beaconcontrol.sdk.backend.mediator.HttpCallMediator.access$100(HttpCallMediator.java:23) at io.upnext.beaconcontrol.sdk.backend.mediator.HttpCallMediator$1.onSuccess(HttpCallMediator.java:97) at io.upnext.beaconcontrol.sdk.backend.BeaconControlCallback.onResponse(BeaconControlCallback.java:20) at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:68) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:7303) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

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.