Discussion Forums  >  Uncategorized

Replies: 31    Views: 799

GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
11/08/11 11:33 AM (12 years ago)

Urban Airship Integration Procedure? Anybody Have One?

Hi, I have read through some of the discussion on integrating Urban Airship push notifications to iOS apps, but have not seen a procedure for it. If anybody has done this successfully, and would like to share the exact steps, I would love to see them. Thanks! mark
 
Parker @ buzztouch
buzztouch Evangelist
Profile
Posts: 1395
Reg: May 09, 2011
Pacific Grove, ...
24,500
like
11/08/11 12:27 PM (12 years ago)
Hi Mark, If no one else chimes in, these are probably the best threads you'll get from search results: http://www.buzztouch.com/forum/?&status=&searchInput=push
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/08/11 01:28 PM (12 years ago)
Hi Parker, Yeah, I ran across that link when doing a search already, and while there is a bit of good info there, I'm really hoping that somebody has put together a step-by-step guide. Otherwise, I guess I'll have to dive in, figure it out, and write one myself! Mark
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
11/08/11 01:29 PM (12 years ago)
Hi Mark, I've been able to get both the push notifications and the in app purchases functioning. I started writing up notes on that. Let me see if I can find them and I'll try to post something tonight. You can email me at [email protected] also. Jeff
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/08/11 01:33 PM (12 years ago)
That would be awesome...thanks Jeff! I'm primarily interested in push notifications at the moment, so if you had those handy, it would be great!
 
ichigo
I hate code!
Profile
Posts: 74
Reg: Jul 27, 2011
London
740
like
11/08/11 01:37 PM (12 years ago)
I'd be interested to see those notes as well ^_^
 
TriTom50
Android Fan
Profile
Posts: 39
Reg: Aug 20, 2011
tampa
390
like
11/08/11 03:19 PM (12 years ago)
Hey Jeff, will these push features work in Android 1.5? If so, do you mind if I get this info as well? It certainly seems like a move in the right direction. Tom
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
11/08/11 05:44 PM (12 years ago)
thanks MGoBlue!
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
11/08/11 09:33 PM (12 years ago)
Okay. I've put together instructions for the basic push notifications in a text file you can download here: http://www.jc-evans.com/uploads/Urban_Airship_Instructions.txt The reason for the text file is that I included code that you can just copy and paste into your project. There are quote marks in the code, and as we know, quote marks don't work well in the forum. There are also links to a few screenshots. I'll see if I can add this to the wiki as well. If you want to use the Rich Push notifications and the persistent inbox, the setup is basically the same, but you need to create a custom screen to handle the inbox activity. You can use the UI in the demo for that. When I have some more time I'll write up a tutorial on that. Feel free to post follow up questions here or drop me a note at [email protected]. Good luck. Jeff
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
11/08/11 09:39 PM (12 years ago)
Also, this is only for iOS. I haven't tried integrating with Android yet.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/08/11 11:21 PM (12 years ago)
Thanks, @MGoBlue! That is an extremely well written tutorial! I'll give implementation a shot tomorrow (hopefully), and let you know how it went. Thanks for the time you spent putting that together! Mark
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
11/09/11 12:22 AM (12 years ago)
@MGoBlue Thanks for that information.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
11/09/11 02:09 AM (12 years ago)
Awesome tutorial. Thanks so much!
 
TriTom50
Android Fan
Profile
Posts: 39
Reg: Aug 20, 2011
tampa
390
like
11/09/11 07:19 AM (12 years ago)
Very robust tutorial Jeff... Good/Nice work! Hopefully I'll get to use it one day when developing apps in iOS. THANKS!
 
Vali
buzztouch Evangelist
Profile
Posts: 193
Reg: May 22, 2011
Bucharest
5,830
like
11/10/11 03:11 PM (12 years ago)
Hi Jeff. Your instructions are spot on! I managed to implement the push notification in one of my soon to release app(iOS). Now I need to update my first app so I can bring news to my users. Thanks a lot! Vali
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
11/10/11 04:46 PM (12 years ago)
Glad this has helped.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/10/11 04:58 PM (12 years ago)
So, the one gotcha I think I've noticed for this, and perhaps I'm mistaken, but it's that you have to use a unique App ID for each app that you want to enable Push on (at least according to the Apple Dev Center). I am using a wildcard App ID for all my apps, and now that seems to be coming back to haunt me. Do I understand this correctly? And, if so, does changing to a unique App ID for an existing, published all cause any issues aside from a recompile and an update in the store?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
11/10/11 10:08 PM (12 years ago)
Interesting. I've been doing unique app ID's all along, so I didn't even think about wildcards. According to Apple: 'Wild-card App IDs cannot be used with the Apple Push Notification service or for In App Purchase.' I'm not sure about changing the app ID. It's probably fine as long as the bundle ID is the same.
 
