apple-push-notifications

Push notifications are not working in updated version from ios7 to ios8.1

試著忘記壹切 提交于 2019-12-24 14:27:44
问题 I updated my device from ios7 to ios8.1.Push notifications are not working in updated version. I did same process for push notifications which is done in ios7. The code is also updated #ifdef __IPHONE_8_0 //Right, that is the point UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge |UIUserNotificationTypeSound |UIUserNotificationTypeAlert) categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:settings

APNS Certificate Issue while sending notification to iOS App

笑着哭i 提交于 2019-12-24 14:08:55
问题 To send notifications to my adhoc app i selected previously Distribution APNS service. I got notifications successfully. But now while creating certificate I’m in confusion which one to select in portal.. Selected (sandbox&Prodcution) and created .p12 file and uploaded to my sever.. But Im getting following error You have selected the Production server, yet your Certificate does not appear to be the Production certificate! Please check to ensure you have the correct certificate! I figured out

Could one iOS application support multiple push notification registration?

房东的猫 提交于 2019-12-24 13:17:43
问题 This is the first time that I approach the push notification service and I'm little bit confused. I 'd like to have just some conceptual help, not code. I need to build an app that should receive and register for different kind of notifications. For instance in my app I'd like that users could register for PROMO notifications category and NEWS notifications category, I'd like that they could choose which one they want to be notified. Reading the Apple doc, that was not so clear to me, it

Does the Apple Push Notification Service represent a privacy concern?

。_饼干妹妹 提交于 2019-12-24 13:17:22
问题 I've been reading up extensively on APNS, and was curious if anyone is familiar with Apple's stance on server-side logging. In order to allow for push notifications, each device (such as an iPhone) "establishes an accredited and encrypted IP connection with the service and receives notifications over this persistent connection." Source: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html This essentially

Using silent push notifications to keep an iOS app in “Background” state

若如初见. 提交于 2019-12-24 12:47:34
问题 Is it possible to keep an iOS app in "Background" state by sending it a silent push notification every few seconds? I want to run background tasks on a regular interval and this seems like a viable solution. If so, is this acceptable under the App Store terms of use? The app I am planning to build would rely on this functionality and I am concerned that Apple will reject it from the App Store. Specifically, it’s this section in the guidelines that I am not sure about: 5.1 Apps that send Push

How to display push notification in apple watch?

霸气de小男生 提交于 2019-12-24 12:36:15
问题 I am developing an iphone app using Appcelerator, In which I registered for push notification, so when I receive a push notification and device is locked I want to show that in paired apple watch. So my question is Do I need to include any apple watch extension to my project or by default it will display in apple watch? I don't have an apple watch device so I cant test it. 回答1: Your notifications will show up on the Apple Watch automatically: If your iOS app supports local or remote

ios handle pushnotification in background

只谈情不闲聊 提交于 2019-12-24 11:56:27
问题 I want to save a push notification that arrives when the application is in background state. I know about -(void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo This delegate method is called when the app is in foreground or background (if the user just clicks on the received notification). - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions This method is called only once when the app

PushSharp notification error

不想你离开。 提交于 2019-12-24 10:56:12
问题 I keep getting this error when using PushSharp: Waiting for Queue to Finish... Failure: Apple -> Exception of type 'PushSharp.Apple.NotificationFailureException' was thrown. -> {"aps":{"alert":"Alert Text From .NET!","badge":7,"sound":"default"}} Queue Finished, press return to exit... Any thoughts? I use the DeviceToken as the long UID shown in iTunes when you pluging your phone. The certificate was exported (Sandbox) as per instruction on PushSharp Wiki. 回答1: What you are using is not the

OSX Push Notifications for Websites - Safari requestPermission callback never called

烂漫一生 提交于 2019-12-24 10:56:11
问题 Following the instructions as per Apple Documentation to allow a user with Safari to visit a website and get Push Notifications for the Apple Push Notification Service. I'm using SSL, have a certificate from Apple, and have generated the push package file. Safari downloads this when running the prompt requestPermission , displays the user permission request prompt, but on the user clicking 'approve', the callback function is never called. window.safari.pushNotification.requestPermission(url,

Not receiving Firebase push notifications when app is open?

不想你离开。 提交于 2019-12-24 10:00:32
问题 I'm using google firebase with iOS swift for push notification. I'm receiving notifications while app is open in back ground or phone is locked. But when app is open not receiving any notifications. Following is my AppDelegate. Any help would be appreciate? import UIKit import UserNotifications import Firebase import FirebaseInstanceID import FirebaseMessaging @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { var window: UIWindow?