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

No documentation #3

Open
mbouclas opened this issue Nov 6, 2018 · 0 comments
Open

No documentation #3

mbouclas opened this issue Nov 6, 2018 · 0 comments

Comments

@mbouclas
Copy link

mbouclas commented Nov 6, 2018

So, there's no docs on how to use this in NS. I checked out the solution provided on #2 but it doesn't seem to work. The app crashes on this.BeaconDiscover = new BeaconDiscover('API_KEY'); giving the following error.

Error: com.tns.NativeScriptException: Failed to find module: "nativescript-kontaktio", relative to: app/tns_modules/
    com.tns.Module.resolvePathHelper(Module.java:146)
    com.tns.Module.resolvePath(Module.java:55)
    com.tns.Runtime.runModule(Native Method)
    com.tns.Runtime.runModule(Runtime.java:553)
    com.tns.Runtime.run(Runtime.java:545)
    com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
    android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1123)
    android.app.ActivityThread.handleBindApplication(ActivityThread.java:6461)
    android.app.ActivityThread.-wrap2(Unknown Source:0)
    android.app.ActivityThread$H.handleMessage(ActivityThread.java:1969)
    android.os.Handler.dispatchMessage(Handler.java:109)
    android.os.Looper.loop(Looper.java:166)
    android.app.ActivityThread.main(ActivityThread.java:7377)
    java.lang.reflect.Method.invoke(Native Method)
    com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:963)
File: "<unknown>, line: 1, column: 265

Also, not sure if it works for android cause the import import {BeaconDiscover, Beacon} from "nativescript-kontaktio"; points to the export * from './index.ios';

Any help would be most welcomed

@mbouclas mbouclas mentioned this issue Nov 6, 2018
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