apple-push-notifications

Can Apple's silent push notifications launch my app in the background?

别等时光非礼了梦想. 提交于 2019-11-30 21:58:27
According to Apple's documentation I can register for silent notification by adding "content-available" = 1 key-value in aps payload dictionary. I want my app to wake up in background when a silent notification arrives. I set App downloads content in response to push notifications value to Required background modes in my info.plist This is my payload dictionary {"aps": { "alert":"Notification alert","badge":1,"sound":"default","content-available":1 } } I am getting callbacks in -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

How to install Apple Push certificate on Windows server

大城市里の小女人 提交于 2019-11-30 21:20:32
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? Various Artist 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-generating-apns-certificates/ I finally got this working by following these key points that I

Are there rate limits on silent push notifications in iOS 7?

时光毁灭记忆、已成空白 提交于 2019-11-30 21:00:48
I saw one reference to limits on silent push notifications: "Silent pushes are rate limited—a handful per hour" (From WWDC 2013: http://devstreaming.apple.com/videos/wwdc/2013/204xex2xvpdncz9kdb17lmfooh/204/204.pdf ) I haven't seen this documented anywhere else, and in our experiments we have not seen any such limit. Does anyone know if this is something we need to take into account? All descriptions of regular APNs seem to imply that there is no limit, and while they are not necessarily received in real time, they should eventually be delivered. We are looking into using silent notifications

Send Push Notifications to all users

大城市里の小女人 提交于 2019-11-30 21:00:33
问题 So, I have an App. This app, send a Push Notification using this PHP code: <?php $deviceToken = '4bc9b8e71b9......235095a22d'; // Put your private key's passphrase here: $passphrase = '12345'; // Put your alert message here: $message = 'My Message Here!'; //////////////////////////////////////////////////////////////////////////////// $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck.pem'); stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase

Device to Device Notifications in iOS

荒凉一梦 提交于 2019-11-30 20:58:26
问题 I'm a newbie iOS developer and trying to implement device to device notification in iOS something to handle friend requests etc.. I'm looking for documentation that guides me in the process. I'm using firebase as my backend system but I'm cannot find any documentation about device to device notification . I also checked out One Signal but still having hard time figuring out how this is implemented , Can anyone point me in the right direction 回答1: You'd need to implement this logic with server

Java APNS (Apple Push Notification Service) error

混江龙づ霸主 提交于 2019-11-30 20:48:54
I am trying to use Java APNS - an open source project - to send push notifications to iPhones. I am getting an error, though. I have used a .pem file as certificate. Should this have been a .p12 file? I am not sure what the difference is, but I read somewhere online that there is a difference between these file formats. Here is the code: ApnsService service = APNS.newService() .withCert("gpk.pem", "XXXX") .withSandboxDestination() .build(); String payload = APNS.newPayload().alertBody("Can't be simpler than this!").build(); String token = "theTokenIsRemoveHere"; service.push(token, payload);

Apple Push Notification Limits

雨燕双飞 提交于 2019-11-30 20:45:30
I'm developing an iOS application that uses push notifications, I have implemented the app and the server side and it works great if I send just one or two notifications. The problem comes when I need to send the same notification to all of my users, the notifications only get to the first users of the loop. I'm in sandbox, so I wonder if there is any limit for sandbox environment, because I have read that the APNS service has no limit. Any idea? Thanks in advance, UPDATED SOLUTION: I had to check apple response, I was sending push to invalid tokens and Apple disconnected me from server. With

IOS Cancelling Local Notifications

烂漫一生 提交于 2019-11-30 20:39:34
I dont like asking vague questions but I couldnt exactly tell what the problem is. In my app I set some daily local notifications. Shooting everyday at 200PM. I later removed the codes that sets the local notifications, and added push notification feature. I test the push and it works (whenever I want to). But I still get the old notifications as well, could it be because I set them earlier somewhere on the phone itself. Is there a way to cancel them without coding. For example are they cancelled if I remove the app? danielbeard Uninstalling the app will remove the local notifications,

My exported .ipa file of push notification app didn't send notification on device when installing via iTunes instead of Xcode build [Development]

不打扰是莪最后的温柔 提交于 2019-11-30 20:21:22
问题 I used OneSignal for push notification service. (Development) I set Provision Profile of push notification service for my app When I run from Xcode,everything works fine on every device. But,when I create archive(.ipa) with Debug Scheme and install via iTunes,the device seem to connect to OneSignal Push Notification service.But,can't receive notification from our backend service that was connected to OneSignal. So,I think there is a problem with APNS Any help with that?Did I do something

Open view controller when receiving remote Push Notification

自闭症网瘾萝莉.ら 提交于 2019-11-30 20:11:55
I'm using storyboard , and I want to open always the same view when user receives remote push notifications, even the app is in background or opened. The view I need to present is four views after the initial view controller set in the storyboard. I read this posts: How can I show a modal view in response to a notification as a new window? (no parent vc) Open a specific tab/view when user receives a push notification So here is my code: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { UINavigationController *navController =