apple-push-notifications

Push notifications: Why use Amazon SNS over Google's GCM/FCM?

为君一笑 提交于 2019-12-19 16:54:40
问题 I have created a mobile app for Android and iOS using Phonegap Build. Last year I had nearly finished writing code to use GCM (Google Cloud Messaging) for remote push notifications - which can go out via Apple's APNS too - but the project was shelved. This year the project is resurrected and I find Google has changed everything to Firebase (FCM). I then read some enticing things about Amazon SNS handling notifications. Just when I started to think SNS might be a better option, I noticed you

APNS - notifications push ios: Connection reset by peer PHP

不问归期 提交于 2019-12-19 11:42:23
问题 I have had Push Notifications working fine. But some of the times, from nowhere it starts giving error: stream_socket_client(): SSL: Connection reset by peer Weird thing is i don't have to do anything to resolve it but wait. After sometime, it starts working back again. I know it is a duplicate of many questions like: notifications-push-ios-connection-reset-by-peer But none of them solves my problem. I am using PHP stream_socket_client to generate the socket connection Code in use is: <?php

How to change IOS badge notification colour from default Red to other colours?

谁说胖子不能爱 提交于 2019-12-19 09:26:15
问题 The default APNS allows a number (badge) to appear in Red background on top of our app icon to state that there is a new notification. Is there a way to change the Red colour background to any other colours based on the backend server output? 回答1: I don't believe this is possible with public iOS SDK APIs 回答2: According to Apple iOS Human Interface Guidelines, you cannot change the color or size of the pending notification badge. A badge is a small red oval that displays the number of pending

Push Notification is not working?

我的梦境 提交于 2019-12-19 09:23:35
问题 i edit and modify the provisioning profile alot of times. and i checked it in text editor too. everything is ok with provisioning profile. but still push notifications are not working. and i m getting this error. everyone is saying that its bcz of bad provisioning profile but my provisioning profile values are the same as Apple said in their documentation. i m getting this error: Error in registration. Error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement

Display image in notification bar with remote notification(Rich media push notification) in iOS 10

我的未来我决定 提交于 2019-12-19 08:52:05
问题 I have integrated APNS and want to display image in remote notification like below; I have used below code with reference link; AppDelegate.h #import <UserNotifications/UserNotifications.h> @interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate> AppDelegate.m - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self registerForRemoteNotification]; UIStoryboard *storyboard = [UIStoryboard

How to use APNs Auth Key (.p8 file) in C#?

喜夏-厌秋 提交于 2019-12-19 05:23:10
问题 I'm trying to send push notifications to iOS devices, using token-based authentication. As required, I generated an APNs Auth Key in Apple's Dev Portal, and downloaded it (it's a file with p8 extension). To send push notifications from my C# server, I need to somehow use this p8 file to sign my JWT tokens. How do I do that? I tried to load the file to X509Certificate2, but X509Certificate2 doesn't seem to accept p8 files, so then I tried to convert the file to pfx/p12, but couldn't find a way

How to use APNs Auth Key (.p8 file) in C#?

泄露秘密 提交于 2019-12-19 05:23:04
问题 I'm trying to send push notifications to iOS devices, using token-based authentication. As required, I generated an APNs Auth Key in Apple's Dev Portal, and downloaded it (it's a file with p8 extension). To send push notifications from my C# server, I need to somehow use this p8 file to sign my JWT tokens. How do I do that? I tried to load the file to X509Certificate2, but X509Certificate2 doesn't seem to accept p8 files, so then I tried to convert the file to pfx/p12, but couldn't find a way

How to clear a single notification from a list of notifications on clicking?

此生再无相见时 提交于 2019-12-19 04:38:44
问题 Once i click a notification, all the notifications are cleared.In ios, is there any option to clear a single notification after tapping on it? i have received 4 notifications. now i need the clicked notification alone to get cleared and retain the other ones.Can anyone help me on this? - (void) clearNotifications { [[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0]; [[UIApplication sharedApplication] cancelAllLocalNotifications]; } - (void)application:(UIApplication*

Handling Push Notifications when App is NOT running (i.e Totally Killed)

若如初见. 提交于 2019-12-19 04:14:31
问题 I'm able to send push notifications to my IOS device. But when I click on that notification it just opens the app. No message is shown inside the app. Code used by me: if (application.applicationState == UIApplicationStateActive) { NSString *cancelTitle = @"Close"; NSString *showTitle = @"Show"; NSString *message = [[userInfo valueForKey:@"aps"] valueForKey:@"alert"]; UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Some title" message:message delegate:self cancelButtonTitle

What happens to push notifications after losing internet access?

久未见 提交于 2019-12-19 04:04:44
问题 What happens if an application is waiting for a push notification and the internet connection is unavailable? For example, I tell my server to do task "A", and notify me via APNS when the task is ready. But, after I send the task to the server, the application loses internet connectivity. 回答1: Notification will be delivered when internet connection on iPhone becomes available again. Apple Push Notification Service includes a default Quality of Service (QoS) component that performs a store-and