Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CHLibrarian/28b78f6fbd4f8c898821 to your computer and use it in GitHub Desktop.
Save CHLibrarian/28b78f6fbd4f8c898821 to your computer and use it in GitHub Desktop.
ContextHub Element Services Beacon Delete (Android)
final String id = "B89ECE55-9A3B-4998-AD58-2927F99802B7";
BeaconProxy proxy = new BeaconProxy();
proxy.deleteBeacon(id, new Callback<Object>() {
@Override
public void onSuccess(Object result) {
// If you do not have push properly set up, you need to explicitly call synchronize on ProximityService so it will stop generating events for this device
ProximityService.getInstance().synchronize();
Log.d(TAG, String.format("Successfully deleted beacon id %s", id));
}
@Override
public void onFailure(Exception e) {
Log.d(TAG, e.getMessage());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment