Crosswalk and ngCordova Local Notifications


#1

Unsure whether this is a problem with Ionic, Crosswalk or ngCordova.

When building with the ngCordova plugin installed, a error is returned:


/LocalNotification.java:495: error: cannot find symbol
webView.evaluateJavascript(js, null);
^
symbol: method evaluateJavascript(String,)
location: variable webView of type CordovaWebView
/ug/ug-app/platforms/android/src/de/appplant/cordova/plugin/localnotification/LocalNotification.java:492: error: cannot find symbol
webView.post(new Runnable(){
^
symbol: method post()
location: variable webView of type CordovaWebView
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileArmv7DebugJava’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 44.279 secs


This only happens when the Local Notifications plugin is installed and when using crosswalk.
Without crosswalk it works
Without Local Notification it works.

I am using Ionic Framework Beta 13.


#2

Got exactly the same error … I think it’s a problem with the plugin, but I don’t know how to fix it … :frowning:

EDIT :
found a temporary fix here : https://github.com/katzer/cordova-plugin-local-notifications/issues/426


#3

Any solution?! Any alternative plugin?!


#4

I couldn’t get cordova-plugin-local-notifications to work either (it would silently cause controllers not to load on my iOS device…) so I use an alternative:

Seems to work great.