Note that there are some explanatory texts on larger screens.

plurals
  1. POUrban Airship push notification is not pushing the data
    primarykey
    data
    text
    <p>I am new to urban airship, and integrating this to my Android application. Got sample source from Airship, and i followed same procedure in order to invoke airship into my application. but whenever i send push notification, i cant get it through my device. The package name what i given in my source same i gave in Airship. can anyone guide me how to integrate the Urban Airship in android application. </p> <pre><code> AirshipConfigOptions options = AirshipConfigOptions.loadDefaultOptions(this); // Optionally, customize your config at runtime: // // options.inProduction = false; options.developmentAppKey = "My Key"; options.developmentAppSecret "My key"; UAirship.takeOff(this, options); Logger.logLevel = Log.VERBOSE; //use CustomPushNotificationBuilder to specify a custom layout CustomPushNotificationBuilder nb = new CustomPushNotificationBuilder(); nb.statusBarIconDrawableId = R.drawable.icon_small;//custom status bar icon nb.layout = R.layout.notification; nb.layoutIconDrawableId = R.drawable.icon;//custom layout icon nb.layoutIconId = R.id.icon; nb.layoutSubjectId = R.id.subject; nb.layoutMessageId = R.id.message; // customize the sound played when a push is received //nb.soundUri = Uri.parse("android.resource://"+this.getPackageName()+"/" +R.raw.cat); PushManager.shared().setNotificationBuilder(nb); PushManager.shared().setIntentReceiver(IntentReceiver.class); } </code></pre> <p>while i compile the above code i am getting </p> <pre><code>e 03-19 16:13:35.455: ERROR/AndroidRuntime(1247): Uncaught handler: thread main exiting due to uncaught exception 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.XYZ}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at android.os.Handler.dispatchMessage(Handler.java:99) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at android.os.Looper.loop(Looper.java:123) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at android.app.ActivityThread.main(ActivityThread.java:3948) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at java.lang.reflect.Method.invokeNative(Native Method) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at java.lang.reflect.Method.invoke(Method.java:521) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at dalvik.system.NativeStart.main(Native Method) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:281) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at com.XYZ.onCreate(ManualUpdate.java:86) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) 03-19 16:13:35.545: ERROR/AndroidRuntime(1247): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231) </code></pre>
    singulars
    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