juneil / nativescript-kontaktio

NativeScript Plugin for Kontakt io Beacons
2 stars 1 forks source link

No documentation #3

Open mbouclas opened 6 years ago

mbouclas commented 6 years ago

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