apple-push-notifications

Sencha touch 2 + Apple push notifications + Ext.device.Push

烂漫一生 提交于 2019-12-05 03:50:28
问题 I recently started developing with Sencha Touch 2, at the moment i'm creating an app that needs support for Apple Push Notifications. So I've created the neccesary certificates at the Apple developer center and used them to package the application with the Sencha Touch SDK tools. All went well and I'm able to run this app on my device. In the app I added a button to receive the device token. When I tap the button it executes the following code: Ext.device.Push.register({ type: Ext.device.Push

Why iPhone don't receive push notification?

≯℡__Kan透↙ 提交于 2019-12-05 03:44:07
问题 I really don't know where is the problem. I am using library ApnsPHP to sending Push notifications. I also tried other scripts, but that also not working. I generate push certificates with this tutorial (http://code.google.com/p/apns-php/wiki/CertificateCreation) and also put them to apple developer website. I get right token from iphone which i put into sample_push.php I have Macbook Pro 13-inch, Mid 2010 with Mac OS Lion. vojta:~/dev/www/application$ php sample_push.php Fri, 13 Apr 2012 16

How can I add media attachments to my push notifications in an iOS 10 app?

走远了吗. 提交于 2019-12-05 03:34:22
There are multiple examples how you should set up your project to add rich notifications which use 'media attachments' technology to show images. I've read most of them but something I missed, because my project does not display any rich notifications with this payload (tested with APNS-Tool and Boodle): { "aps":{ "alert":{ "title": "Rich test", "body": "Dancing Banana" }, "mutable-content": 1 } } The notification is visible, but on 3D Touch, there are no additional infos displayed (like the image or the modified title). The notification extension breakpoints and NSLog messages are also not

Cancel Banner Notification in iOS8 Not Working

☆樱花仙子☆ 提交于 2019-12-05 02:22:08
问题 My title might not accurately depict my question, so I apologize. I have looked for a solution to creating this level of functionality but I am unable to find it. I am creating a VoIP application for iOS 8. When a user receives a call I am displaying a notification with a 12 second ringtone. While this notification is in progress if the call disconnects I want the Incoming Call notification to disappear and display a Missed Call notification immediately. This level of functionality is

APN Production certificate not being recognized by PushSharp

淺唱寂寞╮ 提交于 2019-12-05 01:55:14
I've developed an iOS app, that receives Push Notifications. I'm sending them from a .NET environment using PushSharp. Everything went beautifully while developing, and the Pushs were successfully sent: var push = new PushBroker(); var appleCert = File.ReadAllBytes(@"Utils\Cert.Development.p12"); push.RegisterAppleService(new ApplePushChannelSettings(false, appleCert, "*******")); push.QueueNotification(new AppleNotification() .ForDeviceToken(token) .WithContentAvailable(1) ); push.StopAllServices(); Now, the app has been approved, and it's at AppStore. I have generate the correct production

iOS Push Notifications with empty aps dictionary

梦想与她 提交于 2019-12-05 01:17:57
Doing research to try and pick a direction for notification types. I'd like to be able to notify my app that there's new data to be refreshed but not bother the user with the popup/notification message. The idea is that the same notifications go out if the app is open or closed and when this "special" message arrives and the app is open it knows to fetch data. My idea was to send an empty aps dictionary like example 5 at the bottom of this apple document . My question is what will happen when this type of message is received? It says it'll clear the badge but will some sort of default message

iOS8 check permission of remotenotificationtype

走远了吗. 提交于 2019-12-05 01:09:35
问题 I can check if user granted notification (alert) permission or not before iOS8 like that: UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; if (types & UIRemoteNotificationTypeAlert) { //user granted } it is not working on iOS8, it says: iOS (3.0 and later) Deprecated:Register for user notification settings using the registerUserNotificationSettings: method instead. console says: enabledRemoteNotificationTypes is not supported in iOS 8.0 and

Capture answer to “App would like to send you push notifications” alert

橙三吉。 提交于 2019-12-05 00:42:43
问题 The first time you call registerForRemoteNotificationTypes: on your UIApplication object, a UIAlertView pops up saying "[app] would like to send you push notifications". Is there any way to know when "OK" or "Don't allow" is tapped in this AlertView ? Currently application:didRegisterForRemoteNotificationsWithDeviceToken: is called on my AppDelegate , even before a user makes a decision. The reason I ask is because on first launch, I want to push a ViewController with Notification options,

HOWTO remove device tokens received by Apple APNS feedback

∥☆過路亽.° 提交于 2019-12-05 00:30:28
问题 I am successfully fetching Apple APNS feedback data via PHP. The structure that I am getting (after some processing) looks something like this: timestamp device token My question is how to know which of the device tokens should I remove from my database and stop sending notifications to them. Regardz, Mladjo 回答1: The timestamp is the crucial element here. The timestamp sent by Apple indicates the last time the push service attempted to deliver a message to the device and found the app to be

Apple PushKit didUpdatePushCredentials is never called on iOS 9+

泪湿孤枕 提交于 2019-12-05 00:28:37
I am developing a VoIP app for iPhone. To receive calls, Apple developed PushKit so developers can send VoIP notifications using APNS. Everything was working fine on iOS 8. When I updated to iOS 9, the PKRegistryDelegate does not fire the method didUpdatePushCredentials after registration. Any ideas/suggestions? Enabling the "Push notification" flag from Project->Capabilities solved my issue. It's strange because it was working without it earlier. This reply maybe late but hopefully this helps someone. I had a hard time figuring this out. If you're running a newer xcode (I'm on xcode 9) then