apple-push-notifications

How to remove push notification API

本小妞迷上赌 提交于 2019-12-01 10:41:56
问题 Apple sends the following email when submitting iOS app: Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that

Push notifications - catching them?

纵饮孤独 提交于 2019-12-01 09:36:33
okay, so here is the deal. my app is using iOS notifications. in app delegate I am catching them in didReceiveRemoteNotification if the app is in foreground i catch it in didBecomeActive if app was in background and i tapped on the push notification. however! if my app is in background , i receive push notification and if i do not tap on push notifications (or just "Cancel" on it in iOS less than 5.0), and open app in say, couple minutes, i can't figure out how do I find this push notification. any suggestions? thanks! If your app is in background the OS handles the push notifications. It sets

Apple Push Notification not working on shared server

主宰稳场 提交于 2019-12-01 09:33:16
I want to send APN (Apple Push Notification) from PHP script. My PHP script is working fine and I receive notification in the iphone device as well when sending from localhost but when I upload the same script with same .pem file to the shared server it returns error... Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Connection refused) in /mypath/SendPushNotification.php on line 28 Failed to connect: 111 Connection refused From some source I get to know that to send APN port 2195 must be open which is not possible in the

Push Notification is not working?

天涯浪子 提交于 2019-12-01 09:24:44
i edit and modify the provisioning profile alot of times. and i checked it in text editor too. everything is ok with provisioning profile. but still push notifications are not working. and i m getting this error. everyone is saying that its bcz of bad provisioning profile but my provisioning profile values are the same as Apple said in their documentation. i m getting this error: Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x127d80 {NSLocalizedDescription=no valid 'aps-environment'

How to change IOS badge notification colour from default Red to other colours?

為{幸葍}努か 提交于 2019-12-01 09:23:50
The default APNS allows a number (badge) to appear in Red background on top of our app icon to state that there is a new notification. Is there a way to change the Red colour background to any other colours based on the backend server output? I don't believe this is possible with public iOS SDK APIs According to Apple iOS Human Interface Guidelines , you cannot change the color or size of the pending notification badge. A badge is a small red oval that displays the number of pending notification items (a badge appears over the upper-right corner of an app’s icon). You have no control over the

iPhone SDK Push notification randomly fails

一笑奈何 提交于 2019-12-01 08:58:04
I have a PHP file with the following content that works perfectly on development ceritficates, but when I switch to a production certificate the PHP errors and gives the below message, but it only does this about 50% of the time. The other 50% it works. Anyone know why this might be happening? <?php // masked for security reason $deviceToken = 'xxxxxx'; // jq $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', dirname(__FILE__)."/prod.pem"); $number = 5; $fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT,

Amazon sns (push notification) does not send to IOS application

别等时光非礼了梦想. 提交于 2019-12-01 07:39:18
Recently the app can not receive notification, the android side works fine but the ios one has fail so here is what I have attempt: 1) generate token from apple apn service 2) create the endpoint at amazon backend 3) publish the message at amazon backend 4) it does not receive message and the endpoint will go to disabled after a while. And I have checked the following: 1) try serveal ios device , including iphone/ ipad/ipod touch also the same result 2) checked the secret key/ platform arn it is matched 3) created another platform ARN but still the same. So , what direction should I continue

Unable to register for Push Notifications (Xcode 7, iOS9)

北慕城南 提交于 2019-12-01 07:17:05
问题 I've upgraded my devices to iOS 9 and my Xcode environment to 7.0 (7A220). My app registers for notifications via: [[UIApplication sharedApplication] registerForRemoteNotifications]; However, neither "didRegisterForRemoteNotificationWithDeviceToken" or "didFailToRegisterForRemoteNotificationsWithError" are called. Furthermore, my app does not appear in the Settings->Notifications section (which tells me its not even trying to register for remote/push notifications) My App ID has the following

iPhone SDK Push notification randomly fails

浪子不回头ぞ 提交于 2019-12-01 06:56:19
问题 I have a PHP file with the following content that works perfectly on development ceritficates, but when I switch to a production certificate the PHP errors and gives the below message, but it only does this about 50% of the time. The other 50% it works. Anyone know why this might be happening? <?php // masked for security reason $deviceToken = 'xxxxxx'; // jq $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', dirname(__FILE__)."/prod.pem"); $number = 5; $fp =

Push notifications - catching them?

安稳与你 提交于 2019-12-01 06:40:41
问题 okay, so here is the deal. my app is using iOS notifications. in app delegate I am catching them in didReceiveRemoteNotification if the app is in foreground i catch it in didBecomeActive if app was in background and i tapped on the push notification. however! if my app is in background , i receive push notification and if i do not tap on push notifications (or just "Cancel" on it in iOS less than 5.0), and open app in say, couple minutes, i can't figure out how do I find this push