Unity Android Push Notifications with App42 SDK not working

0 votes
Hi,
 
I want to send and receive notifications in my Unity Android Game.
 
I tried the sample (PushNotificationTest) from https://github.com/shephertz/App42_Unity3D_SDK , but it isn't working.
I can create an app channel and register the device, but when I send a push notification from the AppHQ Console, I receive nothing on the actual device.
 
I also tried the sample from https://github.com/shephertz/App42_Push_Sample_Unity which worked when I tried it in a new Unity Project.
 
But when I tried to integrate it to my current project I got errors of multiple defined Types, because I imported both SDKs:
 "The imported type `com.shephertz.app42.paas.sdk.csharp.App42CallBack' is defined multiple times"
 
Both samples are using different APIs (Service API vs App42API). 
 
Which one should I use if I want to also use the Storage Service?

 

asked Jun 30, 2015 in App42 Cloud API-BaaS by Luro (16 points)

1 Answer

+2 votes
 
Best answer

Hi,

This may be a case when you are using two App42_Unity_SDK in your application.Actually our sample Unity Package also conatins the App42_Unity_SDK as well. You can remove one of them.

If you want to integrate in your application than import UnityPackage that is available in sample project. You need not to add additional SDK and you can easily use Storage Service.

Let me know if it helps.

Thanks

Vishnu Garg

answered Jul 1, 2015 by Vishnu Garg (674 points)
selected Jul 1, 2015 by Luro
I deleted everything from Pushsample and then only copied the PushSample C# Classes to my project and it is working now. Thanks.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...