Devang
Devang

Reputation: 11338

How to implement Urban Airship for Push notification in iPhone?

I'm trying to use urbanairship push notification. But while creating instance of UAirship, it is showing error that UAirship is undeclared.i have implemented urbanairship upto http://urbanairship.com/docs/apns_test_client.html#prerequisite and after then i do not know what should i do ? Waiting for response. Thanks.

Upvotes: 0

Views: 5794

Answers (3)

yunas
yunas

Reputation: 4163

See https://docs.urbanairship.com/display/DOCS/Getting+Started%3A+iOS%3A+Push, the mostly simplest guide with pictures... Watch for the possible cases you have missed which you shouldn't have.

Upvotes: 1

Adam
Adam

Reputation: 33126

I got something similar just now. Might not be the same problem, but there seems to be a massive bug in the UA library - a combination of careless code design, and badly written code.

Apparently ... you MUST NOT make calls to "UAPush" until AFTER you have invoked

[UAirship takeOff:...]

This shouldn't be a problem. Firstly, UA shouldn't crash! Secondly, there's plenty of calls to UAPush that make sense before calling takeOff. So far as I can tell, this is undocumented (like most of UA, sadly :( ). i.e. I'd read through the official website and the scant docs multiple times, and never saw mention of this requirement.

Upvotes: 1

Michaël
Michaël

Reputation: 6734

Have you included UAirship.h and UAPush.h ?

Upvotes: 1

Related Questions