urbanairship.com

Urban Airship: custom icon for default status bar notification

a 夏天 提交于 2020-01-02 05:34:09
问题 Urban Airship recommends creating a custom notification with CustomPushNotificationBuilder if you want to make any modifications to the status bar notification, including trivially changing the icon. Unfortunately, using a RemoteView for notifications carries many unwanted implications with it related to custom manufacturer and/or platform-specific skins, including text colors and references to private resources (for instance @*android:drawable/notify_panel_notification_icon_bg_tile on

Defining package name regarding buildType in cordova android project

前提是你 提交于 2019-12-31 04:11:12
问题 How can I define the right package name regarding my buildType ? I have this command line to build : cordova run android --device --buildType=beta I have this hook (after prepare) which set the buildType from the command line : fs.appendFileSync( buildExtras, "ext.postBuildExtras = {\nandroid.buildTypes." + ( isRelease ? "release" : "debug" ) + ".applicationIdSuffix='." + buildType + "'\n}" ); but in AndroidManifest.xml packageName in platforms/android/ is not the right. Only if I change

Hooking into main application's onCreate method from Adobe AIR extension

ぐ巨炮叔叔 提交于 2019-12-24 15:33:21
问题 I am creating an ANE for Urban Airship, a service for sending push notifications (among other things). So far the integration has worked great but only when the app is open. When the app is exited, receiving a new push notification results in the app crashing with: 11-29 01:19:32.448 22340-22340/air.com.example.app E/Urban Airship Autopilot: Unable to takeOff automatically 11-29 01:19:32.496 22340-22440/air.com.example.app E/AndroidRuntime: FATAL EXCEPTION: IntentService[PushService] Process:

Urban Airship - override the behavour of OpenExternalUrlAction Action

三世轮回 提交于 2019-12-24 14:40:32
问题 Actually I want to override the behaviour of external web page action and modify the app flow . But It is not suppprted or I didn't able to do that. Please help me get the action in our app and redirect as per my requirment. More detail : I sent a web page notification from UA and my application just launch and open the external web page (It all handles by UA SDk) but due to some internal task Home activity takes time to launch and when It launched It put the web page in background , I want

Android, Urban AirShip - change the message

房东的猫 提交于 2019-12-24 08:59:36
问题 How to change the notification message in Android to localised it? I just want to change the message what I get from Urban AirShip before it will be display on notification bar? 回答1: You can using this method: PushManager.shared().setNotificationBuilder(null); and send your own notification with android notification from the SDK 回答2: Yes you can modify the message once you receive the message from Urban AirShip for your internal use in the app but can't show the modified message in the

UrbanAirship NPE

北城余情 提交于 2019-12-24 01:05:56
问题 I am getting the following NPE while installing my app itself. Please help. 07-22 16:27:06.380: E/UA AP(6071): Unable to takeOff automatically 07-22 16:27:06.385: D/AndroidRuntime(6071): Shutting down VM 07-22 16:27:06.385: W/dalvikvm(6071): threadid=1: thread exiting with uncaught exception (group=0x415db2a0) 07-22 16:27:06.385: E/AndroidRuntime(6071): FATAL EXCEPTION: main 07-22 16:27:06.385: E/AndroidRuntime(6071): java.lang.RuntimeException: Unable to start receiver com.urbanairship.push

Urban Airship crashes at take off. Illegal Argument Exception

╄→гoц情女王★ 提交于 2019-12-23 19:13:39
问题 My Code in Applicaion.onCreate. The app crashes at UAirship.takeoff(this,options); Please help. public class LiveVideoApplication extends Application { @Override public void onCreate() { super.onCreate(); AirshipConfigOptions options = AirshipConfigOptions.loadDefaultOptions(this); // Optionally, customize your config at runtime: // options.inProduction = false; options.developmentAppKey = "key.. "; options.developmentAppSecret = "secret.."; UAirship.takeOff(this, options); PushManager.shared

XCode - why do I get a file not found?

北战南征 提交于 2019-12-23 13:08:08
问题 I've added the Airship (from UrbanAirship) directory into my xcode project for my iPhone/iPad app. In my "build settings>search paths>header search paths" and "build settings>search paths>library search paths", I'm pointing to those directories recursively. I've also included the libuairship-1.2.1.a file3 into the required frameowrks/libraries. When I go into my appdelegate.m and appdelegate.h, as soon as I type #import "UA" , it autocompletes for me #import "UAirship.h" . So i assume this is

Development App Key and App Secret for Android

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 10:28:40
问题 I'm trying to set up a push notification for android app using urban airship with Helium option. However, I need to find these information for my app which I have no idea where to find from. any comments or advice would be greatly appreciated. Thank you! For setting up Helium, make sure your transport is set correctly. Valid answers for transport are: helium or c2dm. The following should go in the assets/airshipconfig.properties of your project. transport = helium developmentAppKey = Your

Passkit push notifications not working with Urban Airship

狂风中的少年 提交于 2019-12-22 09:39:28
问题 I have a pass installed. When installed on a device it registers to my server, the device id is also registered with Urban Airship services. So far so good. When I try to send a push message from the dashboard at urban airship, or curling, or let the server send the push, it is never received by the device. Is there anything special I have to think about when pushing passkit updates? 回答1: After a lot of tinkering I got this to work. The solution is not intuitive: Make sure the 'application'