Note that there are some explanatory texts on larger screens.

plurals
  1. POUrban Airship Implementation on iOS
    primarykey
    data
    text
    <p>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.</p> <pre><code>- (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]; [takeOffOptions setValue:launchOptions forKey:UAirshipTakeOffOptionsLaunchOptionsKey]; // Call takeOff (which creates the UAirship singleton), passing in the launch options so the // library can properly record when the app is launched from a push notification. This call is // required. // // Populate AirshipConfig.plist with your app's info from https://go.urbanairship.com [UAirship takeOff:takeOffOptions]; // Set the icon badge to zero on startup (optional) [[UAPush shared] resetBadge]; // Register for remote notfications with the UA Library. This call is required. [[UAPush shared] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; // Handle any incoming incoming push notifications. // This will invoke `handleBackgroundNotification` on your UAPushNotificationDelegate. [[UAPush shared] handleNotification:[launchOptions valueForKey:UIApplicationLaunchOptionsRemoteNotificationKey] applicationState:application.applicationState]; return YES; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload