apple-push-notifications

Stuck creating p12 file for MoonAPNS

怎甘沉沦 提交于 2019-12-10 11:34:19
问题 I am having some trouble creating my .p12 certificate. I have previously created an application with push notification, this works fine. The application takes the users device id and saves it into a database. I have added the code into my new application(with the amendments to work with the new application), and from the Log it seems to be working in the same way as my other app. I have downloaded the relevant files that i need and then i know i needed to use ssl to be able to create my new

iOS : Why our app sometimes doesn't show in the Notification Center?

谁说胖子不能爱 提交于 2019-12-10 11:19:16
问题 There are 3 kinds of situations about this problem. During the development, I can restart the iPhone and reinstall the app to solve this problem. At first, this problem often occurs in the jailbreak iPhone, so we think that there may be something wrong with the Provisioning Profiles. But now, more and more users complain about this (could not receive push), who use the normal iPhone (not jailbreak) and download our app from the App Store. So, I'm confused, and a little worried, about why our

Push notifications not working properly when the app is not active (killed)

梦想的初衷 提交于 2019-12-10 11:19:08
问题 I'm facing a problem with push notifications, I'm using Google Cloud Messaging, My problem is that my app works with some cached data, and I refresh that cache with the data coming from push notificacions, so when the app is killed by the user (home button + swipe-up) and the app receive a push notification it doesn't call the method didReceiveRemoteNotification , so the app can't access to the payload of that notification and update the cached data. So, is there a way to achieve this? Only

azure notification hubs - app uninstall

北城以北 提交于 2019-12-10 11:17:44
问题 I would like to use Azure Notification Hubs to send push notifications to users of my app running across iOS, Android and Windows Phone. I have managed to get the basics working but I don't know how to manage the App uninstall story. On starting, the mobile app will call my Identity Svc to get an Auth Token. It then calls its Platform Notification service (eg Google Cloud Messaging, APNS) to get a PNS Token. After persisting the token to local storage it will call a back-end Contact Svc to

Extract “alert” text from push notification

大兔子大兔子 提交于 2019-12-10 11:08:48
问题 I have the following code placed in my app delegate file. In theory, it should be extracting the message from the push notification and displaying it in a UIAlertview - yet it displays the title and the candle button, and nothing else. Can anybody see where I am going wrong? - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { [PFPush handlePush:userInfo]; pushText = [userInfo objectForKey:@"alert"]; UIAlertView *alert = [[UIAlertView alloc]

Update my app when it is in background

坚强是说给别人听的谎言 提交于 2019-12-10 10:58:59
问题 I want to update some data to my application. Consider the application is in the background state, it is neither Voip or Music or GPS. Is it possible to update/send data to the application which is in background? NOTE: I dont want to notify the user so that the application becomes active. Can anyone help me ?? 回答1: The answer is yes and no. Apple does allow you app to complete a lengthy process in the background. But if you does not fall in the Voip, music or GPS category then you can't run

no valid 'aps-environment' entitlement string found for application while debugging on xamarin for ios

守給你的承諾、 提交于 2019-12-10 10:37:50
问题 I am working on xamarin for ios. Its was working on my older machine. But, then i had to switch to new machine and recreate all the certificates and everything for the new machine. I have created the app ID. Then created the aps certificates and then created the provisioning profile. In Debug I have provided the downloaded provisioning profile. But still I am getting this same error. And my app is unable to get the device token. I am searching a lot since last night. And have done the

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

a 夏天 提交于 2019-12-10 10:22:20
问题 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

APNS spoof/fake

自作多情 提交于 2019-12-10 10:16:25
问题 I want to have a standalone network (no internet access) for testing. Is there any way to spoof the APNS servers to test notifications and MDM. Is there a way to create your own APNS server. 回答1: Sure. The APNS protocol is defined in Apple's documentation here: The Binary Interface and Notification Formats. Basically, it's just an SSL server that speaks a simple binary protocol. We have implemented a mock push server and feedback server for our internal testing. 来源: https://stackoverflow.com

OneSignal Not calling didReceiveRemoteNotification

三世轮回 提交于 2019-12-10 09:25:13
问题 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 =