crazy android
Aspiring developer
Profile
Posts: 172
Reg: Oct 24, 2011
Las Vegas, Nv
9,920
01/06/15 02:38 PM (9 years ago)

push notifications for android

how do i go about setting up push notifications on android any videos or tutorial on how???? buzz one is way outdated
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
like
01/06/15 05:18 PM (9 years ago)
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/06/15 05:22 PM (9 years ago)
Im making a doc for parse push for android soon
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/06/15 11:12 PM (9 years ago)
I was just reviewing the PDF file mentioned above, and I don't believe it works for BT v3 projects, because the API key now goes in the AndroidManifest.xml file. But the part about setting up the project at Google is good stuff! Mark
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/07/15 05:13 AM (9 years ago)
Hi all, that guide was written (by me) a long time ago when I was trying to find out how to make the buzztouch push work. In the end I did not not use the buzztouch push in my project, but I would be happy to update the doc if anyone can provide the information on the BT 3.0 changes. Cheers, Alan
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/07/15 02:00 PM (9 years ago)
Someone made apost on how to fix BT push awhile back.I'll post the link when I have a chance.I believe most people don't use it because it won't show long messages.there's a easy fix to that as well,which I'll post also
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/07/15 10:52 PM (9 years ago)
heres the post to fix buzztouch push notifications: http://www.buzztouch.com/forum/thread.php?tid=56643342D49BA08BDEEB1EF and I just posted here on how to make parse work in your android app: https://www.buzztouch.com/forum/thread.php?tid=24B222FDACC36FD7079DE4B
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
01/07/15 11:24 PM (9 years ago)
havent tried it but pretty sure it will work for big view on buzztouch push.In Bt_gcmIntentService.java comment out NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); Notification.Builder builder = new Notification.Builder(bangbangvapors_appDelegate.getContext()); Notification notification = new Notification(); AND RIGHT UNDER THIS: //flag so intent does not start a new activity... notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); PendingIntent intent = PendingIntent.getActivity(context, 0, notificationIntent, 0); notification.flags |= Notification.FLAG_AUTO_CANCEL; ADD THIS: Notification noti = new NotificationCompat.Builder(bangbangvapors_appDelegate.getContext()) .setContentTitle("New mail from " ) .setContentText(message) .setContentIntent(intent). setSmallIcon(R.drawable.icon) /// .setLargeIcon(aBitmap) .setStyle(new NotificationCompat.BigTextStyle() .bigText(message)) .build(); THEN COMMENT OUT THIS: //finish builder... builder.setContentIntent(intent); builder.setSmallIcon(icon); builder.setAutoCancel(false); builder.setContentTitle(title); builder.setContentText(message); //notify... notificationManager.notify(); AND YOU'LL PROBABLY HAVE TO ADD THIS TO YOUR IMPORT STATEMENTS: import android.app.NotificationManager; AND ADD THIS BEFORE CLOSING CURLY BRACE OF THE METHOD: notificationManager.notify(0, n); not sure if it will work but worth a try .ill try maybe tomorrow, Im super tired.laters
 
hasher13
Android Fan
Profile
Posts: 376
Reg: Jul 21, 2012
Wethersfield
8,060
like
02/01/15 08:27 AM (9 years ago)
Has anyone figured out out to push the notification to a specific screen? Would like to push it a page that has the current message along with the previous ones. thank you, Howard
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
03/15/15 08:45 AM (9 years ago)
Parse works flawlessly on new bt android studio package, just by following parse online instructions. No extra steps needed. Just take out one of the receivers in the manifest
 

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.