notnoop / java-apns

Java Apple Push Notification Service Provider
notnoop.github.com/java-apns
BSD 3-Clause "New" or "Revised" License
1.79k stars 657 forks source link

How to check client had received notification from server #272

Open docaohuynh opened 8 years ago

docaohuynh commented 8 years ago

Dear all!

How I check when Iphone is connected internet and received notification. And when server push notification but Iphone have not internet

Best regards Docaohuynh

matzew commented 8 years ago

It's not that simple, as it requires a bit more work, on the client and server side. However, if you are interested, we have a feature like that build in to our AeroGear push server: https://aerogear.org/docs/unifiedpush/ups_userguide/index/#_pushapplication_analytics https://aerogear.org/docs/unifiedpush/ups_userguide/index/#_pushapplication_activity

On Thu, Dec 3, 2015 at 11:15 AM, docaohuynh notifications@github.com wrote:

Dear all!

How I check when Iphone is connected internet and received notification. And when server push notification but Iphone have not internet

Best regards Docaohuynh

— Reply to this email directly or view it on GitHub https://github.com/notnoop/java-apns/issues/272.

Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf

docaohuynh commented 8 years ago

@matzew Thank for your reply! When I user Facebook messenger or Viber to call 2 device IOS. When device A call device B, Device B have internet connection and received notification from APNS and device A know that. When device B have not network connection device A alse know too. You know what technique facebook use to check this?

Best regards Docaohuynh

matzew commented 8 years ago

well, similar is whatsapp - they tell you if message is on device, because their app / sdk sees the incoming push. You have to implement something like that - we try to address that with our own SDKs for push (and of course our server)

On Fri, Dec 4, 2015 at 9:05 AM, docaohuynh notifications@github.com wrote:

@matzew https://github.com/matzew Thank for your reply! When I user Facebook messenger or Viber to call 2 device IOS. When device A call device B, Device B have internet connection and received notification from APNS and device A know that. When device B have not network connection device A alse know too. You know what technique facebook use to check this?

Best regards Docaohuynh

— Reply to this email directly or view it on GitHub https://github.com/notnoop/java-apns/issues/272#issuecomment-161904275.

Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf

docaohuynh commented 8 years ago

@matzew If Android app I can implement this but IOS app when I close app (kill app) the App can't listen or implement anything.