apple-push-notifications

iPhone alarms that wake up the device from sleep with sound

眉间皱痕 提交于 2019-12-12 10:19:43
问题 I'm a bit confused on iPhone's capabilities for alarms (local notifications) and I haven't found a clear answer yet. I would like to create functionality like the alarm clock (or even new mail). Specifically, if the device is asleep, it gets waken with a buzz or sound. A popup message that you can't see (because the device is asleep) is a lot less useful. But, it seems that using the UILocalNotification service, this doesn't seem to be happening. I haven't checked out push notifications, but

IOS 8 Silent push notification not working without Xcode

天涯浪子 提交于 2019-12-12 09:35:12
问题 I'm trying to test out the silent push notification and I notice that my Iphone (IOS 8) can only receive silent notifications when my device is connected to Xcode. While it is unplugged, I can only receive one silent push in probably 5-10 tries. This only happen to IOS 8 because I have another phone which is running on IOS 7 and not even a single silent push is missed. Anyone face the same issue ? More details: If the phone is connected to power source, I'm able to get silent push

Implementation for {“mdm”:“<PushMagic>”} using javapns

流过昼夜 提交于 2019-12-12 09:08:38
问题 I am using javapns to develop apple push notification mdm server. There is a package "javapns.notification.management" I could not find an api to send {"mdm":""} to apple. I want to implement MDM solution using javapns. I have installed the mobileConfig and have the deviceToken and pushMagic String. Next I want to send {"mdm":""} and then the other commands. Is this possible using javapns and if yes - is there a sample or some inputs of how to do it? Issue #37 in javapns says it is possible

iPhone certificate error in apns sharp A call to SSPI failed

╄→гoц情女王★ 提交于 2019-12-12 08:47:01
问题 i have a data service hosted in azure from which i am sending notification to iphone but while establishing connection with apns i am getting following error "A call to SSPI failed. The message received was unexpected or badly formatted." i also refered following links for the same error but still getting the error apple push notification with APNS sharp and C# iPhone push server? try { using (TcpClient client = new TcpClient()) { try { client.Connect("gateway.sandbox.push.apple.com", 2195);

Not able to set Interactive Push Notifications on iOS8

烂漫一生 提交于 2019-12-12 08:38:36
问题 I was already able to set Interactive LOCAL notifications, but the Remote notifications aren't working. I'm using Parse.com to send the JSON My AppDelegate.Swift looks like this: // // AppDelegate.swift // SwifferApp // // Created by Training on 29/06/14. // Copyright (c) 2014 Training. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions

How to implement APNS notifications through nodejs?

岁酱吖の 提交于 2019-12-12 08:15:04
问题 Does someone now a good npm module to implement Apple PUSH notifications? A simple example would be great. The solution I've found is the following which uses the apn module. var apn = require('apn'); var ca = ['entrust_2048_ca.cer']; /* Connection Options */ var options = { cert: 'path to yuour cert.pem', key: 'path to your key.pem', ca: ca, passphrase: 'your passphrase', production: true, connectionTimeout: 10000 }; var apnConnection = new apn.Connection(options); /* Device */ var

Push Notifications Permissions

你说的曾经没有我的故事 提交于 2019-12-12 08:01:41
问题 Trying to work around a few corner cases for when push notifications are denied in the app and I have two questions: 1) Is there a way to reset whether the user has seen the notification request pop up? 2) Is there any way to determine if the user has said no to the notification request? 回答1: 1) No, unless there's some private API that does that, but that's not allowed by Apple 2) The first time your app is started, after calling registerForRemoteNotificationTypes , you can check if

Amazon SNS Mobile Push - how to bulk subscribe endpoints to a topic?

可紊 提交于 2019-12-12 07:31:48
问题 I am trying to move my existing iOS push notification infrastructure over to amazon SNS mobile push. I exported all my tokens from my local db into an SNS application (using CSV). Now I want to send push notification to all my 10,000 users. I think the only way is to create a topic and subscribe all the users to that topic then publish message to that topic. Is there any easy way to subscribe all the 10,000 users who I have imported into the system to a topic? Thanks for any help! 回答1: It

How can I call a view controller function from an iOS AppDelegate?

拜拜、爱过 提交于 2019-12-12 07:24:22
问题 I am getting a call from a remote push notification, which includes a path to an image, which I want to display. The AppDelegate is: func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { // get url from notification payload (shortened version) let url = alert["imgurl"] as? NSString let vc = ViewController() vc.loadImage(url as String) // cannot find the imageView inside } ...and the view looks like this: func loadImage(url:String) {

Apple Push Notification Service connects, but no notification is recieved

两盒软妹~` 提交于 2019-12-12 06:34:58
问题 I’ve been banging my head on the wall trying to get this work for the past week. I just started again from scratch and logged everything that I did and it still does not work. Here are the steps i’ve taken: 1) Create a new App ID Identifier using a new bundle id (the old one did not have push notifications) a) made sure push notifications were added to the app id and proceeded to the last step, this resulted in an app id with push notifications in the ‘configurable’ state. b) I then went to