apple-push-notifications

Rich push notification not working with FCM in IOS

我与影子孤独终老i 提交于 2019-12-25 02:14:48
问题 I've added UNNotificationServiceExtension and UNNotificationContentExtension in my project for rich push notification. Please refer the code below which i've added for the same. Code: #import "NotificationService.h" @interface NotificationService () @property (nonatomic, strong) void (^contentHandler)(UNNotificationContent *contentToDeliver); @property (nonatomic, strong) UNMutableNotificationContent *bestAttemptContent; @end @implementation NotificationService { NSURLSession *session; } -

Send Push Notification to APNS through proxy

 ̄綄美尐妖づ 提交于 2019-12-25 01:49:25
问题 i've read different question similar to mine, but no answer works for me: $deviceToken = 'token'; $passphrase = 'passphrase'; $message = 'Questa è una notifica!'; //////////////////////////////////////////////////////////////////////////////// $ctx = stream_context_create(); $options = array('http' => array('proxy' => 'tcp://proxy.net:8080', 'request_fulluri' => true)); stream_context_create($options); stream_context_set_option($ctx, 'ssl', 'local_cert', 'cert.pem'); stream_context_set_option

Azure push-notification hub don't work after failure

大城市里の小女人 提交于 2019-12-25 01:44:24
问题 On the server side, we are using Azure with SDK Azure Tools Version: 2.2 We send push-notifications on iOS with a failure (APNS Errors did appear in Dashboard). After this failure, push-notifications don't work on this tag and hub all the time. How can we fix this situation without clearing all registrations and creating a new tag? Usually scenario looks like this: 1. Tag works fine. 2. We register some device with wrong certificate for example. Errors in dashboard. 3. Tag doesn't work

APN-Node: Error when loading PEM file

喜欢而已 提交于 2019-12-25 01:44:21
问题 I am trying to get apn-node to push to my devices. The server is hosted on Heroku, so I do not want to commit the file. Also, I do not want to fetch it from a remote server but instead put it in an environment variable. I already tried the following (source): I created and downloaded the certificate from Apple and now have it in my Keychain. I exported it as a *.p12 file and converted it with openssl pkcs12 -in dev.p12 -out dev.pem -nodes into a *.pem file. To set the environment variable, I

Apple Push Notification - Can read all incoming messages like Pebble App?

此生再无相见时 提交于 2019-12-25 01:06:54
问题 Pebble App can read all incoming messages. I want make app that read all messages in push notification center without jailbreak. Is it possible? 回答1: No , It is Not Possible. You can not read all Notifications. 回答2: Maybe it's a bit too late, but actually it's possible and Apple didn't help Pebble. The trick is "Message Access Protocol" supported by iPhone 4+ This is the technology used by in-car system, pebble and, recently, Notifyr. 来源: https://stackoverflow.com/questions/21038171/apple

Update new APNS certificate to GCM

寵の児 提交于 2019-12-25 00:08:49
问题 Generated new certificates in Apple Developer Centre. It's weird i couldn't upload that certificates to GCM and also i couldn't see UPDATE button developer website. It shows error {{ controller.errorMessage }} How do I do that? Here's a screenshot of the Google Developer 回答1: You would have to import your GCM project to the Firebase Console (there won't be any changes, see my answer here) and update the certs from there. While already importing, I would strongly advise toigrate your app(s) to

iOS - How to enable Facebook Login without hardcoding the values in info.plist file

亡梦爱人 提交于 2019-12-25 00:01:42
问题 Background: We provide users an option to create mobile application for their eCommerce store. They can choose what type of changes need to be done and then we go ahead and create the app for them. It is all smooth except for the pain point with getting the Facebook APIs keys generated by the users. Most of the times they do not pay attention and create wrong keys and then we have to tell them to create again. This takes a lot of to-n-fro and wastes time. What we intend to achieve: We have

PHP Trying to get property of non-object

老子叫甜甜 提交于 2019-12-24 20:19:27
问题 I'm running an APNS PHP script and it's working fine but one file throws PHP errors and I want to know how I should fix it. The following errors pop up: /usr/bin/php -f /usr/share/nginx/www/processFeedback.php <br/>Started processing FeedbackPHP Notice: Trying to get property of non-object in /usr/share/nginx/www/processFeedback.php on line 46 PHP Warning: stream_socket_client(): unable to connect to (Failed to parse address "") in /usr/share/nginx/www/classes/Apns.php on line 66 PHP Notice:

how to handle while multiple push notification comes at same time in foreground of app in iOS

情到浓时终转凉″ 提交于 2019-12-24 16:42:13
问题 I have send request to server in delegate method of application:(UIApplication *)application didReceiveRemoteNotification: but when multiple push notification comes at same time app get crash because of no. of request goes to server. In delegate method I write below code: if (!downloadInboxQueue) { downloadInboxQueue = [[NSOperationQueue alloc] init]; downloadInboxQueue.maxConcurrentOperationCount=1; } NSNumber *ischatnumber=[[NSNumber alloc] initWithInt:0]; operationObject=[[Operation_Inbox

Delay in receiving APN on iPhone

别等时光非礼了梦想. 提交于 2019-12-24 15:12:20
问题 Sometimes I am experiecing a delay while receiving APN , while at other times its working absolutely fine. I am also connecting to the feedback server at ssl://feedback.sandbox.push.apple.com , but its not showing any data. What are the possible reasons for the delay? Thanks 回答1: Delay can happen if you've got a bad connection on 3G or Edge (iPhones use those, not wifi, for push unless they're totally unavailable). If the connection is dropped but the device doesn't know it, it'll wait until