Hello,

I followed this setup guide: https://www.pushwoosh.com/programming-push-notification/android/android-additional-platforms/unity-integration/ to implement push notifications in my Unity3d game. When build (for Android) and installed it on a phone, the registration to the Pushwoosh application (CClash - 1F2A4-1F4C8) never goes through - neither of the two callbacks is ever called (onRegisteredForPushNotifications, onFailedToRegisteredForPushNotifications). Are the instructions you provided in the guide sufficient to get push notifications working or is there something that I have missed here?

One other thing: I tried to validate the AndroidManifest.xml and received an error: invalid format for PW_PROJECT_ID when having "A" in front of an ID. Without it, everything went through smoothly. What is going on here?

Thanks in advance!

asked 13 May '15, 12:01
Milos%20Rovcanin's gravatar image

Milos Rovcanin
111

There were several manifest files in the project. The issue was resolved by implementing everything in a single AndroidManifest.xml

permanent link
answered 18 May '15, 13:57
Benedict's gravatar image

Benedict
7127

Hey Milos, indeed you should have the "A" prefix in front of your Google Project Number on Unity, please disregard this error of Manifest Validator (the prefix is not used in most of the frameworks).

Also, I can see that you have already contacted or support team, and I am sure they will be able to help you with the issue you encountered. The solution will be posted here as well.

permanent link
answered 13 May '15, 14:33
Benedict's gravatar image

Benedict
7127

I have noticed this in the device console log:

05-15 09:20:46.164: I/System.out(22111): Tried to get instance of PushManager with no Pushwoosh App ID or Project Id set 05-15 09:20:46.164: W/System.err(22111): java.lang.NullPointerException 05-15 09:20:46.164: W/System.err(22111): at com.arellomobile.android.push.PushwooshProxy.<init>(Unknown Source) 05-15 09:20:46.164: W/System.err(22111): at com.arellomobile.android.push.PushwooshProxy.instance(Unknown Source) 05-15 09:20:46.164: W/System.err(22111): at com.unity3d.player.UnityPlayer.nativeRender(Native Method) 05-15 09:20:46.164: W/System.err(22111): at com.unity3d.player.UnityPlayer.a(Unknown Source) 05-15 09:20:46.164: W/System.err(22111): at com.unity3d.player.UnityPlayer$b.run(Unknown Source) 05-15 09:20:46.164: I/System.out(22111): Tried to get instance of PushManager with no Pushwoosh App ID or Project Id set 05-15 09:20:46.250: I/Unity(22111): AndroidJavaException: java.lang.NullPointerException 05-15 09:20:46.250: I/Unity(22111): at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown="">:0 05-15 09:20:46.250: I/Unity(22111): at UnityEngine.AndroidJNISafe.CallVoidMethod (IntPtr obj, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in <filename unknown="">:0 05-15 09:20:46.250: I/Unity(22111): at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in <filename unknown="">:0 05-15 09:20:46.250: I/Unity(22111): at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.Object[] args) [0x00000] in <filename unknown="">:0 05-15 09:20:46.250: I/Unity(22111): at PushNotificationsAndroid.registerForPushNotifications () [0x00000] in <filename unknown="">:0 05-15 09:20:46.250: I/Unity(22111): at PushNotificationsAndroid.Start () [0x00000] in <filename unknown="">:0

My android manifest is set uo according to the guide. What can be wrong here?

permanent link
answered 15 May '15, 09:05
Milos%20Rovcanin's gravatar image

Milos Rovcanin
111

Have you specified Pushwoosh App ID and Google Project Number in your manifest as per our guide? In case you have multiple manifests, please make sure they merge correctly.

(18 May '15, 12:32) Benedict Benedict'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:

×141
×111
×88
×15
×9

question asked: 13 May '15, 12:01

question was seen: 2,964 times

last updated: 18 May '15, 13:57