Hi

By integrating Pushwoosh on android I get the following message in the log: "Tried to get instance of PushManager with no Pushwoosh App ID or Project Id set"

That causes a NullPointerException in the onCreate of my main activity, and app crashes.

I'm sure I followed the instructions listed on the page correctly and I have also ensured that the google cloud messaging api key is correct.

Can you help me please?

Thanks and sorry for my english.

asked 15 Jul '14, 11:44
Herencia%20Del%20Beagle's gravatar image

Herencia Del...
112

Hello,

Please double check your AndroidManifest file. Most probably, you have forgotten to put your AppCode and/or Google Project number.

<meta-data android:name="PW_APPID" android:value="your_app_ID" />
<meta-data android:name="PW_PROJECT_ID" android:value="your_Google_project_number" />
permanent link
answered 18 Jul '14, 09:16
Dmitry%20%20Dyudeev's gravatar image

Dmitry Dyudeev
3.7k7

edited 30 Jul '14, 10:47

Hello again.

That parameters were introduced but in a wrong way.

Due to poor understanding of the documentation (my English is... sad), I had put the data in a wrong place.

Thanks for help.

(22 Jul '14, 19:17) Herencia Del... Herencia%20Del%20Beagle's gravatar image

Could you please specify what you mean by "the data in a wrong place" and how did you change the data to make it work for you?

I have the same problem as you and I believe I have inserted the parameters into my AndroidManifest.xml as required in the tutorial here: http://docs.pushwoosh.com/docs/native-android-sdk

Here is how mine looks:

<meta-data android:name="PW_APPID" android:value="CE926-E152D" />
<meta-data android:name="PW_PROJECT_ID" android:value="A794336915285" />
(06 Jul '16, 10:04) zacrotus zacrotus's gravatar image

Okay, I solved it now. Here is how:

I accidentally placed the meta-data tags outside the application tag. They should go inside the application tag in AndroidManifest.xml, at the very top, like so:

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme" >
    <meta-data android:name="PW_APPID" android:value="CE926-E152D" />
    <meta-data android:name="PW_PROJECT_ID" android:value="A794336915285" />

Hope this helps someone!

(06 Jul '16, 10:14) zacrotus zacrotus'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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×447
×20
×16

question asked: 15 Jul '14, 11:44

question was seen: 1,586 times

last updated: 06 Jul '16, 10:16