Re: handling push notifications

2014-10-22 Thread Mike Kerner
Correct, if you open the app from the notification center in 7 or 8 you get
the payload.  However, if you just open the app from the springboard, you
do not.

On Fri, Oct 17, 2014 at 5:42 PM, Terry Judd terry.j...@unimelb.edu.au
wrote:

 OK, it seems like you do get the payload when opening the app from the
 notification centre on iOS8 but not iOS6. I’m not sure about iOS7 because
 I haven’t got another device that I can test it on. Does anyone know?

 Terry...

 On 17/10/2014 12:31 pm, Terry Judd terry.j...@unimelb.edu.au wrote:

 That¹s disappointing. Just to get this straight, the only time I get the
 payload is if the app is open - either when the notification arrives or if
 I select it from the Œlist¹ available when swiping down from the top of
 the screen. If the app isn¹t open then no payload via any method.
 
 Terry...
 
 On 17/10/2014 11:51 am, Mike Kerner mikeker...@roadrunner.com wrote:
 
 you don't.  There are several open bug reports on push, and that's one of
 them.  If the app isn't running and the user opens it via the
 springboard,
 no payload.  If they open it via the notification center, payload.
 
 On Thu, Oct 16, 2014 at 7:02 PM, Terry Judd terry.j...@unimelb.edu.au
 wrote:
 
  Just starting with push notifications and have managed to get a simple
  example working using the livecode example code and AWS¹s SNS service.
 So
  far so good!
 
  Now, in the livecode example it an Œalert¹ and a Œpayload¹ are sent.
 The
  payload is received if the app is open and the alert is displayed if it
  isn¹t. How do you capture the payload if the app isn¹t open ­ for
 example
  if you wanted to display it when the user taps the notification alert?
 
  TerryŠ
 
  Dr Terry Judd
  http://scholar.google.com.au/citations?user=XC5s6wwJhl=en
  Senior Lecturer in Medical Education
  Medical Education
 Unithttp://medicine.unimelb.edu.au/medical-education
  The University of Melbourne
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
  subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 
 --
 On the first day, God created the heavens and the Earth
 On the second day, God created the oceans.
 On the third day, God put the animals on hold for a few hours,
and did a little diving.
 And God said, This is good.
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is good.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: handling push notifications

2014-10-17 Thread Terry Judd
OK, it seems like you do get the payload when opening the app from the
notification centre on iOS8 but not iOS6. I’m not sure about iOS7 because
I haven’t got another device that I can test it on. Does anyone know?

Terry...

On 17/10/2014 12:31 pm, Terry Judd terry.j...@unimelb.edu.au wrote:

That¹s disappointing. Just to get this straight, the only time I get the
payload is if the app is open - either when the notification arrives or if
I select it from the Œlist¹ available when swiping down from the top of
the screen. If the app isn¹t open then no payload via any method.

Terry...

On 17/10/2014 11:51 am, Mike Kerner mikeker...@roadrunner.com wrote:

you don't.  There are several open bug reports on push, and that's one of
them.  If the app isn't running and the user opens it via the
springboard,
no payload.  If they open it via the notification center, payload.

On Thu, Oct 16, 2014 at 7:02 PM, Terry Judd terry.j...@unimelb.edu.au
wrote:

 Just starting with push notifications and have managed to get a simple
 example working using the livecode example code and AWS¹s SNS service.
So
 far so good!

 Now, in the livecode example it an Œalert¹ and a Œpayload¹ are sent.
The
 payload is received if the app is open and the alert is displayed if it
 isn¹t. How do you capture the payload if the app isn¹t open ­ for
example
 if you wanted to display it when the user taps the notification alert?

 TerryŠ

 Dr Terry Judd
 http://scholar.google.com.au/citations?user=XC5s6wwJhl=en
 Senior Lecturer in Medical Education
 Medical Education
Unithttp://medicine.unimelb.edu.au/medical-education
 The University of Melbourne
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is good.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

handling push notifications

2014-10-16 Thread Terry Judd
Just starting with push notifications and have managed to get a simple example 
working using the livecode example code and AWS’s SNS service. So far so good!

Now, in the livecode example it an ‘alert’ and a ‘payload’ are sent. The 
payload is received if the app is open and the alert is displayed if it isn’t. 
How do you capture the payload if the app isn’t open – for example if you 
wanted to display it when the user taps the notification alert?

Terry…

Dr Terry Juddhttp://scholar.google.com.au/citations?user=XC5s6wwJhl=en
Senior Lecturer in Medical Education
Medical Education Unithttp://medicine.unimelb.edu.au/medical-education
The University of Melbourne
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: handling push notifications

2014-10-16 Thread Mike Kerner
you don't.  There are several open bug reports on push, and that's one of
them.  If the app isn't running and the user opens it via the springboard,
no payload.  If they open it via the notification center, payload.

