apple-push-notifications

How to know “topic” name from Firebase notification on iOS

你说的曾经没有我的故事 提交于 2020-01-11 08:42:45
问题 I'm trying to use Firebase in my iOS application. I successfully integrated it and receiving notifications from all 3 Targets (user segment, topic and single device). My question is how to know a particular notification is received from which topic? I'm following this documentation and this github page EDIT: I'm testing on iOS11.2 (XCode9.2) & my response (userInfo) is: { aps = { alert = test; sound = default; }; "gcm.message_id" = "0:1513282329413512%38894e8e28894e8e"; "gcm.n.e" = 1; "gcm

How to install Apple Push certificate on Windows server

≯℡__Kan透↙ 提交于 2020-01-11 03:15:08
问题 I need to install the certificate I've downloaded from apple dev portal in order to test the push notification on my Windows server. I searched online a solution but everyone says different things about it, Does anyone has a step by step guide on how to do this? 回答1: I have also been researching this subject. The following links may be useful to you: http://loudsoftware.com/?p=186 https://arashnorouzi.wordpress.com/2011/04/01/sending-apple-push-notifications-in-asp-net-%e2%80%93-part-2

MDM: APNS notification does not reach iPhone

折月煮酒 提交于 2020-01-10 20:14:46
问题 A notice does not reach a terminal. Please let me know. Hello. Thank you. iPhone 4S iOS 5.1 I wrote the following ruby script. And it performed from the MDM server. However, a notice does not reach an iPhone terminal. Please let me know. A setup by ."mobileconfig" was completed and the topic and the device token have been PUT to the MDM server. It checked that the right information was also acquirable, It is confirmed that renewal of a message or a badge is made to an iPhone terminal in APNs.

MDM: APNS notification does not reach iPhone

社会主义新天地 提交于 2020-01-10 20:14:09
问题 A notice does not reach a terminal. Please let me know. Hello. Thank you. iPhone 4S iOS 5.1 I wrote the following ruby script. And it performed from the MDM server. However, a notice does not reach an iPhone terminal. Please let me know. A setup by ."mobileconfig" was completed and the topic and the device token have been PUT to the MDM server. It checked that the right information was also acquirable, It is confirmed that renewal of a message or a badge is made to an iPhone terminal in APNs.

Duplicate push notifications on iOS

微笑、不失礼 提交于 2020-01-10 19:27:12
问题 This question is probably the same as Duplicate Apple APNS push notifications?, but since that one didn't get an answer, and I have some more information, I'll try to ask it again. Steps to reproduce the problem: Set notification center to display notifications as alerts, this will make the problem more obvious. Make sure the app isn't running in the foreground. Send 3 identical push-notifications in rapid succession. Wait until the messages arrive at the phone, you will now have to dismiss

Determine whether app is communicating with APNS sandbox or production environment

落花浮王杯 提交于 2020-01-10 07:43:29
问题 I have push notifications set up in my app. I'm trying to determine whether the device token I've received from APNS in the application:didRegisterForRemoteNotificationsWithDeviceToken: method came from the sandbox or development environment. If I can distinguish which environment initialized the token, I'll be able to tell my server to which environment to send the push notification. I've tried using the DEBUG macro to determine this, but I've seen some strange behavior with this and don't

Customizing the iOS permission dialog for push notifications

随声附和 提交于 2020-01-09 19:36:28
问题 When an iOS app attempts to register for push notifications for the first time, the system pops up a permissions dialog asking the user for permission to receive push notifications. Is it possible to customize the text of this dialog, to explain why these permissions are being sought? Most permission dialog messages can be customized by putting in an NS*UsageDescription Info.plist key. For example the NSCameraUsageDescription key controls what dialog text to display when requesting access to

How to clear push notification badge count in iOS?

大憨熊 提交于 2020-01-09 13:12:41
问题 I want to clear the push notification badge count once app is launched.Im not clear where to set the below code.Please give brief description about clearing the badge count. [UIApplication sharedApplication].applicationIconBadgeNumber = 0; 回答1: You should set this: [UIApplication sharedApplication].applicationIconBadgeNumber = 0; in either of these AppDelegate methods if the application is launched and sent to background then you launch the application didFinishLaunchingWithOptions method

How to check connectivity of apns port 2195 from my hosting server?

断了今生、忘了曾经 提交于 2020-01-09 12:49:26
问题 I want to check if Push Notification can be done using a hosting server before purchasing hosting plan.what is the shortest way to check this.Also i have godaddy.com's hosting plan can i use push notification from godaddy's hosting server? 回答1: You can confirm definitively by using telnet and specifying which port to connect to. From the command line run: MyServer:~ Home$ telnet gateway.sandbox.push.apple.com 2195 Trying 17.149.34.143... Connected to gateway.sandbox.push-apple.com.akadns.net.

How to check connectivity of apns port 2195 from my hosting server?

左心房为你撑大大i 提交于 2020-01-09 12:49:09
问题 I want to check if Push Notification can be done using a hosting server before purchasing hosting plan.what is the shortest way to check this.Also i have godaddy.com's hosting plan can i use push notification from godaddy's hosting server? 回答1: You can confirm definitively by using telnet and specifying which port to connect to. From the command line run: MyServer:~ Home$ telnet gateway.sandbox.push.apple.com 2195 Trying 17.149.34.143... Connected to gateway.sandbox.push-apple.com.akadns.net.