urbanairship.com

Urban Airship - send PUSH to 1 specific device (device token)

南笙酒味 提交于 2019-12-04 15:43:46
问题 So I want to target one specific device token via Urban Airship, but no matter what I do, all of my devices get the message intended for a specific device token. Here's my PHP code - any help is as usual greatly appreciated! define('APPKEY','XXXXXXXXXXXXXX'); define('PUSHSECRET', 'XXXXXXXXXXXXX '); // Master Secret define('PUSHURL', 'https://go.urbanairship.com/api/push/broadcast/'); $msg = "This is a message intended for my iPad 3"; $devicetokens = array(); $devicetokens[0] = $devicetoken;

Sending push notification to Android from Java server using Urban airship

淺唱寂寞╮ 提交于 2019-12-04 15:10:34
I want to use Urban airship to deliver Push notification to Android . I can send Push notification from Urban Airship site but i don't know how can i send messages in Java application using urban Airship web service . i don't want to go to their site and send message to any Android device i just wanted my personal website (developed in Java EE ) to use their service and send messages to android devices. plz share any code or toturial Thanks in advance This project in bitbucket encapsulates the Urban Airship REST API in Java. https://bitbucket.org/sullis/urbanairship-java The project has

no valid 'aps-environment' entitlement string found for application when trying to enable push notifications

吃可爱长大的小学妹 提交于 2019-12-04 13:43:30
I've been reading all the other questions asking about this error and it seems like I've followed their solutions but I'm still having this problem. I removed all the existing provisioning profiles and app ids. I created a new app id that has push enabled. I created a development provisioning profile with push enabled. On the Apple dev site, that provisioning profile has a green "active" indicator next to it. In xcode5, under preferences>accounts, the provisioning profile is listed. Under window>organizer, the provisioning profile appears under my device with the status "valid profile". But

how to register apid in urban airship for android?

时间秒杀一切 提交于 2019-12-04 01:07:00
I have completed client side code by download sample from git for push notification in android. After execute of app i got app-key and apid from server. But when i opening the my account in Urban Airship,i found following data that said my app has not registered any application. What to do now?Any help will be appreciated Urban airship is on maintenance mode.If u try to get apid from there ,u will not get any response. Another way of push notification in android is use C2DM . Try google C2DM may u get result. According to Uarban Airship, you need to add the Reciever class android:name="

Open android app from PUSH notification

六月ゝ 毕业季﹏ 提交于 2019-12-03 12:40:29
问题 Got a little problem that's been bugging me.. I've set up my application to receive PUSH notifications from Urban Airship and that all works fine, but when I tap on a notification in the notifications center, nothing happens. I want my app to open when a user taps a PUSH notification - what can I do to achieve this? Any help is as always greatly appreciated. Thanks 回答1: Create a pending Intent to start the activity and set it in notification using setLatestEventInfo. Example: Context context

Urban Airship - send PUSH to 1 specific device (device token)

喜夏-厌秋 提交于 2019-12-03 09:05:07
So I want to target one specific device token via Urban Airship, but no matter what I do, all of my devices get the message intended for a specific device token. Here's my PHP code - any help is as usual greatly appreciated! define('APPKEY','XXXXXXXXXXXXXX'); define('PUSHSECRET', 'XXXXXXXXXXXXX '); // Master Secret define('PUSHURL', 'https://go.urbanairship.com/api/push/broadcast/'); $msg = "This is a message intended for my iPad 3"; $devicetokens = array(); $devicetokens[0] = $devicetoken; $contents = array(); $contents['badge'] = "1"; $contents['alert'] = $msg; $contents['sound'] = "default"

Open android app from PUSH notification

跟風遠走 提交于 2019-12-03 03:07:21
Got a little problem that's been bugging me.. I've set up my application to receive PUSH notifications from Urban Airship and that all works fine, but when I tap on a notification in the notifications center, nothing happens. I want my app to open when a user taps a PUSH notification - what can I do to achieve this? Any help is as always greatly appreciated. Thanks Create a pending Intent to start the activity and set it in notification using setLatestEventInfo. Example: Context context = getApplicationContext(); CharSequence contentTitle = "My notification"; CharSequence contentText = "Hello

Ruby on Rails server crashes during a HTTPS POST request

孤街浪徒 提交于 2019-12-02 21:06:37
问题 I'm trying to communicate with urban airship API using a ROR web application. In my controller I've the following code: require 'net/http' require 'net/https' require 'open-uri' app_key = 'JJqrCewBT7e_...' app_secret = 'lAu7MIeARCiacg_...' payload ={ "aps" => {"badge" => "0", "alert" => "My push message", "sound" => ""} }.to_json full_path = 'https://go.urbanairship.com/api/push/broadcast/' url = URI.parse(full_path) req = Net::HTTP::Post.new(url.path) req.body = payload req.basic_auth app

Urban Airship Implementation on iOS

女生的网名这么多〃 提交于 2019-12-02 11:30:55
I am trying to add libUAirship-1.4.0.a by going to Build Phases > Link Binary With Libraries and locating the library on disk, after doing so i am still getting an error saying use of undeclared identifier: UAirshipTakeOffOptionsLaunchOptionsKey, UAirship, UAPush. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. //Create Airship options dictionary and add the required UIApplication launchOptions NSMutableDictionary *takeOffOptions = [NSMutableDictionary dictionary];

Ruby on Rails server crashes during a HTTPS POST request

﹥>﹥吖頭↗ 提交于 2019-12-02 08:07:06
I'm trying to communicate with u rban airship API using a ROR web application. In my controller I've the following code: require 'net/http' require 'net/https' require 'open-uri' app_key = 'JJqrCewBT7e_...' app_secret = 'lAu7MIeARCiacg_...' payload ={ "aps" => {"badge" => "0", "alert" => "My push message", "sound" => ""} }.to_json full_path = 'https://go.urbanairship.com/api/push/broadcast/' url = URI.parse(full_path) req = Net::HTTP::Post.new(url.path) req.body = payload req.basic_auth app_key, app_secret con = Net::HTTP.new(url.host, url.port) con.use_ssl = true con.start {|http| http