apple-push-notifications

How to run app with UNNotificationServiceExtension on pre iOS 10?

末鹿安然 提交于 2019-12-11 08:12:53
问题 My app implements the new iOS 10 rich push NotificationService extension. Everything works as expected on iOS 10, but I also want to support pre iOS 10 devices - of course not rich push, but just regular push. When lowering the deployment target in Xcode to e.g. 8.0 or 9.0 and trying to run on an older simulator or device i get the following errors: Simulator: The operation couldn’t be completed. (LaunchServicesError error 0.) Device: This app contains an app extension that specifies an

Custom sounds in remote notifications iOS 10, swift 3

有些话、适合烂在心里 提交于 2019-12-11 06:19:32
问题 I've a big problem with a custom sounds in remote notifications. This is my scenario: I've two types of notifications each one with a custom sound. The sound, plays like a charm, when my app is inactive or in background, and the OS shows the notification in notification center banner-alert. When the notification is received in foreground state, I process the notification, extract the aps sound element and I play the sound via AVAudioPlayer: func playSound(_ sound: String) { myLog("Let's play

Send notification to everybody but user who triggered it?

a 夏天 提交于 2019-12-11 05:57:25
问题 I'm using Firebase Messaging to send out notifications to users of my iPhone app. My database is structured like this: - Users - user1 - user2 - Groups - group1 - members - user1 - user2 When a user joins a group they get subscribed to a topic corresponding to that group. I have a cloud function that listens for writes in that group, and sends a notification to the groups topic when a write happens: exports.sendNotifs = functions.database .ref('pets/{petId}/events/{eventId}').onWrite(event =>

unable to integrate One-Signal Push notification in ios

巧了我就是萌 提交于 2019-12-11 05:51:43
问题 i have tried to integrate One-signal as per given documents on their site but when i install framwork through podfile , at this time i got 0 percent dependancy so how to integrate proper way??? in ios Xcode 8. i have tried this Steps: Option A: Use CocoaPods (Recommended) Setting up CocoaPods on your system if you don't have it already. Make sure you have the latest 1.1.0 version by running pod --version from the terminal. Run the following to upgrade sudo gem install cocoapods 1.1 Make sure

APNS Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000

无人久伴 提交于 2019-12-11 04:52:54
问题 Hello everyone i have beenn working in several projects and all push notification were working either on developemnt or prodcution. However i am not getting this error : "Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000" since yesterday. I have tried to create a new provisioning but its shut down for maintenance. Is it due to this? Thanks in advance. 回答1: Ensure the Bundle Identifier matches the one in your project's plist. Create a new App ID, and configure it for

user to user push notifications

偶尔善良 提交于 2019-12-11 04:38:26
问题 I have seen many questions on here and online that address this topic, but they all are from a long time ago, and are possibly outdated. I wanted to get a more recent answer if Firebase has implemented anything recently that is capable of a user to user push notification system, essentially what is used in all chat applications, or if the best option is still currently using Onesignal. 回答1: Yes! These days, you can use Cloud Functions for Firebase to do things like send a notification when

Apple Push Notification Service doesn't works in Production Build using Urban Airship in iPhone?

╄→гoц情女王★ 提交于 2019-12-11 04:32:38
问题 I have used Apple Push Notification in my apps and it works fine in Adhoc Distribution. I have submitted my apps into the AppStore, But push notification is not working for my apps and received message like "Apple rejected your device tokens". I have used separate .p12 files for development and production builds and uploaded in the Urban Airship. Note: But i have used the same application key and application master key for development and production. So that it didn't works for the push

APNS PHP JSON Payload structure

这一生的挚爱 提交于 2019-12-11 04:09:29
问题 I am sending push notifications via a PHP script to connect to APNS server. Everything is working fine when I use the below payload structure. $body['aps'] = array( 'alert' => $message, 'badge' => $badge, 'sound' => 'default' ); $payload = json_encode($body); However, I need to add more parameters to the 'alert' element as well as want to add some more custom parameters. The way I do is is as follows, but APNS is not accepting the JSON. Is it a problem with my JSON creation method in PHP?

iOs emojis show as Unicode characters in push notification using java

六月ゝ 毕业季﹏ 提交于 2019-12-11 04:06:55
问题 In apple push notification I am sending emojis in payload and they as showing as Unicode characters in notification. Using ApnsPayloadBuilder to create payload and sending message like payloadBuilder.setAlertBody(new String(msg, "UTF-8")); I am getting this message from our database and emojis are storing like nice \u270c\ufe0f\ud83d\udc4d in db. How do I solve this issue? 回答1: You need to send the unicode character in the payload, not as an emoji. So for the winking face in your payload,

iOS MDM Certificates Expiry

邮差的信 提交于 2019-12-11 03:36:23
问题 I am creating an MDM Server and have successfully completed all the steps and was able to install the profile on the device. In the .mobileconfig file which is installed on the device, we pass the SSL certificate, APNS certificate and profile information. 1) What if the SSL Certificate on the server is changed? (I guess this is not practiced by many or not practiced at all but still want to know what happens when this case occurs) 2) What happens after the APNS certificate is expired after