Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 15    Views: 77

Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
04/22/16 07:24 AM (8 years ago)

Problem with GCM - Code on Android...

Hi all.. Iam trying to Use the "OneSignal" SDK... Works fine on Emulator and Coneccted Device.. But brings an Error on "Signed APK Build".... How can i disable all the GCM Stuff in the "BT_activity_host.java" from Buzztouch? Or does anybody have an other Solution? Error on Android Studio Compile: https://dl.dropboxusercontent.com/u/20632136/OneSignal.png Thanks 4 Helping me out...
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/22/16 05:33 PM (8 years ago)
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/22/16 11:19 PM (8 years ago)
Hi CMCOFFEE... Thanks, at the moment i am Trying to work with the "Non Hosted" Version and Android Studio ;-) Can you Point me to the Right direction where to change the Code?
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/23/16 01:02 AM (8 years ago)
Are these Files diffrent from the download? Buzztoch Panel <> Self Hosted?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/23/16 02:11 PM (8 years ago)
Yea really you don't need to change anything in non self hosted, it should already work. I actually took the code from non self hosted to help fix self hosted. What problems are you having?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/23/16 02:12 PM (8 years ago)
Oh yea all you need to do is change code in bt_activity_host.java. the fix is in the the files I have I the link
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/25/16 08:41 AM (8 years ago)
Hi CMCOFFEE ... I tryed your Code.. same Problem... On Emulator Reciving Push Messages works (As Before) but when i try to compile an Signed APK i got the Dex Error von above ;-(
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/25/16 09:39 AM (8 years ago)
What have you found when you google the errors?
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/25/16 11:23 AM (8 years ago)
Nothing.... The Guys from "OneSignal" said that it could be the Problem that in the Buzztouch-Code there is an Call for the Push Message System. And so we have two Calls and the Result is the Dex Problem ;-( Next Problem is that the Buzztouchcode works with the gcm.jar taht is Outdated (I think in 2013 by Google)... And the new Call for Push is in the V.3 Google Play Service inkluded.... ;-( I think i switch "back" to Self hosted and Eclipse ;-(
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/25/16 12:23 PM (8 years ago)
Idk but it's works fine on my phone. I dnt remember seeing a jar file either
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
04/25/16 12:26 PM (8 years ago)
Also I just searched Google and found a lot about those errors
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/25/16 12:37 PM (8 years ago)
Maybe my Android Studio is to New... I Try to Switch Back to "Self Hosted" and Eclipse... Just for Testing...
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/26/16 07:36 AM (8 years ago)
SOLVED! Self Hosted > Android Studio 2.0 > OneSignal > Works (With a little Tuning)...
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
04/26/16 08:32 AM (8 years ago)
Can you publish this "little tuning" so that we can "tune" it too?
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/26/16 08:40 AM (8 years ago)
After e few Test with Signet Release of the APK ... Yes of course...
 
Worker73
Android Fan
Profile
Posts: 419
Reg: Feb 06, 2012
Austria, Klagen...
4,490
like
04/26/16 09:11 AM (8 years ago)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.