apple-push-notifications

How can I generate pem file for push notifications in iphone?

泪湿孤枕 提交于 2019-11-28 17:59:43
Using this link for generate pem file for push notification, but I can't understand following steps... Installing the SSL Certificate and Key on the Server You should install the SSL distribution certificate and private cryptographic key you obtained earlier on the server computer on which the provider code runs and from which it connects with the sandbox or production versions of APNs. To do so, complete the following steps: Open Keychain Access utility and click the My Certificates category in the left pane. Find the certificate you want to install and disclose its contents. You'll see both

iOS 10 UNUserNotificationCenterDelegate not called. push notifications not working

痴心易碎 提交于 2019-11-28 17:29:03
问题 Tearing my hair out tying to get push notifications to work in iOS10. Current setup: in func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool : if #available(iOS 10.0, *) { let center = UNUserNotificationCenter.current() center.delegate = self center.requestAuthorization(options: [.alert, .badge, .sound]) { (granted, error) in if error == nil { print("DID REQUEST THE NOTIFICATION") UIApplication.shared

Firebase causes issue “Missing Push Notification Entitlement” after delivery to itunes connect

戏子无情 提交于 2019-11-28 17:27:16
As you may be aware, Google starts to use Firebase as analytics so I want to use it in my current project. I succesfully finished the implementation and upload project to iTunes Connect. But I got mail below. I do not want to use push notificaiton option of Firebase but its included in SDK. Do I need to remove it?how? Will it cause to get rejection from review? Dear developer, We have discovered one or more issues with your recent delivery for "Instant Baby Dream". Your delivery was successful, but you may wish to correct the following issues in your next delivery: Missing Push Notification

iOS Enterprise developer Account: get device token

北城余情 提交于 2019-11-28 17:17:46
问题 I have used the iOS development account for creating APNS SSL certificate for sending the push notification to an iOS device for development purpose. I can get the device token using objective c sample code in iOS device.Then I can use that device token to send push notification for that specific iOS device. Now I am going to implement MDM and for MDM iOS Enterprise account is required. There are some questions, which I want to confirm if someone has already done. So I want to know can I use

Push Notification ON or OFF Checking in iOS

帅比萌擦擦* 提交于 2019-11-28 17:04:58
I want to check "Push Notification option" in iOS device, any time if the application is running (or ON from resume mode). I use the following code to check, if the option is OFF: -(void)PushNotificationServiceChecking { UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; if (types == UIRemoteNotificationTypeNone) { NSString *msg = @"Please press ON to enable Push Notification"; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Push Notification Service Disable" message:msg delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"ON

Is Apple Push notification using APNS free of cost?

强颜欢笑 提交于 2019-11-28 17:03:37
问题 We are planning to develop the push notification service for a telecom operator. But I haven't got any information whether the APNS push service is free of cost or should we make any payment? My questions are, Should I pay for using the APNS push service? If operator want to sent push notification to millions of subscribers, should we pay to Apple or is it absolutely free? If not free, please share the URL where payment details are available. Is there any limit for the number of notification

How to generate development MDM/APNS certificate?

醉酒当歌 提交于 2019-11-28 16:54:25
问题 We have taken iOS developer Enterprise account and we have received the MDM certificate which is in .pem format.We have download this mdm certificate from the portal https://identity.apple.com/pushcert/ But we don't have idea that this is production MDM certificate or development MDM certificate. First we want to test MDM commands using development certificate and after getting MDM payloads,we can can continue for production. So my question is how to create MDM/APNS certificate which can be

Receiving push notification on PhoneGap for iOS

こ雲淡風輕ζ 提交于 2019-11-28 16:49:55
问题 Hello everybody I would like to receive Apple push notifications through my PhoneGap container. Does anybody now if it has already been implemented? Thanks a lot 回答1: Yes, you can. See Urban Airships documentation for Phonegap iOS plugin 回答2: Yes we can check these links: can we do push notification in iphone using phonegap fremwork? How to implement UA push notifications with PhoneGap 回答3: This one is pretty good - https://github.com/phonegap-build/PushPlugin Here is a tutorial using the

Apple Push Notification Service

蓝咒 提交于 2019-11-28 16:35:05
i tried to run using local mac machine but go the following errors Warning: stream_socket_client() [function.stream-socket-client]: Unable to set private key file `/Applications/XAMPP/xamppfiles/htdocs/apns/apns-dev.pem’ in /Applications/XAMPP/xamppfiles/htdocs/apns/apns.php on line 9 Warning: stream_socket_client() [function.stream-socket-client]: failed to create an SSL handle in /Applications/XAMPP/xamppfiles/htdocs/apns/apns.php on line 9 Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /Applications/XAMPP/xamppfiles/htdocs/apns/apns.php on line 9

Controlling which view controller loads after receiving a push notification in SWIFT

孤者浪人 提交于 2019-11-28 16:23:35
Once I receive a push notification and swipe to open it, it just opens my app and not the VC I want. So my question is how do I load the VC I want? I know if the app is open I would move the VC over to another inside the didReceiveRemoteNotification but how do I do it if the app isn't open? or if it is in background mode? Also I have TWO different push notifications, so therefore I need it to move ONE of TWO different VCs. How can I tell the difference between different push notifactions? Thanks. Updated for Swift 4.2 Like it was said, you want to register to remote notifications in