apple-push-notifications

Instant Message Push Notification Using Sinch not coming on iOS

霸气de小男生 提交于 2019-12-02 16:48:20
问题 [![enter image description here][1]][1]I've mentioned all the fields but still I'm not getting the push notification. This is my code: Firstly in didFinishLaunchingWithOptions I call this: self.push = Sinch.managedPushWithAPSEnvironment(.Production) self.push?.delegate = self self.push?.setDesiredPushTypeAutomatically() client = Sinch.clientWithApplicationKey("xxxxxx", applicationSecret: "xxxxxxx", environmentHost: "sandbox.sinch.com", userId: userID) client?.delegate = self client?

Remove remote notification from Notification Center

隐身守侯 提交于 2019-12-02 16:31:04
问题 Some apps, specifically the StackExchange app and facebook are able to remove notifications from the Notification Center/Lockscreen if you view the notification elsewhere. For example if I get an inbox notification from stack exchange and then view my inbox on my laptop the notification disappears almost immediately from my phone. Originally I thought this was something just Apple could do with Mail and Facebook. How does StackExchange send a notification to the phone to remove an existing

Use Apple Push Notification Service through Java

China☆狼群 提交于 2019-12-02 16:26:12
Am trying to implement a Java program which sends an Apple Push Notification to an iPhone client app... Found the following library: Java APNs Provider code: Created the following code (from Javapns) to use in my app: try { PayLoad payLoad = new PayLoad(); payLoad.addAlert("My alert message"); payLoad.addBadge(45); payLoad.addSound("default"); PushNotificationManager pushManager = PushNotificationManager.getInstance(); pushManager.addDevice("iPhone", "f4201f5d8278fe39545349d0868a24a3b60ed732"); log.warn("Initializing connectiong with APNS..."); // Connect to APNs pushManager

Anyone using Node.js with Amazon SNS and Apple Push Notifications?

一个人想着一个人 提交于 2019-12-02 15:58:42
I'm looking for examples of using node.js with Amazon SNS and Apple APN push notifications. We use Amazon for our hosting, and I have used SNS before, it's pretty simple. But the examples they have for push notifications are for java, and there is no examples for Node. It's confusing, as usual with them, and I'm hoping to cut my research and time spent short. It can't be that hard. I'm also wondering how they deal with errors, and the differences between the sandbox and production. Apple reacts differently between the two environments, not failing in the sandbox as they do in production. It

iOS - Ask to enable push notifications after initial decline

允我心安 提交于 2019-12-02 15:30:40
I would like to know if it's possible to force the "XXXXX would like to send you push notifications" popup from within an app, after an initial decline. The use case is as follows: The user installs the app, gets the alert about push notifications, and declines because they don't know/trust the app yet. They use the app and proactively request within the app to be alerted when something happens (say for example something they want to buy is sold out so they want to be alerted when it is back in stock). So now the user has asked the app to notify them about something specific but has push

How to send a push notification using Erlang?

核能气质少年 提交于 2019-12-02 15:16:52
I'm trying to send a push notification to APNs using Erlang. This is the code I came up with so far: -module(apnstest2). -export([connect/0]). connect() -> application:start(ssl), ssl:seed("someseedstring"), Address = "gateway.sandbox.push.apple.com", Port = 2195, Cert = "/path/to/Certificate.pem", Key = "/path/to/Key.unenc.pem", Options = [{certfile, Cert}, {keyfile, Key}, {mode, binary}], Timeout = 1000, {ok, Socket} = ssl:connect(Address, Port, Options, Timeout), Token = "195ec05a962b24954693c0b638b6216579a0d1d74b3e1c6f534c6f8fd0d50d03", Payload = "{\"aps\":{\"alert\":\"Just testing.\",\

How to send APNs push messages using APNs Auth Key and standard CLI tools?

流过昼夜 提交于 2019-12-02 15:08:18
Apple recently added a new authentication method to APNS ( Apple Push Notification Authentication Key (Sandbox & Production) ). The downloaded key is a .p8 file with a private key: $ cat APNSAuthKey_3HHEB343FX.p8 -----BEGIN PRIVATE KEY----- MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBH...Already.Revoked...lHEjCX1v51W -----END PRIVATE KEY----- I am using APNs messages using the old method - adding them to keychain, asking for a certificate and using OpenSSL to send messages to gateway.production.push.apple.com:2195 . How do I send push notifications using standard CLI Linux tools (OpenSSL, Python etc.

Which Apple Push Notification Service Java library should I use? [closed]

纵饮孤独 提交于 2019-12-02 15:07:25
I need to send push notifications to iOS devices, from my Java server, using Apple Push Notification Service (APNS) I found two libraries to send APNS push notifications in Java: java-apns javapns But both seem to be abandoned (or at least they have bugs and the last release is a year ago). java-apns has lots of forks . Is there any updated fork of this library in active development? Are there any other better choices? If anybody else is looking for an APNs library in Java, we at RelayRides just released Pushy ( http://relayrides.github.io/pushy/ ). It does some things differently than the

Push Notification Device Token?

☆樱花仙子☆ 提交于 2019-12-02 14:05:14
How to get Device Token from my iPhone Device? this method will print the deviceToken in console in debug mode, if you want to see the device token you can see in UIAlert also. - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { NSLog(@"APN device token: %@", deviceToken); NSString *deviceTokenString = [NSString stringWithFormat:@"%@",deviceToken]; UIAlertView *deviceTokenAlert = [[UIAlertView alloc] initWithTitle:@"Device Token" message:deviceTokenString delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; } Rahul

Remove remote notification from Notification Center

本秂侑毒 提交于 2019-12-02 11:56:36
Some apps, specifically the StackExchange app and facebook are able to remove notifications from the Notification Center/Lockscreen if you view the notification elsewhere. For example if I get an inbox notification from stack exchange and then view my inbox on my laptop the notification disappears almost immediately from my phone. Originally I thought this was something just Apple could do with Mail and Facebook. How does StackExchange send a notification to the phone to remove an existing notification? I think that what they do is to send a notification with a badge number of '0' to clear all