apple-push-notifications

How to clear a remote pushed notification for iOS?

限于喜欢 提交于 2019-12-21 23:12:56
问题 So I've been reading up on remote notifications, and have finally made it work; our app is receiving notifications from our server. We now want to remove or update an unread notification if a certain condition meets on our server (e.g the notification is no longer valid). I understand that "silent" notifications are the only way to go, but I am still confused as to how. If a silent notification triggers my app to wake up, I would be able to schedule local notifications, but will I be able to

Crash when launching from push notification with iOS 9

只谈情不闲聊 提交于 2019-12-21 22:28:35
问题 If I launch my app from a push notification the app crash while showing splash screen. How can I solve this issue? The crash comes only with iOS9, while everything works with iOS8. Thanks for the help! This is my crash log: Last Exception Backtrace: 0 CoreFoundation 0x185900f5c __exceptionPreprocess + 124 1 libobjc.A.dylib 0x19a4f3f80 objc_exception_throw + 56 2 CoreFoundation 0x185900e2c +[NSException raise:format:arguments:] + 108 3 Foundation 0x1867eff3c -[NSAssertionHandler

Invalid entitlements error when adding push notifications

匆匆过客 提交于 2019-12-21 21:34:02
问题 I'm trying to add push notifications to my chat app following this tutorial: https://www.appcoda.com/firebase-push-notifications/ I've toggled Push Notifications to On in "Capabilities": My provisioning profile is set up for push notifications: I downloaded it, and double clicked it to install. For Code Signing, in Target -> Code Signing: And Project -> Code Signing: Entitlements file: When I ran the project it succeeded, then said "The executable was signed with invalid entitlements". Full

Remote Notification Token handling

主宰稳场 提交于 2019-12-21 21:33:39
问题 I'm registering my iPhone application for Remote Notification. Here my scenario: User opens my app and register for remote notification User turns notification off for my app User open my app User turns notification on for my app My questions are: Is it possible to check if the user has disabled remote notification for my app inside my app's code? If I request a new token without user turn off notification for my app, the retrieved token is different or is always the same? Should I request a

PushMeBaby does not work !

人盡茶涼 提交于 2019-12-21 21:24:57
问题 I am trying to send push notification via PushMeBaby app according to [this tutorial ,][1] but I don't know why it does not work ! I install iPusher App from itunes and worked fine ! here is my code : - (id)init { self = [super init]; if(self != nil) { self.deviceToken = @"5ce090e5 78d38a8a 149dbe46 cbe87e2e dc6c6d2a 4b97e3b7 a5d3f4c2 b09faad2"; self.payload = @"{\"aps\":{\"alert\":\"You got a new message!\",\"badge\":5,\"sound\":\"beep.wav\"},\"acme1\":\"bar\",\"acme2\":42}"; self

apple push notification with APNS sharp

岁酱吖の 提交于 2019-12-21 20:37:08
问题 i use APNS Sharp library for my apple push notification. i have downloded from Here.i use sample test program provided by APNS sharp library without any modification. it simply does not send any notification until i put break point at that line of code. if i put break point. i just work fine.is this expected behaviour or i am doing something wrong. and also i am not getting any exception. thanks for any help. here is the code static void Main(string[] args) { bool sandbox = true; string

iOS not receiving background push notification using apn nodejs

送分小仙女□ 提交于 2019-12-21 20:29:17
问题 My device is not receiving background push notifications. I'm at wits end, I've tried every tutorial I can find and searched through Stack Overflow. Device and APN are set to debug/development I can successfully register device token I have an active .p8 key with push notification services APN says the push message was sent successfully didReceiveRemoteNotification doesn't fire Tried with app in background and foreground using AWS: inbound - port 22, outbound - all ports This is the response:

Remove push from notificationcenter after app has been opened

二次信任 提交于 2019-12-21 20:22:24
问题 When I send out a PUSH notification to my app, it stays in the notification center in iOS 5. How can I remove the notification from the notification center from within the app? 回答1: Clearing the badge clears the notifications from the notification center. - (void)applicationDidBecomeActive:(UIApplication *)application { // Clear application badge when app launches [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; } This only works if the number changes. So to make it work

How to ensure that iOS app received EVERY push notification send by server?

送分小仙女□ 提交于 2019-12-21 19:40:37
问题 It is widely known that: app doesn't receive push notification if it is in background or offline mode ( app gets it once after user's action: tap on notification or app icon ). Apple push Notification service keep only ONE last notification when device is offline. Once device is connected to internet, APNs sends the last notification. How to solve this? very latest notification that just reached the app ( not device ) must reflect the actual number of notifications that are not implemented in

Max number of devices to send to APNS socket sever

家住魔仙堡 提交于 2019-12-21 18:02:28
问题 Our push notification script that has worked for almost a year has suddenly stopped working. The script does the following: Queries a DB for a list of iPhone device tokens Opens an SSL socket connection to Apple's live APNS server $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', $apnsCert); stream_context_set_option($ctx, 'ssl', 'passphrase', $pass); $fp = stream_socket_client($apnsHost, $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx); creates a payload