FYI, using withNoErrorDetection() it works on GAE out of the box. But it would probably be nice to have that feature working.
Jeff On Mon, Apr 15, 2013 at 4:51 PM, Rafael <[email protected]> wrote: > Jeff, > > I use the same library, but I had to change their source code, specially > the part where it create threads. It should use appengine threadfactory > instead. > > Here's my issue comment: https://github.com/notnoop/java-apns/issues/101 > > I will submit a patch soon, but I'm tight on schedule. > > I have talked too soon about sockets being working nice. Yesterday I have > reached max quota on the sockets creation. I don't see why there's a quota > at all. It means that I can't send APNS pushes as much as other HTTP > integrated api's. > > thanks > rafa > > > On Mon, Apr 15, 2013 at 8:25 AM, Jeff Schnitzer <[email protected]>wrote: > >> Can't help you with python, but this bit of Java code works great for me >> (called via the task queue). It uses this library: >> >> https://github.com/notnoop/java-apns >> >> Code: >> >> @Singleton >> public class PushService { >> >> /** */ >> ApnsService service = APNS.newService() >> .withCert(this.getClass().getResourceAsStream(CERT), CERT_PW) >> .withProductionDestination() >> .withNoErrorDetection() >> .build(); >> >> /** >> * @param sound can be null >> * @param badge can be null >> */ >> synchronized public void push(String token, String message, String sound, >> Integer badge) { >> PayloadBuilder bld = APNS.newPayload().alertBody(message); >> >> if (sound != null) >> bld = bld.sound(sound); >> >> if (badge != null) >> bld = bld.badge(badge); >> >> String payload = bld.build(); >> >> service.push(token, payload); >> } >> } >> >> >> >> On Sun, Apr 14, 2013 at 7:58 PM, mike <[email protected]> wrote: >> >>> Do you mind to share a bit on how you integrated APN ? >>> >>> Did you write the APN code yourself or use existing code? >>> I need to implement APN in Python as well. >>> I was using: https://github.com/samuraisam/pyapns >>> >>> Now I am thinking modify the code here: >>> https://github.com/simonwhitaker/PyAPNs >>> >>> >>> >>> On Friday, April 12, 2013 9:50:23 PM UTC-4, Rafael Sanches wrote: >>> >>>> Thanks for this guys. >>>> >>>> We have integrated apple's push system and it seems to work great! >>>> >>>> Eliminating an external server reduces our app development complexity >>>> by a lot. >>>> >>>> thanks! >>>> rafa >>>> >>>> >>>> On Fri, Apr 12, 2013 at 1:32 PM, Vinny P <[email protected]> wrote: >>>> >>>>> Richmond & AppEngine team, >>>>> >>>>> If you're ever in the Chicago area, look me up and I'll buy you a >>>>> beer. I've been waiting for outbound sockets for years! >>>>> >>>>> A quick issue though: Can you make it explicitly clear in the Sockets >>>>> API Overview https://developers.**google.com/appengine/docs/** >>>>> java/sockets/overview<https://developers.google.com/appengine/docs/java/sockets/overview> >>>>> that >>>>> developers have to include the JavaMail JARs if they need to access >>>>> IMAP/POP3/SMTP via Javamail? I say this because https://developers.** >>>>> google.com/appengine/docs/**java/mail/overview#Sending_** >>>>> Mail_with_the_JavaMail_API<https://developers.google.com/appengine/docs/java/mail/overview#Sending_Mail_with_the_JavaMail_API> >>>>> **states "*Do not add Oracle®'s JavaMail JARs to your app.*" I >>>>> realize that's an entirely different section, but it makes people believe >>>>> that AppEngine already packages the full JavaMail library, when truly it >>>>> doesn't repackage the Provider classes. It would also be fine if you >>>>> skipped the notice and included the Provider libraries within the >>>>> AppEngine >>>>> SDK. >>>>> >>>>> Thanks >>>>> ----------------- >>>>> -Vinny P >>>>> Technology & Media Advisor >>>>> Chicago, IL >>>>> >>>>> @GOV on AppDotNet: https://alpha.app.net/gov >>>>> >>>>> >>>>> On Tuesday, April 9, 2013 5:44:38 PM UTC-5, Richmond Manzana wrote: >>>>>> >>>>>> Hi everyone, >>>>>> >>>>>> We're happy to announce that we have released the 1.7.7 SDK. >>>>>> >>>>>> This release includes new features such as updates to the Maven >>>>>> Plugin, and Outbound Sockets. We're also happy to announce that we have >>>>>> removed the weekly $2.10 minimum spend for billing enabled apps :) >>>>>> >>>>>> For more details, please read our blog post and release notes. >>>>>> >>>>>> Announcement: >>>>>> http://googleappengine.**blogspo**t.com/2013/04/app-**engine-177-** >>>>>> released.html<http://googleappengine.blogspot.com/2013/04/app-engine-177-released.html> >>>>>> >>>>>> Releae notes for Python: >>>>>> http://code.google.com/p/**googl**eappengine/wiki/**SdkReleaseNote**s<http://code.google.com/p/googleappengine/wiki/SdkReleaseNotes> >>>>>> >>>>>> Release notes for Java: >>>>>> http://code.google.com/p/**googl**eappengine/wiki/**SdkForJavaRele** >>>>>> aseNotes<http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes> >>>>>> >>>>>> Release notes for Go: >>>>>> https://code.google.com/p/**goog**leappengine/wiki/**SdkForGoRelea** >>>>>> seNotes<https://code.google.com/p/googleappengine/wiki/SdkForGoReleaseNotes> >>>>>> >>>>>> Cheers! >>>>>> >>>>>> Richmond Manzana >>>>>> Technical Program Manager >>>>>> Google App Engine >>>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Google App Engine" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to google-appengi...@**googlegroups.com. >>>>> To post to this group, send email to google-a...@googlegroups.**com. >>>>> >>>>> Visit this group at http://groups.google.com/** >>>>> group/google-appengine?hl=en<http://groups.google.com/group/google-appengine?hl=en> >>>>> . >>>>> For more options, visit >>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>>>> . >>>>> >>>>> >>>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google App Engine" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at >>> http://groups.google.com/group/google-appengine?hl=en. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/google-appengine?hl=en >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-appengine?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
