Discussion Forums  >  Uncategorized

Replies: 7    Views: 229

Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
01/24/12 05:07 AM (14 years ago)

@goblue

Quick question, I followed that great txt document you put online pertaining to Urban Airship Push. Ive successfully built the project in Xcode but when I install the app on my devices both iPhone and iPad, it crashes and does not open. Getting a kernel error in the console. Would you have any advice on where I may have gone wrong? Anthony
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
01/24/12 07:38 AM (14 years ago)
I just ran into the exact same issue. What platform did you build on? 1.5 or BT Server 2.0? I'll do some troubleshooting today.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
01/24/12 07:41 AM (14 years ago)
IOS 1.5
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
01/24/12 09:13 PM (14 years ago)
I fixed my problem, but I'm not sure which of the following is what made it work: 1. I re-created my push certificates in the iOS provisioning portal, then uploaded the new certs to Urban Airship. 2. I found an article with a google search that said having a plist when you archive your file can cause the problem. I created an archive without the plist (didn't use enterprise distribution). New upload to a new device worked perfectly with no crash. Hope this helps you.
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
01/25/12 03:34 AM (14 years ago)
Blue, My Apologies,I just re-read your document and it seems to have been geared for the crowd that was already developed and moving towards the production/distribution phase of push notifications, which is not my case. I am testing for the first time. I ran the settings you had listed and changed the Appstore or Ad Hoc mode to False as mentioned in the readme.txt file and built. Build successful. My problem is i do not have tokens or an alias to proceed with the test push. How does this process not work?? How do i access the sandbox? Can it really be this difficult? Please advise and my apologies for the mis-read. Anthony
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
01/25/12 04:10 AM (14 years ago)
I forgot to mention that i also ran my target console in xcode to find the token after i ran the app and i couldnt find it. See below 2012-01-25 05:48:50.666 platinum[461:707] +[UAirship takeOff:] [Line 206] App Key: P07KBvUGTS2r7lnY4hYWjg 2012-01-25 05:48:50.673 platinum[461:707] +[UAirship takeOff:] [Line 207] App Secret: iTemLOQMQmaPPB8r8Rv11A 2012-01-25 05:48:50.677 platinum[461:707] +[UAirship takeOff:] [Line 208] Server: https://go.urbanairship.com 2012-01-25 05:48:50.734 platinum[461:707] -[UAirship configureUserAgent] [Line 457] Setting User-Agent for UA requests to platinum 1.0 (iPhone; iPhone OS 4.3.3; UALib 1.1.3; P07KBvUGTS2r7lnY4hYWjg; en_US) 2012-01-25 05:48:50.745 platinum[461:707] -[UAAnalytics initWithOptions:] [Line 217] Analytics logging not enabled 2012-01-25 05:48:50.765 platinum[461:707] Reachability Flag Status: -R -----l- networkStatusForFlags 2012-01-25 05:48:50.811 platinum[461:707] -[UAUser migrateUser] [Line 187] Migrating User Info: { UAUserRecoveryKey = 0; UAUserRecoveryKeySent = 0; UAUserTagsKey = ( ); UAUserUrlKey = https://go.urbanairship.com/api/user/5PUJ9-BsTQ-B2jGNQL9Z6g/; } 2012-01-25 05:48:50.892 platinum[461:707] -[UAUser loadUser] [Line 268] User Info: { UAUserRecoveryKey = 0; UAUserRecoveryKeySent = 0; UAUserTagsKey = ( ); UAUserUrlKey = https://go.urbanairship.com/api/user/5PUJ9-BsTQ-B2jGNQL9Z6g/; }
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
01/25/12 07:00 AM (14 years ago)
The token should automatically register with urbanairship the first time you fire up the app. Honestly, I forget if/how I did testing in the 'distribution' mode. For the implementation I mention above, I went directly to production mode for testing (since push is free). I tested on both iPhone and iPad, and all works well. Tokens registered automatically. If you've followed the steps correctly, yours should work too. BTW - One of the things I love about urbanairship is the ability to use a feed to push notices out to apps. I set up a dedicated twitter account for my clients, and all they have to do is tweet and a push is sent. Brilliant!
 
Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
like
01/30/12 08:16 AM (14 years ago)
@Goblue, Wanted to update you that my airship works great and it was due to you assistance and that great .txt document you created. Question, you mentioned something about a twitter and facebook setup that can work with the push. Would you have a minute to explain. Thanks Anthony
 

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.