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

using thru Ionic-Native with Capacitor on android , Uncaught (in promise) TypeError: e.beacon.stopRangingBeaconsInRegion is not a function #461

Closed
sdetweil opened this issue Jun 22, 2021 · 1 comment

Comments

@sdetweil
Copy link

trying to stop ranging

i have checked the names from my lib thru ionic to you and they all match the string that is not found
I have 3.8.1 installed.

my library

 stopMonitoringForDevicesInRegion(DeviceHandle){
      DeviceHandle.beacon.stopRangingBeaconsInRegion(DeviceHandle.beacon).then(()=>{
        console.log("stopped listening for specific device")
      })
    },

ionic native says

 IBeaconOriginal.prototype.stopRangingBeaconsInRegion = function (region) { return cordova(this, "stopRangingBeaconsInRegion", { "otherPromise": true }, arguments); };

plugin location manager says

LocationManager.prototype.stopRangingBeaconsInRegion = function(region) {

android location manager .java says

   } else if (action.equals("stopRangingBeaconsInRegion")) {
            stopRangingBeaconsInRegion(args.optJSONObject(0), callbackContext);
@sdetweil
Copy link
Author

doah,, calling on the beacon not the IBeacon class.. sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant