apple-push-notifications

Push notification badge

你。 提交于 2019-12-02 18:26:32
问题 I am pushing several messages form my server to the iPhone. When I am pushing I'm setting the badge value as 1. As there are several independent tasks in the server there may be situational where server pushes messages to same phone but the badge will be 1 cos as those are independent tasks I cannot increment the badge and send. So I want to know whether this badge is incremented in the iPhone side or do we have to push the badge value appropriately? Thank you 回答1: The badge value will be

iOS app with real-time updates from server: Socket (using streams) or Apple Push Notification service?

自闭症网瘾萝莉.ら 提交于 2019-12-02 18:23:48
I'm trying to make an iOS 5 app that features real-time things coming from the server. It will only use these whilst the app is running. To make it real-time without polling I have been evaluating two design routes: Creating a socket from the app to the server, and exchanging information via streams. Pros: Relatively simple and would not involve a 3rd party. Cons: Battery life drain. For an overview of how this might work, check out this excellent tutorial: http://www.raywenderlich.com/3932/how-to-create-a-socket-based-iphone-app-and-server Using standard HTTP to communicate with the server,

Can't find private key for Apple Development Push Services

删除回忆录丶 提交于 2019-12-02 17:50:43
I've consulted many sources out there and still can't figure this out. http://code.google.com/p/apns-php/wiki/CertificateCreation Basically after I download the Development Push SSL Certificate from the iOS Provisioning Portal > App IDS (with Enable for Apple Push Notification service selected) and I double click the certificate (filename aps_development.cer) to open it, the Keychain opens. I then select "login" and "Certificates" on the left panels. On the right panel I see "Apple Development IOS Push Services:..." and all instructions I've consulted so far have told me to "expand" this

How to show iOS Push Notification Popup? [closed]

拥有回忆 提交于 2019-12-02 17:40:41
I'm trying to add push notification to my app. I need to know how to make the push notification popup appear. The popup I'm pertaining to is an alert view that has two choices, "allow" and "don't allow". It asks the user whether to allow the app to receive notifications and stuff or not. I've tried deleting my app over and over again and advancing the time but nothing worked. Also, in case the popup appears, how can I know if the user selected don't allow/ allow? Resetting the Push Notifications Permissions Alert on iOS The first time a push-enabled app registers for push notifications, iOS

Apple Push Notifications in Bulk

六月ゝ 毕业季﹏ 提交于 2019-12-02 17:32:40
I have an app that involves sending Apple Push Notifications to ~1M users periodically. The setup for doing so has been built and tested for small numbers of notifications. Since there is no way I can test sending at that scale, I am interested in knowing whether there are any gotchas in sending bulk push notifications. I have scripts written in Python that open a single connection to the push server and send all notifications over that connection. Apple recommends keeping it open for as long as possible. But I have also seen that the connection terminates and you need to reestablish it. All

Detect if application: didReceiveRemoteNotification: fetchCompletionHandler: was called by tapping on a notification in Notification Center

寵の児 提交于 2019-12-02 17:16:36
application: didReceiveRemoteNotification: fetchCompletionHandler: is different from application: didReceiveRemoteNotification: How? from the docs: Unlike the application:didReceiveRemoteNotification: method, which is called only when your app is running, the system calls this method regardless of the state of your app. If your app is suspended or not running, the system wakes up or launches your app and puts it into the background running state before calling the method. If the user opens your app from the system-displayed alert, the system calls this method again so that you know which

Is it possible to implement iPhone push notifications in a Google App Engine application?

岁酱吖の 提交于 2019-12-02 17:14:44
I'm in the planning phase of an iPhone application and am considering using Google App Engine for my server component due to its scalability features. Push notifications are sent using a binary interface to gateway.push.apple.com:2195 . However, the JRE for the server is only allowed to use the following standard classes , which does not include the Socket classes. Can URLConnection be used somehow to do this? Is there a way to implement push notifications given the restrictions on Google App Engine applications? I'd like to avoid using a third-party service such as AppNotify or UrbanAirship

iOS 9: How to detect when user said 'Don't Allow' to the push notification request? [duplicate]

烂漫一生 提交于 2019-12-02 17:14:22
This question already has an answer here: Callback Method if user declines Push Notification Prompt? 10 answers In iOS 9, is there a system level callback I can read which tells me whether the user has tapped on 'Don't allow' on the push notification request? I prompt the user with a custom screen informing them about push notifications and the value it has in my app. They have two choices, yes or no. If they select Yes, I request the operating system for push notification and they see a pop up like the image below. Now, if the user taps on YES, then there is a function called

apple push notification with sound buzzing at regular interval

ぐ巨炮叔叔 提交于 2019-12-02 17:07:02
问题 I have a small but tricky question over apple push notification payload on iOS. From what I know the push notification payload can have sound (length <= 30 seconds), text and badge. Now what I want with my iphone app is that the push notification sent by my provider (server) to this app on iPhone screen to constantly buzz at regular interval (say every 1 min) until user taps on the notification on screen (i.e. checks the message). Hence, the notification would play the sound constantly and

Not receiving Push Notifications Using firebase and Objective C

血红的双手。 提交于 2019-12-02 16:56:57
问题 I am trying to use Firebase for push notification. i have successfully installed the Firebase And Firebase messaging via Cocoapods . I used the below code - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [FIRApp configure]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tokenRefreshCallback:) name:kFIRInstanceIDTokenRefreshNotification object:nil]; UIUserNotificationType allNotificationsType =