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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content