ichigo
I hate code!
Profile
Posts: 74
Reg: Jul 27, 2011
London
740
like
11/11/11 01:57 AM (12 years ago)
Thanks so much MGOBLUE ^_^
 
pasquino
Lost but trying
Profile
Posts: 10
Reg: Sep 22, 2011
Rome
500
like
11/24/11 01:41 AM (12 years ago)
MGoBlue, Thanx so much. You have a dinner paid in Rome.. :-)
 
Intrege
Veteran developer
Profile
Posts: 196
Reg: Sep 12, 2011
Philadelphia, P...
3,160
like
11/29/11 07:00 PM (12 years ago)
@MGoBlue would there also be an Android version on the WIKI?
 
hsanchezp
I hate code!
Profile
Posts: 4
Reg: Oct 30, 2011
Mexico
40
like
11/29/11 10:58 PM (12 years ago)
Thanks a lot MGoBlue for this great tutorial. I installed everything per the instructions, but when I send a message, I get an error that the token is invalid. Do you know how can I fix this? Apple Push service rejected device token XXXXXXXX.... Regards Hector
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
11/30/11 10:52 PM (12 years ago)
@Intrege - I'm working on an android app now that I need to integrate push into, so hopefully I'll be able to post instructions soon. Hector - Did you enable push notifications for your app in iTunes connect? You do then in the app ID screen. Also, you need to upload a .p12 file to Urban Airtouch. This is all I can think of at the moment.
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
11/30/11 10:54 PM (12 years ago)
Hector - Check out this link in the debug section: http://urbanairship.com/docs/push_index.html#debug-mode
 
Intrege
Veteran developer
Profile
Posts: 196
Reg: Sep 12, 2011
Philadelphia, P...
3,160
like
12/01/11 07:10 AM (12 years ago)
Thanks You.
 
hsanchezp
I hate code!
Profile
Posts: 4
Reg: Oct 30, 2011
Mexico
40
like
12/01/11 09:22 AM (12 years ago)
Thanks very much MGoBlue for the link. It seems that I need to register the token so that UrbanAirShp can activate it. The process to activate the token is here: http://urbanairship.com/docs/push.html#token-registration The thing that I don't understand is how and where to put this: Here’s an example using curl, a command line URL fetching tool: ==================================================================== curl -X PUT -u <application key>:<application secret> \ -H Content-Type: application/json \ --data '{alias: myalias}' \ https://go.urbanairship.com/api/device_tokens/<token>/ =========================================================== I know where to get my keys and token, but the thing that is not clear to me, is where to put the command above, if in the browser or from the terminal in my Mac or maybe the terminal from my Server (I have shared hosting with HostGator). Thanks again for the awesome tutorial and your help Regards Hector
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
12/01/11 10:32 AM (12 years ago)
@MGoBlue Thank you SO much! Walked through your instructions and it seems to be working great! Huge help!
 
sepala
Aspiring developer
Profile
Posts: 196
Reg: Nov 23, 2011
London
3,060
like
12/01/11 10:47 AM (12 years ago)
Maybe I spoke too soon! It is working fine but when I build and run the following line is highlighted in UAPushSettingsTokenViewController.m - @synthesize copyButton; and it says Property's synthesized getter follows Cocoa naming convention for returning 'owned' objects Any ideas why this is and what I should do?! Any help would due greatly appreciated. Thanks
 
tb
buzztouch Evangelist
Profile
Posts: 2050
Reg: Nov 03, 2011
Oxford
32,300
like
12/31/11 04:36 PM (12 years ago)
Thanks. This is a very well written tutorial. I'm glad someone was willing to give out this valuable information to all of us. Thanks
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
01/04/12 12:47 AM (12 years ago)
@goBlue, Any luck getting a document of in app purchases via urban airship? Thanks Anthony
 
hacerapps
buzztouch Evangelist
Profile
Posts: 542
Reg: Jan 30, 2011
usa
11,170
like
01/07/12 05:32 PM (12 years ago)
@MGoBlue thanks for the share
 
OrchardApps
Code is Art
Profile
Posts: 115
Reg: Jan 11, 2012
Brisbane austra...
5,850
like
02/23/12 06:17 AM (12 years ago)
I'm reeling from the cost of Urban Airship. Do they charge that amount per app? I was reading their pricing information, etc, but couldn't figure it out. I would only want to look at using them if I could use it in a few apps that I am creating. I have a few ideas for informational apps. Download the app and get one article - pay for the release of other articles. Thanks to anyone that can answer.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.