apple-push-notifications

Pass data from C# to PHP

。_饼干妹妹 提交于 2020-01-03 19:04:57
问题 I have a PHP script that will send a notification to an iPhone.(below) I have my website code in C#. What I want to do is pass the info from C# to the PHP script. The PHP script <?php // Put your device token here (without spaces): $deviceToken = ''; //Get from C# // Put your private key's passphrase here: $passphrase = ''; //Get from C# // Put your alert message here: $message = 'New Message'; //////////////////////////////////////////////////////////////////////////////// $ctx = stream

What is the Callback Method if You Click “Don't Allow” in Push Notification Popup? [duplicate]

只愿长相守 提交于 2020-01-03 17:27:08
问题 This question already has answers here : Callback Method if user declines Push Notification Prompt? (10 answers) Closed 6 years ago . There's a push notification popup that appears on fresh install of app. There are two choices, OK and Don't Allow (if i remember it correctly.) I want to know what's the call back method if I click "Don't Allow". The thing is, I implemented didFailToRegisterForRemoteNotifications because I thought that if I click "Don't Allow" it would go straight to that

iOS Push Notification custom sound repeat?

不想你离开。 提交于 2020-01-03 15:37:08
问题 I am working with push notifications. I have implemented custom sound for push notifications. Is it possible if push notification custom sound is only 5 sec long then can I repeat it till the max sound limit(30 sec) reach ? For Example: Can I play the sound for one notification 6 times repeatedly ? JSON payload is : array( 'alert' => $message, 'sound' => 'blackberry_3.mp3' ); 回答1: You can't directly make the sound repeating. You have to send another notification to trigger sound another time.

I can't enable my Push Notification param

孤人 提交于 2020-01-03 10:58:07
问题 I've created three months ago an application that was successfully approved into itunes. One of the improvements I need to make is about including "Push Notifications". And here is the problem: when I try to edit that param in the "App ID" in developer.apple.com the checkbox is disabled and I can't check it (is the first step that in every place they tell we should do, am I missing anything?). In the Apple documentation it says ( https://developer.apple.com/library/mac/documentation/IDEs

Xcode Push Notification: APNS server for production mode

旧城冷巷雨未停 提交于 2020-01-03 08:47:10
问题 I'm realizing my first app with push notification. I've done all the debugging following the Ray Wanderlich Tutorial and everything works. Now that I'm about to proceed with the submission I would like to know what parameters I have to insert for the "live" server in production mode instead of gateway.sandbox.push.apple.com 2195 Hope to be clear 回答1: I think the port is the same, only the host is different, it's gateway.push.apple.com . The binary interface of the production environment is

How to set push subject as the title for push notification?

不想你离开。 提交于 2020-01-03 08:15:14
问题 Is there any possibilities of setting push subject as the title in push notification? I'm getting app name as the subject and description is same as given in the push. I want to change the title of the push. Is this possible in iOS? I hope it is possible in android. 回答1: I just tested this on an iPhone 6s running iOS 9.1, and here's what I found: If the title field is provided as part of the alert dictionary, the notification on the lock screen will still show the bundle name. However, when

How to grab device Token from Xcode to javascript in phonegap ios?

依然范特西╮ 提交于 2020-01-03 05:56:51
问题 I am using phonegap to develope IOS apps to user,and i doing a push notification for the apps,follow the tutorial here: http://devgirl.org/2012/10/19/tutorial-apple-push-notifications-with-phonegap-part-1/ And i have problem in register device token.I want to store the deviceToken in javascript from xcode code ,but i dont know any objective-C language that why i using phonegap to develop apps.I try research how to find the deviceToken in Xcode.Then example show here - (void)application:

Not able to send the mdm Payload and Command to device

旧城冷巷雨未停 提交于 2020-01-03 05:27:07
问题 I am developing mdm for iOS for testing purpose. I have installed the profile on the device and I have got the Device Token, PushMagic and now I want to send the mdm payload  {"mdm":"PushMagicValue"} and for this I am using the code from APNSWrapper import * wrapper = APNSNotificationWrapper('PushCert.pem', False) message = APNSNotification() message.token('CgeMZKRl2cqZAmGQ0VNCvySXAsaMPqeHga9ZUC3kqpM=') message.appendProperty(APNSProperty('mdm', 'D60DAB80-A41D-4689-9F14-004E29431742'))

iOS push notification with image like in iMessage

我只是一个虾纸丫 提交于 2020-01-03 04:32:48
问题 I want to create a push notification with an image (like when you receive an iMessage with a photo). Anyone know how it is done? 回答1: Unfortunately not.The notification payload is up to 256 bytes long.And it is useless to use them to sent images. Please read Apple Docs. 回答2: This has changed in iOS 10! Hurrah! https://littlebitesofcocoa.com/261-rich-notifications 来源: https://stackoverflow.com/questions/26148253/ios-push-notification-with-image-like-in-imessage

iOS / Swift : Receive callbacks from data streaming service without push notifications while app is in background

╄→尐↘猪︶ㄣ 提交于 2020-01-03 03:34:06
问题 The Background Information: I am writing an application that uses the PubNub framework to directly couple one Raspberry Pi with one iPhone, for each individual user. The Raspberry Pi uses an Arduino as a slave to gather analog data, then uses the PubNub network to publish that data to the one and only iPhone that is on the same channel. With the data that the iPhone receives, it determines (locally) if the user needs to be alerted. Then, when the user is alerted, they have the ability to