apple-push-notifications

Update user's location in background (iOS)

瘦欲@ 提交于 2019-12-12 03:54:39
问题 I'm building an app that takes the user's location and checks if he's near one of his friend's house (all the friends addresses are stored in NSMutableArray from his contact list), if he is, it sends him a push notification. Now, I'm trying to figure out how I can get the user's location when the app is in the background (and even after the user killed the app from the multitasking screen). I need to analyze his location and check if he is near one of the addresses on the array. Does anybody

n-th Apple push notification not sent if (n-1)-th has wrong token

笑着哭i 提交于 2019-12-12 03:43:31
问题 I am having some problems with apn, using simple format. This is the scenario: 1) I have a persistent connection to apn push service. 2) I send in a row 10 messages, where for example the 5th can have wrong device token 3) All messages from 1 to 4 are sent correctly 4) I receive a message from the socket of successful sending for all messages (included the ones from 5th to 10th). 5) message from 6th to 10th are not pushed to users. 6) after a while connection is closed by apn server am i

Titanium mobile / Apple Push notifications What is the most logical place to insert the callback

痴心易碎 提交于 2019-12-12 03:37:58
问题 Question, What I want to achieve is to have a centralised place for the notifications to be received, so no matter on what window or tab a user is the notification will be received and callback functions to be fired. If a project relies heavily on the Apple Push Notifications what would (In Titanium Mobile) be the best place to insert the code for the notification requests and callback. I thought this would happen automatically but it does not, currently I have the

Interactive push notifications - Hide/Show buttons

蓝咒 提交于 2019-12-12 03:37:50
问题 I followed this tutorial to display buttons on a push notification. Buttons are registered by calling registerNotification in didFinishLaunchingWithOptions . However, in few cases I need to display a simple notification without any buttons. How to show/hide the buttons for different notifications ? 回答1: For adding another kind of interactive notification with no button you will have to update the UIUserNotificationSettings . Create a new notification category UIMutableUserNotificationCategory

iOS Push notifications : invalid tokens

こ雲淡風輕ζ 提交于 2019-12-12 03:13:50
问题 I have published an app, and am sure that am using distribution(ad hoc) push certificate and using Push Wizard on the server side for sending push notifications. Am getting the following error while I try to send the push : Status: Sent, but found invalid token(s) This thing worked while I created ad hoc builds.What could possibly be wrong? 回答1: Is your device id (Device Token) is correct? 来源: https://stackoverflow.com/questions/39702398/ios-push-notifications-invalid-tokens

Apple Notification Device Token change

守給你的承諾、 提交于 2019-12-12 03:04:43
问题 I'm facing an issue after updating my app. I'm getting a device token in this format C43461D5-E9CB-4C10-81F8-020327A07A62 and the notifications aren't working. Before, I had a notification in this format: 2add70865401171c7ca1d3b3957b719eaf721fef8f8d7a52bc91ef8a872cc004 I did allow notifications for the app and I've not changed anything in the backend. Can anyone guide me why it's not working? Code in didFinishLaunchingWithOptions : if ([[[UIDevice currentDevice] systemVersion] floatValue] >=

Integrating PushWoosh on iOS 7 not getting subscribed on pushwoosh

跟風遠走 提交于 2019-12-12 02:52:26
问题 As Mentioned on Their Site 3 steps Step 1 - Add Push NotificationsSDK to your project (Done) Step 2 - In Info.plist add the following key Pushwoosh_APPID with your Pushwoosh id Step 3 - Add below code in App delegate #import "PushNotificationManager.h - (void) onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification { NSLog(@"Push notification received"); } I did all these three simple steps but I am not being subscribed to my app on PushWoosh.

iOS Background Task/Push Notification

别来无恙 提交于 2019-12-12 02:12:55
问题 I am building an app that needs to speak data while the app is in the background (or screen is off). The speaking part is done via AVSpeechSynthesizer. My Android app launches a service that listens for the data and whenever it needs to say something, I say it and its done. Now iOS doesn't allow these kind background tasks from what I read. The closet thing is called 'Executing Finite-Length Tasks' which looks like has a time limit of 10 mins max. So this will not work for me. Instead it

PHP iOS Push notifications arabic multilingual text larger in size

有些话、适合烂在心里 提交于 2019-12-12 02:09:21
问题 I don't really know how to ask these but hopefully i can make myself clear enough for you to understand my questions Below is the Arabic text which I want to send via Apple iPhone Push Notifications : يبدا بقرص العقيلي واللقيمات وينتهي مع خالد حرية بالامارات نكهة وبهار مع القصار-٦ مساءا على يشان الليله في انا والعسل مع غاده عبدالرازق تلفزيون الكويت Can i send this long text? Because when I prepare a payload, it says 360 bytes of size. While Apple allows only 256 bytes of payload. What can be

secured or encrypted push notification messages from MobileFirst server

旧城冷巷雨未停 提交于 2019-12-12 01:49:55
问题 We are developing an Banking Mobile application using MobileFirst Platform Foundation 7.1 which should be much secured. I implemented the normal IBM MobileFirst push notification in our application. Now client requirement is that to send some secured information to the customer as notification, hence want to send secured or encrypted push notification messages to the mobile client from MobileFirst server through GCM or APNS. Is there any built-in MobileFirst API available to fulfill the