Coder Social home page Coder Social logo

indooratlas / cordova-plugin Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 14.0 121.89 MB

IndoorAtlas Apache Cordova plugin

Home Page: https://docs.indooratlas.com/cordova/latest

License: Apache License 2.0

Java 24.91% Objective-C 55.26% JavaScript 19.84%
cordova-plugin

cordova-plugin's People

Contributors

cloudef avatar gitjuba avatar matti-ida avatar mhv1 avatar oseiskar avatar osmaa avatar realhandy avatar seppotomperi avatar simomar avatar stefanoschrs avatar

Stargazers

 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

cordova-plugin's Issues

iOS crash - attempt to insert nil object from objects[2] floorPlanToDictionary

Hi!
I have noticed pretty severe error on iOS (14.3 and 14.4) that makes the plugin non-functional.
It occurs when switching geofences within a floor plan. I am not an iOS dev, but that's what I was able to capture
image

Configuration wise, we have just one floor plan with couple geofences added.

Any help would be highly appreciated as the exception crashes our app entirely.
I tried to review these changes 3012d88#diff-11a0e118bb57c01081d59ef8f4297267c2d38f746ec2e24dcef78f0787c298dd for added geofence support, but I was not able to find the cause.

Thanks!

Tested on the latest plugin version.

Could not find com.android.support:appcompat-v7:27.0.2.

getting this error in my ionic v1 app
my ionic info

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 6.4.0
Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

Cordova Platforms : android 6.0.0
Ionic Framework   : ionic1 1.3.4

System:

Android SDK Tools : 25.2.5
Node              : v6.9.1
npm               : 4.3.0
OS                : Windows 10

iOS - "API secret must not contain white space"

Hello,

I'm using the Cordova SDK Version 3.1.2, when calling IndoorAtlat.initialize("API_KEY");
I get the following Message in the console:

App[9828:18747419] -!- IndoorAtlas SDK :: API secret must not contain white space

I located the line, where the secret is set within the sourcecode (IndoorAtlasLocationService.m) and removed the whitespace:

[self.manager setApiKey:self.apikey andSecret:@""];

this removed the message but now when running it, the following error appears and it crashes:

Assertion failed: (!strcmp(dispatch_queue_get_label(__null), ("com.apple.main-thread"))), function -[IAWebsocketPositioner init], file /Library/jenkins_home/workspace/ios-sdk-master/framework/IAPositioner/IAWebsocketPositioner.mm, line 111.

Everything is working fine on Android.

`destination is not defined` after wayfinding stop action called

I encountered an issue which occurs after I call JS removeWayfindingUpdates().
Basically, the stopWayfinding function expects destination object which is not defined at this point.

  function stopWayfinding() {
    native('removeWayfindingUpdates', [destination.latitude, destination.longitude, destination.floor]);
  }

After analyzing the native method I figured we do not need destination there as removeWayfindingUpdates() does not take any arguments:

    private void removeWayfindingUpdates() {
        getListener(this).removeWayfindingUpdates();
        cordova.getActivity().runOnUiThread(new Runnable() {
            @Override
            public void run() {
              mLocationManager.removeWayfindingUpdates();
            }
        });
    }

Correct me if I am wrong, but I'd go ahead and remove destination reference from there.
Btw. Great plugin!

Plugin add fails with [email protected]

The cordova-ios platforma version 7.0.0 was released and I'm now getting an error with your plugin:

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined

[react-native] How to run at background

I want to watch geofence changes even if the app is in the background. I am using react-native-background-actions library for background actions. When I start the background process, the indoor atlas works until I close the app. After that, I can see numbers provided by forloop (check the image) but there is no data logged for location or geofence.

Screenshot 2023-10-09 at 22 56 18

Could not GET maven-metadata.xml

Hey, today we found this issue related to android repository:
Could not GET 'https://indooratlas-ltd.bintray.com/mvn-public/androidx/core/core/maven-metadata.xml'. Received status code 403 from server: Forbidden

Has something changed recently in regards to that?

IOS Plugin Not compiling

Just noticed that with the master plugin it won't compile on Xcode.
And the issue is that on the "Indoor Atlas Framework" inside Plugins>cordova-plugin-indooratlas>src>ios>IndoorAtlas2.4, if you open it on the finder you will find that you have this sub-menu structure: Versions>2.4.1-66>"Needed files", when I compile it it will give me an error.

Then I moved the files outside of the Versions>2.4.1-66 folder and it compiled correctly.

Let me know if I didn't explained correctly or if you need more info

Unable to build in Xcode

Hi,

I'm not sure if I'm doing anything wrong or missing anything but I noticed these issues when trying to use the plugin. I couldn't find any information about this on the internet so I thought I post my questions here. Hopefully someone could help.

  1. When I add the plugin I got the message below:

cp: no such file or directory: /Users/quannguyen/Documents/hg/winkers/winkersapp/plugins/cordova-plugin-indooratlas/src/ios/IndoorAtlas2.3/IndoorAtlas.framework/Resources

  1. When I tried to build in Xcode, I got this message below:

Failed to load Info.plist from bundle at path /Users/quannguyen/Library/Developer/CoreSimulator/Devices/AD8C22E2-96FC-4D92-9F19-4714FDF44370/data/Library/Caches/com.apple.mobile.installd.staging/temp.vX8ShE/extracted/Payload/Winkers.app/Frameworks/IndoorAtlas.framework

Thanks so much in advance!
Quan

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.