apple-push-notifications

Reset urbanairship badge count

僤鯓⒐⒋嵵緔 提交于 2019-12-05 19:10:05
Problem: Let say I get 3 notification. It shows the badge count 3 on my app icon. I open the app or click on the notification and it clears the badge (All Good so far) Now when I get a new notification, the badge count shown on my app icon is 4 instead of 1 That means that the badge count was not reset on Urbanairship end My Code so far: -(void)resetBadgeNotifications:(UIApplication *)application using:(NSDictionary *)notificationInfo{ if( notificationInfo != nil ){ [[NSNotificationCenter defaultCenter] postNotificationName:@"newNotification" object:notificationInfo]; } application

Apple push notification server on Amazon EC2 connected but not receive notification

扶醉桌前 提交于 2019-12-05 18:42:32
I tried the apple push notification API and made it work on my local mac(environment). I tested it in my local tomcat, everything works fine and iOS devices receive notifications as excepted. But when I deploy my war into the tomcat at remote server( Amazon EC2 instance), noted that I use the same .p12 file for verification. The application returns a successful message but the iOS devices could not receive any messages. I checked the connection with Apple push server, everything seems fine. I am wondering if I missed any other system set up for this Amazon EC2. The same code works on a tomcat

iOS 10 push notification when app terminated?

雨燕双飞 提交于 2019-12-05 18:22:06
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 "Wait for application to launch" shown. Test send push notification from server. Device received push

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

这一生的挚爱 提交于 2019-12-05 18:17:47
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. https://github.com/PRX/apn_on_rails We maintain it, and I just updated it to now be rails 3 compatible. You need to add it to your gemfile, and run

Google Cloud Messaging showing success message but not sending iOS

别来无恙 提交于 2019-12-05 18:15:28
问题 So I have run into a very strange problem with Google Cloud Messaging. The problem I am having is that it is registering the devices successfully, and when a message is sent I get a success message from Google. But the devices never receive any messages. The message I get back from GCM is: "result": "Push notification sent successfully: {\"multicast_id\":6008387530769664000,\"success\":1,\"failure\":0,\"canonical_ids\":0,\"results\":[{\"message_id\":\"0:1442824842607522%73fc535e73fc535e\"}]}"

OneSignal Not calling didReceiveRemoteNotification

帅比萌擦擦* 提交于 2019-12-05 17:17:46
We migrated from UA to One Signal. We are sending push from cloud code like var pushInfo = { "app_id" : "xxxxxx", "data": { "objectId": objectId, "placeId": placeId, }, "included_segments": ["All Users"], "contents": {"en": message} }; var headers = { "Content-Type": "application/json; charset=utf-8", "Authorization": "Basic XXXXX" }; var options = { host: "onesignal.com", port: 443, path: "/api/v1/notifications", method: "POST", headers: headers, }; var https = require('https'); var req = https.request(options, function(res) { res.on('data', function(data) { console.log("Response:"); console

iOS Push Notification - How many can I send from my server in a minute?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 17:17:28
I'm planning to update my app with push support. I connect to the Apple server with a php script and send all the pushs at once, the close the connection. How many can I send in a minute? Do you guys have any experience with that? All the best, John PS: Can you recommend pushwoosh.com or urbanairship.com ? How fast do they deliver Pushs? Here's what Apple say regarding push speed in their Technical Note : Push Notification Throughput and Error Checking There are no caps or batch size limits for using APNs. The iOS 6.1 press release stated that APNs has sent over 4 trillion push notifications

Keep receiving iOS push notifications after disabling them in settings app

筅森魡賤 提交于 2019-12-05 15:45:09
During the testing of remote push notifications in my App I faced some strange behavior: I keep getting notifications even if I turn off the "notifications enabled" for my application option in settings App. Is that normal? Should my App unsubscribe from getting notifications itself after disabling that option, or it is response of iOS? Or should I do something special when registering for remote notifications? Or maybe its normal for "sandbox" notifications? Tested on iOS 5.1 on iPhone 4. The UI for disabling notifications is confusing, I think. Switching 'Notification Centre' to OFF is not

iOS APNS through Amazon SNS and Unity - Cannot create a development iOS certificate

人走茶凉 提交于 2019-12-05 15:35:27
I'm trying to set up push notifications through Amazon SNS in Unity. I have the Android side of things working perfectly but we're having issues with iOS. I am able to get the device to register to a Apple Production SNS application and subscribe to a topic but as soon as I attempt to send a notification the endpoints "Enabled" status becomes "False". I read that this could be due to the certificate being set as Production although we followed the instructions on creating a Development certificate, when I try uploading the .p12 file to create an Apple Development platform in SNS it always

Limits on iPhone push notification sounds?

折月煮酒 提交于 2019-12-05 15:12:11
问题 Does anybody know of any limitations on the sounds that can be played when an iPhone app receives a push notification? Specifically, is there a maximum sound length? Also, I am assuming that the volume of the sound will match whatever the user has set their ringer volume to, and if set to vibrate mode, the phone will vibrate instead of playing a sound. Is this correct? 回答1: I have tested the maximum length of a push notification audio alert, which not surprisingly turned out to be 30 seconds.