Trying to integrate the Adobe air native extension I added the PW_PROJECT_ID meta data with the project number from Google.

When I ran my app and watch logcat, I see the following exception:

Key PW_PROJECT_ID expected String but value was a java.lang.Integer.  The default value <null> was returned. 
Attempt to cast generated internal exception: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at android.os.Bundle.getString( 
at com.pushwoosh.nativeExtensions.PushWoosh.PushWooshNotificationRegister(Unknown Source)

My project number is an integer and it seems this creates a problem.

asked 08 Apr '14, 10:27
rankorn's gravatar image


You should put an "A" before your Google project number, like this:

<meta-data android:name="PW_PROJECT_ID" android:value="A___________"/>

permanent link
answered 08 Apr '14, 10:59
Nikolay%20Semenov's gravatar image

Nikolay Semenov

Thanks! this works. Not to clear from the docs though..

permanent link
answered 08 Apr '14, 12:32
rankorn's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 08 Apr '14, 10:27

question was seen: 1,110 times

last updated: 08 Apr '14, 12:32