apple-push-notifications

“Push notification” - feedback, uninstall application

谁都会走 提交于 2019-12-07 02:04:06
问题 Apple push notification - Feedback Service How do you know when the user uninstalls your application? so that you can remove their devicetoken from the push server. 回答1: You simply don't know. You can grab device identification string which is presumably identical for the same application token string, and track if a token has changed for the specific device. So you can update the device token with a new one, but there is no way to find out if your app was removed from a device. Update : You

Firebase Cloud Messaging not sending aps payload in correct format for iOS Notification Content & Service Extensions

二次信任 提交于 2019-12-07 01:19:51
问题 I'm trying to implement notifications using Firebase. The notification is received correctly when the app is in the background or foreground. So, the basic mechanics are working. Now I've added Content Extensions and Service Extensions to the app. The Content Extension works when I use a local notification, but the Firebase message payload seems incorrect as far as the optional fields are considered. Here is a link to an image of my console: And here is the Firebase remote notification

iOS Push Notifications with empty aps dictionary

感情迁移 提交于 2019-12-06 20:29:10
问题 Doing research to try and pick a direction for notification types. I'd like to be able to notify my app that there's new data to be refreshed but not bother the user with the popup/notification message. The idea is that the same notifications go out if the app is open or closed and when this "special" message arrives and the app is open it knows to fetch data. My idea was to send an empty aps dictionary like example 5 at the bottom of this apple document. My question is what will happen when

iOS: how to register for push notifications?

牧云@^-^@ 提交于 2019-12-06 20:07:12
问题 I'm trying to implement Push Notifications for my iOS 5 application by the guide from Ray Wenderlich: http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12. I've inserted the following into my didFinishLaunchingWithOptions method in my AppDelegate: [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; When running the application on my device (not

Not able to send push notification to iOS devices through MFP Server V8 Console

六眼飞鱼酱① 提交于 2019-12-06 19:24:27
I am trying to send a push notification to an iOS device through MobileFirstPlatform V8.0 Server Console but when I am sending the notification I am getting the following error: An error occurred while the notification was sent. Internal server error. No devices found. I checked in Home -> mfp -> Devices , the devices exist there: I am able to successfullly send a notification to the android devices. Its just the iOS ones which are causing the problem. UPDATE I enabled the trace and when I am sending the notifications, i am getting below Exception: [3/1/17 10:16:29:211 CST] 00005aa0

Apple PushKit didUpdatePushCredentials is never called on iOS 9+

£可爱£侵袭症+ 提交于 2019-12-06 18:47:44
问题 I am developing a VoIP app for iPhone. To receive calls, Apple developed PushKit so developers can send VoIP notifications using APNS. Everything was working fine on iOS 8. When I updated to iOS 9, the PKRegistryDelegate does not fire the method didUpdatePushCredentials after registration. Any ideas/suggestions? 回答1: Enabling the "Push notification" flag from Project->Capabilities solved my issue. It's strange because it was working without it earlier. This reply maybe late but hopefully this

pubnub.com and pusher.com - does it send push notification to mobile? [closed]

夙愿已清 提交于 2019-12-06 16:39:37
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . How does it work? do these service also send push notification to a mobile device iphone/android? (even if the device is switched off?) 回答1: How does it

Apns-alert customization

自闭症网瘾萝莉.ら 提交于 2019-12-06 16:39:01
I have successfully used APNS in iphone app and still have a problem the alert customization.Below is my question: 1 I can't custom the Alert view,like title and button title.I custom the alert like: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { NSDictionary *apsDic = [userInfo valueForKey:@"aps"]; NSString *alertStr = [apsDic valueForKey:@"alert"]; NSNumber *badgeNum = [apsDic valueForKey:@"badge"]; NSString *soundStr = [apsDic valueForKey:@"sound"]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:[arr objectAtIndex:1] message

PLSQL APPLE push notifiactions

淺唱寂寞╮ 提交于 2019-12-06 15:44:46
I have a problem with notifications. I'm using Oracle apex with rest services. How to send push notifications to APN iphone from pl/sql? Are you using Java in database? We successfully implemented the solution in our java code with java-apns You create a service: InputStream resourceAsStream = Thread .currentThread() .getContextClassLoader() .getResourceAsStream("Certificate.p12"); ApnsService service = APNS.newService() .withCert(resourceAsStream, "CERTNAME") .withProductionDestination() .build(); Then you create a payload: String payload = APNS.newPayload() .sound("default") .alertBody

Apple push notification new protocol not working

偶尔善良 提交于 2019-12-06 15:38:50
I am testing Apple push notification. I found, that APNs accept only old protocol format. Sending data with new format is not working. Here is an example with old (working) protocol. import struct import socket import json payload = { 'aps': { 'alert': '123!', 'sound': 'default' } } payload = json.dumps(payload) payload_len = len(payload) notification = struct.pack('>bh32sh{payload_len}s'.format(payload_len=len(payload)), 0, 32, token.decode('hex'), len(payload), payload) And here is example, which doesn't work: import struct import socket import json payload = { 'aps': { 'alert': '123!',