Pushwoosh supports setting badge number on the app icon shortcut for the following Android launchers:
Sony, Samsung, LG, HTC, Xiaomi, ASUS, ADW, APEX, NOVA, HUAWEI, ZUK, OPPO.
In order to assist with debugging and integration, SDK prints all requests to the console by default. When you're ready for the production build, add "PW_LOG_LEVEL" meta-data with value "ERROR" to the AndroidManifest.xml. This way only information about errors will go to the console. Other option could be one of the following:
NONE - No logs from the SDK
ERROR - Display only errors in the console
WARN - Display warnings and errors
INFO - Display informational messages
DEBUG - Even debug information is displayed now
NOISE - Everything SDK can print
-keep class com.pushwoosh.** { *; }
-dontwarn com.pushwoosh.**
Customizing Notification Open Behavior
If you need to select which activity to display as a result of a push notification, you can create custom NotificationServiceExtension and include fully qualified class name of your NotificationServiceExtension in metadata under “com.pushwoosh.notification_service_extension” value.
usingSystem;usingAndroid.App;usingAndroid.Content;usingAndroid.Runtime;usingPushwoosh.Notification;[assembly:MetaData("com.pushwoosh.notification_service_extension", Value ="com.your.package.YourNotificationServiceExtension")]namespaceYourNamespace{ [Register("com/your/package/YourNotificationServiceExtension")]publicclassYourNotificationServiceExtension:NotificationServiceExtension {protectedoverridevoidStartActivityForPushMessage(PushMessage message) { // base.StartActivityForPushMessage(message) starts default launcher activity // or activity marked with ${applicationId}.MESSAGE action. // Simply do not call it to override this behaviour. // start your activity instead:Intent launchIntent =newIntent(ApplicationContext,typeof(YourActivity));launchIntent.SetFlags(ActivityFlags.NewTask);ApplicationContext.StartActivity(launchIntent); } }}
Customizing Push Notifications
To customize the view of push notifications you need to create a custom Factory, you can create custom NotificationFactory and include fully qualified class name of your NotificationFactory in metadata under “com.pushwoosh.notification_factory” value.
usingSystem;usingAndroid.App;usingAndroid.Runtime;usingPushwoosh.Notification;[assembly:MetaData("com.pushwoosh.notification_factory", Value ="com.your.package.YourAppNotificationFactory")]namespacePushwooshSample{ [Register("com/your/package/YourAppNotificationFactory")]publicclassYourAppNotificationFactory:PushwooshNotificationFactory {publicoverrideNotificationOnGenerateNotification(PushMessage pushData) { // TODO: generate and return custom notificationreturn base.OnGenerateNotification(pushData); } }}
Private Endpoint URL
For Custom Plan subscriptions only. For more details, please contact our Sales team.
Pushwoosh provides Private endpoints for customers with Custom Plan subscriptions. To set up Private endpoint for SDK you need to add the following to your AndroidManifest.xml file:
Your feedback helps us create a better experience, so we would love to hear from you if you have any issues during the SDK integration process. If you face any difficulties, please do not hesitate to share your thoughts with us via this form.