[DUG] Parse.com IPhone 3

Willie willie at compliant.co.nz
Thu May 21 10:35:25 NZST 2015


Sorry Leigh I don’t know how to do what you want to do outside of the notification services, i.e. using TCP/IP connections.

 

I’m pretty sure for IOS you absolutely have to (is that an oxymoron saying “pretty sure” then “absolutely have to” in the same sentence??) go through the APNs to use the phone’s notification service, it’s all tied up as per the Apple world view. They are pretty strict about that stuff and will reject it from the Apple app store so you won’t be able to distribute your app.  Google are a bit more open about it so you may be able to piggy-back on top of the GCM architecture somehow.

 

 

From: delphi-bounces at listserver.123.net.nz [mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Leigh Wanstead
Sent: Thursday, 21 May 2015 10:07 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Parse.com IPhone 3

 

Hi Willie,

 

Thanks

 

Do you know how to do it myself without apple service? Do I need to setup a tcp server on the iphone/android and let remote server make a tcp connection to iphone/android tcp server? How to solve that iphone/android is in a local network without external ip address?

 

TIA

Leigh

 

On 21 May 2015 at 09:43, Willie <willie at compliant.co.nz <mailto:willie at compliant.co.nz> > wrote:

Umm I think the word “push” is the operative term here, the notification service on the phone is always listening via an IP connection it establishes with the APNs, so it only ever does anything when it receives a notification from the service, no “polling” is happening as far as I can tell.  F

 

rom some Apple documentation ….

 

Each device establishes an accredited and encrypted IP connection with the service and receives notifications over this persistent connection. If a notification for an app arrives when that app is not running, the device alerts the user that the app has data waiting for it.

 

 

 

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

 

 

 

 

From: delphi-bounces at listserver.123.net.nz <mailto:delphi-bounces at listserver.123.net.nz>  [mailto:delphi-bounces at listserver.123.net.nz <mailto:delphi-bounces at listserver.123.net.nz> ] On Behalf Of Leigh Wanstead
Sent: Thursday, 21 May 2015 9:04 a.m.


To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Parse.com IPhone 3

 

Good morning Willie,

 

Thanks for the answer.

 

Quote

You can register your phone application against a push notification server so that it can receive notifications from that server, these appear on your phone in much the same way as email, What’s-App or Update notifications do. 

 

Does that mean the ios app constantly pull from the server to check any new notification just like normal outlook check email server logic? 

 

TIA

Leigh

 

On 20 May 2015 at 17:45, Willie <willie at compliant.co.nz <mailto:willie at compliant.co.nz> > wrote:

Not sure exactly what you’re asking Leigh and how much I understand about it yet but basically ….

 

You can register your phone application against a push notification server so that it can receive notifications from that server, these appear on your phone in much the same way as email, What’s-App or Update notifications do. You use either the Apple Push Notification Service for IOS devices, or for Android devices the Google Cloud Messaging service as the delivery system (don’t know what windows devices do).

 

In my case I’m using PARSE.COM <http://PARSE.COM>  as the push notification server, it’s free and Delphi comes with a ready-made client component (I believe there are Delphi tutorials that show how to create your own servers if you want to go that way).  I created a “server application” on the  parse.com <http://parse.com>  website, this is a pretty straight forward and generic process, and from this I get application keys that my phone app will use to subscribe to my PARSE.COM <http://PARSE.COM>  server app. 

 

I generate notifications for my PARSE server to send out via a website (PHP) – PARSE give you a number of API SDK’s for different programming languages that make this process fairly easy to implement. Each client device that registers against a PARSE.COM <http://PARSE.COM>  server application ends up with a unique InstallationID and DeviceToken for that server app. When you want to send out a notification you can use either of these to target individual phones/tablets or you can target groups (PARSE call these channels).  

 

Once installed and registered, your phone app doesn’t have to be running for the phone to receive notifications for it, they are received into the device’s notification centre, when you view them and click on one of your phone-apps notifications it will automatically open your app.

 

Having written all of that which probably doesn’t answer your question …. There are pretty good tutorials by Sarina on the Embarcadero site about building a phone app (IOS and Android) for both PARSE and Kinvey, she also takes you through the Notification Server setup. I recommend you go through those you’ll get a better understanding. 

 

 

From: delphi-bounces at listserver.123.net.nz <mailto:delphi-bounces at listserver.123.net.nz>  [mailto:delphi-bounces at listserver.123.net.nz <mailto:delphi-bounces at listserver.123.net.nz> ] On Behalf Of Leigh Wanstead
Sent: Wednesday, 20 May 2015 4:29 p.m.


To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Parse.com IPhone 3

 

Can anyone explain to me the design of push logic? I am interested to know how it works?

 

TIA

Leigh

 

On 20 May 2015 at 15:21, Jeremy Coulter <jscoulter at gmail.com <mailto:jscoulter at gmail.com> > wrote:

I will have to check when I get home, but sounds right.

 

On Wed, May 20, 2015 at 3:18 PM, Willie <willie at compliant.co.nz <mailto:willie at compliant.co.nz> > wrote:

I initially installed the 6.4 beta, had issues (can’t remember what exactly sorry Jeremy) so I installed 6.3.1 which seems to run OK against my XE8 development environment.  I see there is a 6.3.2 available now, is that the version you are talking about? 

 

From: delphi-bounces at listserver.123.net.nz <mailto:delphi-bounces at listserver.123.net.nz>  [mailto:delphi-bounces at listserver.123.net.nz <mailto:delphi-bounces at listserver.123.net.nz> ] On Behalf Of Jeremy Coulter
Sent: Wednesday, 20 May 2015 3:05 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Parse.com IPhone 3

 

while we are on the subject of IOS, I recently installed I assume its the latest, XCode and when I try to send an app to the IOS simulator, I just get a blank (black) screen.

Is this the "thing" that Apple broke? Do I need to go back a version of XCode?

Just wondering if anyone knows.....

Jeremy

 

On Wed, May 20, 2015 at 2:32 PM, Jolyon Smith <jsmith at deltics.co.nz <mailto:jsmith at deltics.co.nz> > wrote:

>From the iOS Getting Started Guide on Parse.COM:

Note that we support iOS 6.0 and higher.

The only iPhone 3 model that can be upgraded to iOS 6 is the 3GS.  If your iPhone 3 is some other, older model then it will not support iOS 6 and therefore is not supported by PARSE.COM <http://PARSE.COM>  either.

 

On 20 May 2015 at 14:12, Willie Juson <willie at compliant.co.nz <mailto:willie at compliant.co.nz> > wrote:

Hi, 

 

I’m trying to develop an app that uses push notifications, specifically through the PARSE.COM <http://PARSE.COM>  service. I’m having trouble getting a test IPhone3 to receive push notifications from my website. If I send the notification via the PARSE.COM <http://PARSE.COM>  website (using their “Send a push” function) the phone receives it OK, however the phone doesn’t acknowledge any I send from my website. I am targeting the phone using the devicetoken value as registered against the PARSE.COM <http://PARSE.COM>  service.  It works ok for IPhon4,5 and 6 and an IPad 3.

 

Has anyone had any experience with this?

 

TIA

 

Willie

 

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz <mailto:delphi at listserver.123.net.nz> 
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz <mailto:delphi-request at listserver.123.net.nz>  with Subject: unsubscribe

 


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz <mailto:delphi at listserver.123.net.nz> 
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz <mailto:delphi-request at listserver.123.net.nz>  with Subject: unsubscribe

 


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz <mailto:delphi at listserver.123.net.nz> 
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz <mailto:delphi-request at listserver.123.net.nz>  with Subject: unsubscribe

 


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz <mailto:delphi at listserver.123.net.nz> 
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz <mailto:delphi-request at listserver.123.net.nz>  with Subject: unsubscribe

 


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz <mailto:delphi at listserver.123.net.nz> 
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz <mailto:delphi-request at listserver.123.net.nz>  with Subject: unsubscribe

 


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz <mailto:delphi at listserver.123.net.nz> 
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz <mailto:delphi-request at listserver.123.net.nz>  with Subject: unsubscribe

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20150521/df852c7a/attachment-0001.html 


More information about the Delphi mailing list