iOS enterprise APNs certificate expiry

Question!

We have a production APNs certificate due to expire shortly for an enterprise app.

Is it just a case of creating a new production APNs certificate for our app ID and replacing the certificate that's due to expire with our push notifications provider?

Will I need to re bundle and re distribute our enterprise app or will the existing version continue to work with the new APNs certificate?

By : Charlie W


Answers

According to these links:

If a certificate expired or revoked, it doesn’t affect apps that you’ve submitted to the store, just effect ability to update them.

For APNs certificates, if it expired, you can no longer send notification to you app, it only effect the ability to your push server communicate with Apple's APNs service. Just update the APNs certificates and update your push server's push certificate, the push service will work again.

By : Kevin Guo


Done in many ways:

List Comprehension

a = [2, 4, 1, 1, 6, 1, 1, 3, 5, 1]
b = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]
print [b[index] for index, item in enumerate(a) if item == 1]

Filter with Lambda

a = [2, 4, 1, 1, 6, 1, 1, 3, 5, 1]
b = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]
print filter(lambda index, item: len(a) > index and a[index]==1, enumerate(b))

Note that the list comprehension will be faster because it goes only up to the length of a rather than the list b, in case b is bigger.



I'd do it with zip and list comprehension.

>>> a = [2, 4, 1, 1, 6, 1, 1, 3, 5, 1]
>>> b = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]
>>> c = [x[0] for x in zip(b, a) if x[1] == 1]
>>> c
['C', 'D', 'F', 'G', 'J']
>>>


This video can help you solving your question :)
By: admin