APNs provider API requirement starts March 31

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

APNs provider API requirement starts March 31

Post by simon.schvartzman » Thu Mar 04, 2021 6:59 pm

I've received the email below from Apple and I wonder if/how iOS LC Apps will be impacted by this.

Anyone knows?
The HTTP/2‑based Apple Push Notification service (APNs) provider API lets you take advantage of great features, such as authentication with a JSON Web Token, improved error messaging, and per‑notification feedback. If you still send push notifications with the legacy binary protocol, make sure to upgrade to the APNs provider API as soon as possible. APNs will no longer support the legacy binary protocol after March 31, 2021.
Thanks
Simon
________________________________________
To ";" or not to ";" that is the question

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: APNs provider API requirement starts March 31

Post by Mikey » Fri Mar 05, 2021 3:05 pm

Basically, the old way won't work any longer. You have to use the REST API.

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: APNs provider API requirement starts March 31

Post by simon.schvartzman » Fri Mar 05, 2021 3:43 pm

Thanks for the clarification Mikey. Any example as how to use the REST API you can point out?
Simon
________________________________________
To ";" or not to ";" that is the question

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: APNs provider API requirement starts March 31

Post by Mikey » Fri Mar 05, 2021 3:49 pm

i'm embarrassed to say that i am not aware of one. i knew this was coming, but push has not been a high enough priority to fiddle with it, yet, and I thought that by now someone else would have done it so I didn't have to.

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: APNs provider API requirement starts March 31

Post by simon.schvartzman » Fri Mar 05, 2021 4:03 pm

Well, since there is a LC Lesson about how to send push notifications on iOS I guess the LC team (which is hopefully hearing) will take care of the update and publish a new version showing how to handle it.

Will see
Simon
________________________________________
To ";" or not to ";" that is the question

kdjanz
Posts: 300
Joined: Fri Dec 09, 2011 12:12 pm
Location: Fort Saskatchewan, AB Canada

Re: APNs provider API requirement starts March 31

Post by kdjanz » Sat Mar 06, 2021 5:29 am

You probably should send a note to Support with a request and the specific lesson that needs updating.

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: APNs provider API requirement starts March 31

Post by simon.schvartzman » Sat Mar 06, 2021 12:53 pm

will do as suggested, thanks
Simon
________________________________________
To ";" or not to ";" that is the question

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: APNs provider API requirement starts March 31

Post by simon.schvartzman » Mon Mar 08, 2021 12:42 pm

Below the answer given by LC support :
Thank you for your request. It's already on our list of lessons to be updated. I'll let you know when it is done.
Simon
________________________________________
To ";" or not to ";" that is the question

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: APNs provider API requirement starts March 31

Post by LiveCode_Panos » Wed Mar 17, 2021 3:20 pm

Hello all,

You can find an updated lesson on how to send HTTP/2 based push notifications on iOS:

https://lessons.livecode.com/m/4069/l/1 ... ons-in-ios

Note that you do not need to do any changes in your app that receives push notifications. The changes regarding the http2 API are only server-side, i.e. on the way you send push notifications to your app.

Kind regards,
Panos

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: APNs provider API requirement starts March 31

Post by simon.schvartzman » Wed Mar 17, 2021 3:29 pm

Hi Panos, many thanks for the update, very useful.

In the previous version there was an example of a LC stack to SEND the notifications, I wonder if it is still valid as there is no mention to it in the new lesson...

Regards
Simon
________________________________________
To ";" or not to ";" that is the question

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: APNs provider API requirement starts March 31

Post by LiveCode_Panos » Wed Mar 17, 2021 3:47 pm

Hello Simon,

Nope, the old example of the LC stack for sending push notifications is not valid anymore, since it uses the legacy binary API. In fact it will stop working at the end of this month.

You can now use the example to send notifications from the terminal, or to use the third party utility that is mentioned in this new lesson.

In the future we could write a small LC app that does that, based on the terminal commands.

Kind regards,
Panos
--

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: APNs provider API requirement starts March 31

Post by simon.schvartzman » Wed Mar 17, 2021 3:55 pm

Hi Panos, understood. I hope
In the future we could write a small LC app that does that, based on the terminal commands.
this future is not too far away. It is very convenient to be able to send the notifications from a LC App running on the desktop for instance.

Cheers!
Simon
________________________________________
To ";" or not to ";" that is the question

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: APNs provider API requirement starts March 31

Post by LiveCode_Panos » Wed Mar 17, 2021 5:24 pm

Hello Simon,

I have written a sample LC app to send http2 push notifications. I have attached the stack to the new lesson. Hope it helps :)

Kind regards,
Panos
--

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: APNs provider API requirement starts March 31

Post by simon.schvartzman » Wed Mar 17, 2021 5:28 pm

Thanks Panos you are my hero! (there are so many super heroes in this forum that it resembles the Justice League I shall say...)
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “iOS Deployment”