apple-push-notifications

Bluetooth LE and ANCS in iOS

爷,独闯天下 提交于 2019-11-30 19:44:41
问题 Can I develop a service on iOS to register with ANCS so that when iPhone gets a notification the service go through my device BT LE protocol to notify the band? And I read at http://blog.punchthrough.com/post/63658238857/the-apple-notification-center-service-or-wtf-is. I see "ANCS is managed automatically by the iOS device, or “Notification Provider” as its known in ANCS parlance. What this means for you as a developer is that you won’t need to write code to manage ANCS on the iOS side." It

Can we do VOIP push notification using Twilio iOS SDK?

喜夏-厌秋 提交于 2019-11-30 19:39:01
I have to implement App to App functionality using Twilio iOS SDK. I have successfully implemented voice calls when the app is running. Now I am facing a problem when the app is killed. How can I get VOIP push notifications for an incoming call? I am referring to this link : https://www.twilio.com/docs/api/notifications/guides/sending-notifications There is no VOIP push documentation for VOIP incoming calls. Please provide me with some useful ideas/solutions as soon as possible. philnash Twilio developer evangelist here. I answered over email, but thought I better include the answer here too

iOS not receiving Firebase Push Notification sent through the API

淺唱寂寞╮ 提交于 2019-11-30 19:35:55
I'm using Google's Firebase Cloud Messaging to send push-notifications to my iOS and Android applications. The push-notifications sent through the Cloud Messaging console work just as intended, however when I send a push-notification through the API, the iOS application only receives it when in foreground. On Android, it is working correctly (both in foreground and background). Reading the documentation, the iOS system would then transfer the "notification" object to the system tray, as intended, showing the "body" message. However, this is not working. Here's the content of the JSON I'm

Do newsstand apps require push notifications?

不想你离开。 提交于 2019-11-30 19:27:35
问题 If I submit a newstand app that does not use push notifications, but instead queries my server for new content each time the user launches the app will apple reject my app? I.e. Do users expect push on all newsstand apps? Thanks 回答1: Aroth has answered the question correctly but I want to add few important points to keep in mind for Newsstand apps based on my personal experience. Apple will reject any Newsstand app without subscription in it. In case all your content is free still you have to

Push Notification Error: “Unable to set local cert chain file”

我与影子孤独终老i 提交于 2019-11-30 19:20:33
I wrote a test php page that just sends out a generic push notification and it works intermittently. Sometimes it delivers the message and other times I get this error: "Message: stream_socket_client() [function.stream-socket-client]: Unable to set local cert chain file `/var/www/ninerobot.com/public/mlb/certs/mlbtr-push-dev.pem'; Check that your cafile/capath settings include details of your certificate and its issuer" Do you know how I can solve this issue? I see that on Apple's docs it says "Note: To establish a TLS session with APNs, an Entrust Secure CA root certificate must be installed

Change State when User Selects Notification from iOS Notification Center in Cordova

亡梦爱人 提交于 2019-11-30 19:10:22
问题 I'm attempting to open an iOS/Ionic/Cordova app at a specific message/state (given an ID), when a user clicks on a message push notification in the notification center. Is there a way to tell, using Cordova, if the app has been opened through the notification center? 回答1: From the docs, the callback is the point of entry for your notification. Any calls you make (or variables you set) inside the callback will only be possible if the app has been opened through the notification center 来源:

How to get notified when our app is uninstalled in iOS

☆樱花仙子☆ 提交于 2019-11-30 18:57:57
问题 We are developing an iPhone application that allow users to send messages to others via Apple Push Notification Service when the target user have installed our application or SMS when haven't. We want to get notified immediately when our app is uninstalled so that we can decide how to send the message to the target user. We find the APNS feedback server have a long time delay that doesn't agree with our requirement. So we use another way: when our server recorded the target user have

didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes:?

爱⌒轻易说出口 提交于 2019-11-30 18:41:16
I am working with push notifications in a navBased app. in AppDelegate.m didRegisterForRemoteNotificationsWithDeviceToken: doesn't invoke on calling registerForRemoteNotificationTypes: code looks like this: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; [self.window addSubview:navigationController.view]; [self.window makeKeyAndVisible]; return YES; } - (void

SSL error while implementing Apple Push Notification

为君一笑 提交于 2019-11-30 18:24:06
I am trying to implement Apple Push Notification using python and django. i am using following library to implement it http://leepa.github.com/django-iphone-push/ Here is my code that create that send the message from django.http import HttpResponse from django.utils import simplejson import json from push.models import iPhone def SendMessage(request,data): t = iPhone('XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX ') # 64 digit token t.send_message("hi") # at this line i am getting ERROR return HttpResponse(data,mimetype='application/javascript') settings.py import os PROJECT_ROOT = '/' # Full

How to send silent push to iOS via Google Cloud Messaging

狂风中的少年 提交于 2019-11-30 17:46:26
How to send silent push notification to iOS application over GCM? Silent push is notification that will not appear in notification center, but awake application to do some action in background. Google introduce new features in new GCM with possibility to send push messages to Android, Chrome and iOS. Any idea, how to do this? Use the content_available (not content-available ) attribute like this: curl -X POST --header "Content-Type:application/json" --header "Authorization:key=AIzaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" "https://android.googleapis.com/gcm/send" --data-ascii '{"data":{"xxx":"yyy"},