plugins icon indicating copy to clipboard operation
plugins copied to clipboard

nativescript-onesignal plugin is failing with Java no class found errors

Open neshonohma opened this issue 2 years ago • 2 comments

I have followed the instruction provided in your documentation to use the plugin but it fails with the following errors: While calling the NSOneSignal.getInstance().init method the error is: Error: java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics;

While calling the NativeOneSignal object methods the error is: Error: java.lang.NoClassDefFoundError: com.onesignal.OneSignal

Is there something that needs to be done besides what's provided in the documentation? https://market.nativescript.org/plugins/@rwigo/nativescript-onesignal/

neshonohma avatar Dec 07 '23 13:12 neshonohma

@neshonohma This plugin does not belong to NativeScript organization. It seems the author left the default github repo url when he/she created the plugin.

CatchABus avatar Dec 07 '23 13:12 CatchABus

@CatchABus No wonder it didn't work, thank you for letting me know. There are a few nativescript plugins but they all are for onesignal 3.x

neshonohma avatar Dec 07 '23 14:12 neshonohma