Re: iOS notification app goes into background doesn't seem to work

2020-11-26 Thread Graham Samuel via use-livecode
Hi Mark - glad you got an explanation. I am still getting some anomalies in these notifications, and more importantly from my point of view I’m seeing problems with receiving sensor messages when the app goes into the background. Elanor thinks there is a bug there (tho so far unconfirmed -

Re: iOS notification app goes into background doesn't seem to work

2020-11-24 Thread Mark Smith via use-livecode
Hi Graham, figured it out. If I replace the app, and while developing I do that pretty frequently, the first “WillBecomeActive” does not get detected because the app has not yet registered for notifications. So over 48 hours I saw 3 such events and while I did not record the times I installed,

Re: iOS notification app goes into background doesn't seem to work

2020-11-24 Thread Mark Smith via use-livecode
Thanks Graham, Nope, just checked and my quotes are not curly. Over a 48 hour period of testing, with multiple startups and shutdowns (33 in total, these were mostly in/out of background not actual exits and restarts) I only saw 3 instances of a double shutdown notification

Re: iOS notification app goes into background doesn't seem to work

2020-11-24 Thread Graham Samuel via use-livecode
An very timely and helpful update from Elanor at the mother ship. My problems with mergNotify were there because the string representing the specific notification “UIApplicationWillResignActiveNotification” was in curly quotes! I literally didn’t see this, and the script editor didn’t report an

Re: iOS notification app goes into background doesn't seem to work

2020-11-23 Thread Graham Samuel via use-livecode
Thanks Mark Well, it does seem to be a bug, but is it in iOS or LC? It is weird that you get inconsistent results. Mine are more consistent, but still wrong. I plan to write to the mother ship and ask their opinion. I am also getting perhaps related inconsistencies in the use of

Re: iOS notification app goes into background doesn't seem to work

2020-11-22 Thread Mark Smith via use-livecode
Hi Graham, So, apparently not 100% accurate but here are the results of some late hour testing yesterday (I was also interested in evaluating something I needed to occur around the time the date changed, hence the late hour testing.). But as you can see, I had 3 ResignActiveNotifications

Re: iOS notification app goes into background doesn't seem to work

2020-11-21 Thread Mark Smith via use-livecode
Graham, I think there might be a problem. I just re-enabled this code in one of my applications and the only thing I am seeing is the WillResignActiveNotification message, and not the DidBecomeActiveNotification message. Odd also because it is the exact opposite of what you are seeing, so we

Re: iOS notification app goes into background doesn't seem to work

2020-11-20 Thread Graham Samuel via use-livecode
Thanks Mark I tried exactly your suggestion. For me, the second notification appears exactly as you say, but the first one doesn’t. It’s likely that I made a silly mistake but I can’t see what it is. I put other stuff in the log, so it’s not just a case of the text being overwritten. Obviously

Re: iOS notification app goes into background doesn't seem to work

2020-11-20 Thread Mark Smith via use-livecode
Hi Graham, you can put something like the following in your handlers and then check the log file to see when they were activated. If you're using Xcode you can download your “sandbox” to your device. You’ll find the log file in there. put the long time &&

iOS notification app goes into background doesn't seem to work

2020-11-20 Thread Graham Samuel via use-livecode
Thanks to Mark Smith and Henry Lowe, I know that I’m supposed to set up mergNotify for two notifications as below. I believe I’ve done this, and I’ve set a monitoring action (putting a text into a field) to show that these notifications have happened. Of course it may be just me, but so far, I