apple-push-notifications

APNS (Apple Push Notification Service) with Node JS

℡╲_俬逩灬. 提交于 2020-05-10 06:47:10
问题 I am looking to create APNS (Apple Push Notification Service), where the server will be sending notifications to the iOS devices. I am able to make the push notifications work via PHP using the SAME device token and the SAME certificate, however, I would like to send notifications via Node JS instead of PHP. I have the following valid files/certificates to help me get started: cert.pem key.pem aps_development.cer cert.p12 key.p12, ck.pem I've been looking through several resources/links such

APNS (Apple Push Notification Service) with Node JS

徘徊边缘 提交于 2020-05-10 06:46:50
问题 I am looking to create APNS (Apple Push Notification Service), where the server will be sending notifications to the iOS devices. I am able to make the push notifications work via PHP using the SAME device token and the SAME certificate, however, I would like to send notifications via Node JS instead of PHP. I have the following valid files/certificates to help me get started: cert.pem key.pem aps_development.cer cert.p12 key.p12, ck.pem I've been looking through several resources/links such

APNS (Apple Push Notification Service) with Node JS

做~自己de王妃 提交于 2020-05-10 06:46:06
问题 I am looking to create APNS (Apple Push Notification Service), where the server will be sending notifications to the iOS devices. I am able to make the push notifications work via PHP using the SAME device token and the SAME certificate, however, I would like to send notifications via Node JS instead of PHP. I have the following valid files/certificates to help me get started: cert.pem key.pem aps_development.cer cert.p12 key.p12, ck.pem I've been looking through several resources/links such

APNS2 Exception: TooManyProviderTokenUpdates

跟風遠走 提交于 2020-04-30 09:10:46
问题 def process_notification(message): apns = apnsClient apns_response = None try: stream_id = apns.send_notification_async(device_token, apns_payload, target_app) apns_response = apns.get_notification_result(stream_id) except e: logging.error(f"APNS server error occurred.Reason: {apns_response}") if __name__ == '__main__': # To use token based authentication auth_key_path = 'AuthKey.p8' auth_file = os.path.join(sys.path[0], auth_key_path) auth_key_id = '************' team_id = '********' token

APNS2 Exception: TooManyProviderTokenUpdates

笑着哭i 提交于 2020-04-30 09:10:25
问题 def process_notification(message): apns = apnsClient apns_response = None try: stream_id = apns.send_notification_async(device_token, apns_payload, target_app) apns_response = apns.get_notification_result(stream_id) except e: logging.error(f"APNS server error occurred.Reason: {apns_response}") if __name__ == '__main__': # To use token based authentication auth_key_path = 'AuthKey.p8' auth_file = os.path.join(sys.path[0], auth_key_path) auth_key_id = '************' team_id = '********' token

APNS2 Exception: TooManyProviderTokenUpdates

一个人想着一个人 提交于 2020-04-30 09:10:14
问题 def process_notification(message): apns = apnsClient apns_response = None try: stream_id = apns.send_notification_async(device_token, apns_payload, target_app) apns_response = apns.get_notification_result(stream_id) except e: logging.error(f"APNS server error occurred.Reason: {apns_response}") if __name__ == '__main__': # To use token based authentication auth_key_path = 'AuthKey.p8' auth_file = os.path.join(sys.path[0], auth_key_path) auth_key_id = '************' team_id = '********' token

APNS push working in foreground but not background

无人久伴 提交于 2020-04-19 04:42:30
问题 Is it possible to have foreground push come in, but not receive push notification when the app is in background? I've had some users report this problem and was wondering what could be the cause. Maybe it's just confusion? Please enlighten me if anyone else had the same problem and if so what the cause was. Thank you! 回答1: Perhaps you could exclude the alert in the payload dictionary of the push. This might prevent the message from being displayed on the device you push to. You could however

APNS push working in foreground but not background

泄露秘密 提交于 2020-04-19 04:39:41
问题 Is it possible to have foreground push come in, but not receive push notification when the app is in background? I've had some users report this problem and was wondering what could be the cause. Maybe it's just confusion? Please enlighten me if anyone else had the same problem and if so what the cause was. Thank you! 回答1: Perhaps you could exclude the alert in the payload dictionary of the push. This might prevent the message from being displayed on the device you push to. You could however

APNS push working in foreground but not background

戏子无情 提交于 2020-04-19 04:38:38
问题 Is it possible to have foreground push come in, but not receive push notification when the app is in background? I've had some users report this problem and was wondering what could be the cause. Maybe it's just confusion? Please enlighten me if anyone else had the same problem and if so what the cause was. Thank you! 回答1: Perhaps you could exclude the alert in the payload dictionary of the push. This might prevent the message from being displayed on the device you push to. You could however

Which certificate should be used on app Server for waking iOS app using Pushkit and APNS?

▼魔方 西西 提交于 2020-04-18 05:46:01
问题 I am using Websocket in my iOS app for data transfer. But, since sometimes when the app is suspended in the background, the socket breaks. In that case, I use Voip push to iOS app to wake app up. //called on appDidFinishLaunching //register for voip notifications PKPushRegistry *voipRegistry = [[PKPushRegistry alloc] initWithQueue:dispatch_get_main_queue()]; voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP]; voipRegistry.delegate = self; //delegate methods for `PushKit`