apple-push-notifications

Conditionally dismiss remote notification from didReceiveRemoteNotification

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 09:35:35
问题 My target is to run iOS app in background by receiving silent-pushes and post UILocalNotifications with some data downloaded from internet and decrypted inside app. I did it using method didReceiveRemoteNotification:fetchCompletionHandler: and pushing empty silent notifications from my server when some data is available to client. But if user force closes app - this method is not called at all. And user is not notified about something available for him. Then I added some text to push

Push Notification iOS resetting

99封情书 提交于 2019-12-11 09:28:23
问题 I want to reset the push notification setting for my app. I have read the apple documentation regarding resetting the settings (which didn't help) and some questions here as well (which didn't help either). So in the last I reset my iPhone by going to settings->General->Reset ->Erase All Content and Settings (That didn't worked as well.) Any other solution? BTW I am using iOS 6.1 回答1: https://developer.apple.com/library/archive/technotes/tn2265/_index.html The first time a push-enabled app

Apple Push Notification Service connection, through proxy, timed out with stream_socket_client

坚强是说给别人听的谎言 提交于 2019-12-11 09:04:51
问题 I'm trying to connect APNS, but i need to pass through a proxy, here the connection test code: if (!extension_loaded('openssl')) { exit("need openssl"); } $http = array(); $http['http']['proxy'] = 'tcp://proxy.net:8080'; $http['http']['request_fulluri'] = true; $ssl = array(); $ssl['ssl']['local_cert'] = 'ck.pem'; $ssl['ssl']['passphrase'] = 'passphrase'; $opts = array_merge($http,$ssl); $context = stream_context_create($opts); $fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com

Firebase + Push + iOS

删除回忆录丶 提交于 2019-12-11 08:53:54
问题 We encountering a problem during the push notification send in firebase. Currently we have done these steps:- We created a new app ID com.company.appname.country (without assigning it the push notification service) We have create a development certificate for the app id com.company.appname.country (this creating a sign key request from local keychain) We have create a create a sign key to create the development SSL certificate for the push notification (using the same key request created in

Apple Notification Services: Windows server requires re-importing the APNs certificate

只愿长相守 提交于 2019-12-11 08:48:54
问题 I've been successfully running Apple Push Notifications on my Windows Development server (win 7) until a weekend power failure at the office caused my box to shut down (it lasted longer than the UPS unit). I then discovered that the push notifications stopped working until I re-imported the .p12 certificate into the server. Then just to test, I shut down and restarted the development box, and again found that the push notifications were not working, and once more I needed to re-import the

Attempting to sent Push Notifications to iOS device - not receiving them

元气小坏坏 提交于 2019-12-11 08:47:56
问题 I have so far done the following: - Generated certificate and private key as .pem, also cat'd them together. Successfully connected to gateway.sandbox.push.apple.com. - Using the provisional profile with push notifications is enabled for development, I have a basic app that successfully prompted "Do you want to allow push notifications", so this is working correctly - Obtained the device token - I have tried pulling a few pre-made files for SSLing into sandbox from the internet just to see if

Do i need to create one more new SSL pushnotification certification for new version of app?

六月ゝ 毕业季﹏ 提交于 2019-12-11 08:34:58
问题 I have an application already running on apple store, and this application has the feature of getting push notification. I am going to release a new version. For this new version, do i have to create one more new SSL pushnotification certificate and a p12 file or old ssl and p12 used for old version is good enough to make it work? Is there any changes I need to do or just increasing version number of the app and archiving will be good to go? As i am uploading new version first time, I am not

iOS Push Notifications AuthenticationException for Certificate

雨燕双飞 提交于 2019-12-11 08:25:32
问题 I am trying to use PushSharp to send a push notification to my app. I have two Apple accounts... one is a regular account, and the other is an Enterprise account. I have a developer certificate on the regular account that works, but both my development and distribution certificates fail to work from the Enterprise account. I get an Authentication Exception.. A call to SSPI failed, see inner exception. Inner Exception: [System.ComponentModel.Win32Exception]: {"An unknown error occurred while

iOS - Display view after push notification is received

∥☆過路亽.° 提交于 2019-12-11 08:23:54
问题 I am working on an app whose main UI is based on a tab bar controller. In one of the tabs I have a collection view, which drills down to a detail view via a navigation controller. What I am trying to do is upon receipt of a push notification I would like to select this specific tab, fetch the latest data from the server, find the particular item to display, then push the detail view on to the screen to display said item. My problem is I get the following message after collectionView

iOS not receiving notifications from Firebase Cloud Messaging

混江龙づ霸主 提交于 2019-12-11 08:18:20
问题 I want the push notification to only contain the title. When I send a message from the Firebase console, it works, but when I try to do the same via the API, it doesn't work for iOS (works fine on Android). Edit: What I'm trying to accomplish is to only show the title in the notification that shows up in the notification drawer when the app is not open. If body is added, it is shown under the title in the notification. This is the push notification I'm sending: { "to": "/topics/breaking",