Unable to build client application with the version 3.1.1 of the aerogear-cordova-push plugin

Solution Verified - Updated -

Issue

  • Unable to build client application with the version 3.1.1 of the aerogear-cordova-push plugin.

Following an example of the build error.

Note: Recompile with -Xlint:deprecation for details.
/data/data/tmp/1d9de783-e80a-4282-8cea-13fd3f29c189/unzip/files/platforms/android/src/org/jboss/aerogear/cordova/push/NotificationMessageHandler.java:103: error: cannot assign a value to final variable NOTIFICATION_ID
    NOTIFICATION_ID = (int) System.currentTimeMillis();
    ^

Environment

  • Red Hat Mobile Application Platform (RHMAP)
  • aerogear-cordova-push v3.1.1
  • Android

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In