public override void OnCreate()
        {
            UAirship.TakeOff(this);
            PushManager.Shared().IntentReceiver = Class.FromType(typeof(PushReceiver));
            RichPushManager.SetJavascriptInterface(Class.FromType(typeof(RichPushMessageJavaScript)), "urbanairship");

            // If running on Jelly Bean or higher, then use the inbox style notification builder
            if ((int)Build.VERSION.SdkInt >= (int)BuildVersionCodes.JellyBean)
            {
                PushManager.Shared().NotificationBuilder = new RichNotificationBuilder();
            }
        }
示例#2
0
        public override void OnCreate()
        {
            UAirship.TakeOff(this);
            //PushManager.Shared ().IntentReceiver = Java.Lang.Class.FromType (typeof(IntentReceiver));
            RichPushManager.SetJavascriptInterface(Java.Lang.Class.FromType(typeof(RichPushMessageJavaScript)), "urbanairship");

            /*
             * // If running on Jelly Bean or higher, then use the inbox style notification builder
             * if (Build.VERSION.SdkInt >= 16) {
             *      PushManager.Shared().NotificationBuilder = new RichNotificationBuilder ();
             * }
             */
        }