apple-push-notifications

No Devices Registered with Parse Push and Xamarin IOS

不问归期 提交于 2019-12-07 19:46:39
问题 I am trying to set up push notifications with Parse Push and Xamarin IOS. I have followed these guides: https://www.parse.com/docs/dotnet/guide#push-notifications-push-on-xamarin-ios https://www.parse.com/apps/quickstart#parse_push/ios/xamarin/existing https://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/ios/remote_notifications_in_ios/ https://groups.google.com/forum/#!topic/parse-developers/65WAfRIiEnA From my understanding of those I modified my

Is there any way to use the new http/2 api to send push notifications in C#?

天涯浪子 提交于 2019-12-07 19:30:15
问题 I have tried several options, the closest I've got was with httptwo, but it does not seem production ready, I've also tried with HttpClient setting version to 2.0, but the call won't pass, I think Http/2 support in .NET is not complete. Any ideas? 回答1: Currently, in the standard .NET framework, HTTP/2 is not supported in HttpClient. However, in the .NET Core framework, it is.. but it requires to be run on Windows 10 (or, I assume Windows Server 2016). You also have to use only the async

Reading error from Apple enhanced push notification with PHP

别说谁变了你拦得住时间么 提交于 2019-12-07 17:45:25
问题 Im trying to trigger an error so I can build in error logging for APNS. Therefore Im sending a too large payload to the server. But I get no error. Code: Connecting: $streamContext = stream_context_create(); stream_context_set_option($streamContext, 'ssl', 'local_cert', $this->_sslPem); stream_context_set_option($streamContext, 'ssl', 'passphrase', ""); $this->_apnsConnection = stream_socket_client("ssl://" . Config::$apns['host'] . ":" . Config::$apns['port'], $error, $errorString, $timeout,

iOS 10 push notification when app terminated?

青春壹個敷衍的年華 提交于 2019-12-07 17:04:14
问题 I'm face the problem after upgraded to iOS 10 about push notification (I am using Swift3). In normal case when application open or application still in background everything work as well (can receive push notification and update data as my logic). But when application is terminated i can't handle push notification when application become active. Here is my test case. Edit Scheme to Wait for executable to be launched. Double press home button and swipe application up. Run Xcode wait until

Batch / multiple iOS Push Notification code - works for 2 devices, but not for 100

流过昼夜 提交于 2019-12-07 15:20:22
问题 The following code works fine if the number of devices I send to is 2 - i.e., they both receive the push notifications. But if I raise that limit to 100, no push notifications are received. I have read up on this and it looks like I am sending the batch notifications correctly (i.e., multiple requests via a single connection); the timeout of the connection is set nice and high (60 seconds); the output of the code all looks in order; nothing in the apache error log, so I don't see where the

CloudKit Push Notification, App running on background

我的未来我决定 提交于 2019-12-07 09:48:27
问题 When iOS8.2-app is running in the background, it does not receive any push notification, while if it is running on the foreground, it receives the push notifications fine. Any idea what is going on ? Running on CloudKit Development mode, the subscription is for add,edit,and remove, and using the following didReceiveRemoteNotification : -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult)

rails apns for push notifications to apple ipad - which gem to use?

筅森魡賤 提交于 2019-12-07 09:00:39
问题 I'm looking to push notifications to apple from a rails 3.0.3 application. I have found a variety of apns"ish" gems including apns_on_rails. Some of them seem a bit old (1 or 2 years) and it is very unclear what would be the 'current' one to use in 2012. Can you recommend which one to use given my criteria? Which is mainstream? Which is maintained? I dislike custom github repositories and am looking for the best stable longer-term gem solution. 回答1: https://github.com/PRX/apn_on_rails We

Clickable Link in UIAlertView

核能气质少年 提交于 2019-12-07 08:54:00
问题 is it somehow possible to add a clickable link to the alert-message of an UIAlertView? Especially in case of a Push-Notification? The only solution i see, is to add the link as dictionary-item to the push alert message. If the message arrive with the link and the app is opened hereupon, i can check wheter there is a link in the dictionary and open a webview. 回答1: While adding customizations to a UIAlertView is strongly discouraged by Apple, the only way you have is to extend the UIAlertView

iOS - Delegate method when user turns on Push Notification manually in Settings

…衆ロ難τιáo~ 提交于 2019-12-07 08:49:24
问题 We know that when a user is prompted with the system dialog in an app asking for Push Notification permission, if he clicks "YES" then application:didRegisterForRemoteNotificationsWithDeviceToken: will be called, if he clicks "NO" then application:didFailToRegisterForRemoteNotificationsWithError: will be called. What if the user clicks "NO", then later on goes to Settings and manually turns on push notifications? Upon returning to the app, will a certain delegate method be triggered? I would

iOS - APNS how to use loc_key in payload

╄→尐↘猪︶ㄣ 提交于 2019-12-07 08:27:31
I have a message string i want to localize before i let APNS send a message to devices. I wish i could see the json payload itself to make me understand the structure instead of the device parsing it out for me. but anyway, how do i use the loc_key and loc_args argument ? from the docs i found: loc-key string A key to an alert-message string in a Localizable.strings file for the current localization (which is set by the user’s language preference). The key string can be formatted with %@ and %n$@ specifiers to take the variables specified in the loc-args array. See Localized Formatted Strings