On Thu, Oct 16, 2014 at 7:02 PM, Terry Judd terry.j...@unimelb.edu.au
wrote:

 Just starting with push notifications and have managed to get a simple
 example working using the livecode example code and AWS’s SNS service. So
 far so good!

 Now, in the livecode example it an ‘alert’ and a ‘payload’ are sent. The
 payload is received if the app is open and the alert is displayed if it
 isn’t. How do you capture the payload if the app isn’t open – for example
 if you wanted to display it when the user taps the notification alert?

 Terry…

 Dr Terry Judd
 http://scholar.google.com.au/citations?user=XC5s6wwJhl=en
 Senior Lecturer in Medical Education
 Medical Education Unithttp://medicine.unimelb.edu.au/medical-education
 The University of Melbourne
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is good.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: handling push notifications

2014-10-16 Thread Terry Judd
That¹s disappointing. Just to get this straight, the only time I get the
payload is if the app is open - either when the notification arrives or if
I select it from the Œlist¹ available when swiping down from the top of
the screen. If the app isn¹t open then no payload via any method.

Terry...

On 17/10/2014 11:51 am, Mike Kerner mikeker...@roadrunner.com wrote:

you don't.  There are several open bug reports on push, and that's one of
them.  If the app isn't running and the user opens it via the springboard,
no payload.  If they open it via the notification center, payload.

On Thu, Oct 16, 2014 at 7:02 PM, Terry Judd terry.j...@unimelb.edu.au
wrote:

 Just starting with push notifications and have managed to get a simple
 example working using the livecode example code and AWS¹s SNS service.
So
 far so good!

 Now, in the livecode example it an Œalert¹ and a Œpayload¹ are sent. The
 payload is received if the app is open and the alert is displayed if it
 isn¹t. How do you capture the payload if the app isn¹t open ­ for
example
 if you wanted to display it when the user taps the notification alert?

 TerryŠ

 Dr Terry Judd
 http://scholar.google.com.au/citations?user=XC5s6wwJhl=en
 Senior Lecturer in Medical Education
 Medical Education Unithttp://medicine.unimelb.edu.au/medical-education
 The University of Melbourne
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is good.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: handling push notifications

2014-10-16 Thread Gerry
Terry wrote:

 Thats disappointing

Really? I'm just resigned to the fact that LC doesn't allow us to develop 
modern iOS apps that have the same capabilities (in terms of background 
operations) as xCode-developed apps. I've stopped trying and I've stopped being 
disappointed about it.

What I'd LOVE is a clear statement from RunRev about their intentions in this 
area - will they ever support background operations? (And don't tell me to just 
use the .plist hack - the problem is much broader than the app not quitting on 
suspend).

Gerry
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: handling push notifications

2014-10-16 Thread Mike Kerner
Try it.  That's my observation.  So, what I do, instead, is instead of
sending the payload (which has to be short, anyhow), is have the app
recognize that it's gotten a push notification, then hit my server to find
out why.  The message you send is for the user, anyway.  The payload has to
be small, unfortunately, so either you have to send many messages to get
the entire payload (and Apple specifically states that they do not
guarantee delivery or the order of delivery), or you have to hit your
server, anyway.

On Thu, Oct 16, 2014 at 9:44 PM, Gerry gerry.or...@gmail.com wrote:

 Terry wrote:

  Thats disappointing

 Really? I'm just resigned to the fact that LC doesn't allow us to develop
 modern iOS apps that have the same capabilities (in terms of background
 operations) as xCode-developed apps. I've stopped trying and I've stopped
 being disappointed about it.

 What I'd LOVE is a clear statement from RunRev about their intentions in
 this area - will they ever support background operations? (And don't tell
 me to just use the .plist hack - the problem is much broader than the app
 not quitting on suspend).

 Gerry
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, This is good.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: handling push notifications

2014-10-16 Thread Terry Judd
Thanks Mike - makes sense for the app to check in with the server when it 
starts up so I guess I'll go down that route.

Terry...

Sent from my iPhone

On 17/10/2014, at 1:12 PM, Mike Kerner mikeker...@roadrunner.com wrote:

 Try it.  That's my observation.  So, what I do, instead, is instead of
 sending the payload (which has to be short, anyhow), is have the app
 recognize that it's gotten a push notification, then hit my server to find
 out why.  The message you send is for the user, anyway.  The payload has to
 be small, unfortunately, so either you have to send many messages to get
 the entire payload (and Apple specifically states that they do not
 guarantee delivery or the order of delivery), or you have to hit your
 server, anyway.
 
 On Thu, Oct 16, 2014 at 9:44 PM, Gerry gerry.or...@gmail.com wrote:
 
 Terry wrote:
 
 Thats disappointing
 
 Really? I'm just resigned to the fact that LC doesn't allow us to develop
 modern iOS apps that have the same capabilities (in terms of background
 operations) as xCode-developed apps. I've stopped trying and I've stopped
 being disappointed about it.
 
 What I'd LOVE is a clear statement from RunRev about their intentions in
 this area - will they ever support background operations? (And don't tell
 me to just use the .plist hack - the problem is much broader than the app
 not quitting on suspend).
 
 Gerry
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 -- 
 On the first day, God created the heavens and the Earth
 On the second day, God created the oceans.
 On the third day, God put the animals on hold for a few hours,
   and did a little diving.
 And God said, This is good.
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode